Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 14:31:07 -0500 (EST)
From:      David Gilbert <dgilbert@velocet.ca>
To:        stable@freebsd.org
Subject:   Stack/i386-type ugh question.
Message-ID:  <14404.9723.200774.823194@trooper.velocet.net>

next in thread | raw e-mail | index | archive | help
Ok... chasing down some memory corruption in FreeBSD's new vinum
code.  I have the following:

#0  boot (howto=256) at ../../kern/kern_shutdown.c:285
#1  0xc0152738 in at_shutdown (
    function=0xc0237182 <__set_sysinit_set_sym_memdev_sys_init+1050>, arg=0x0, 
    queue=12) at ../../kern/kern_shutdown.c:446
#2  0xc02093e5 in trap_fatal (frame=0xc024041c, eva=0)
    at ../../i386/i386/trap.c:942
#3  0xc02090c3 in trap_pfault (frame=0xc024041c, usermode=0, eva=0)
    at ../../i386/i386/trap.c:835
#4  0xc0208d66 in trap (frame={tf_es = -1057619952, tf_ds = -1058209776, 
      tf_edi = -1073215488, tf_esi = -1058136064, tf_ebp = -1071381356, 
      tf_isp = -1071381436, tf_ebx = -1057770468, tf_edx = 0, 
      tf_ecx = -1057770468, tf_eax = -919261248, tf_trapno = 12, tf_err = 0, 
      tf_eip = 0, tf_cs = 8, tf_eflags = 66054, tf_esp = -1072236031, 
      tf_ss = -1057770468}) at ../../i386/i386/trap.c:437
#5  0x0 in ?? ()

... now obviously frame 5 has been trashed, and I doubt that I can
purify my kernel (even if I had a copy).  So.  Which of those
registers is the program counter?  I need to find the stack frame #6,
basically... but I suppose I need to know a few things...

Is frame #6 > or < the address of frame #5?

Is one of the elements of "frame" in frame 4 the PC... which might
contain a hint?

Dave.

-- 
============================================================================
|David Gilbert, Velocet Communications.       | Two things can only be     |
|Mail:       dgilbert@velocet.net             |  equal if and only if they |
|http://www.velocet.net/~dgilbert             |   are precisely opposite.  |
=========================================================GLO================


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14404.9723.200774.823194>