Kernel debugging with gdb6

From: Lukas Ertl <le_at_FreeBSD.org>
Date: Sat, 19 Jun 2004 14:11:31 +0200 (CEST)
Hi,

I updated a -current box yesterday and installed the gdb6 package.  Now I 
try to debug a kernel crash dump and get this:

(kgdb) where
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
#1  0xc04dde7c in boot (howto=256) at 
/usr/src/sys/kern/kern_shutdown.c:370
#2  0xc04de1a7 in panic (fmt=0xc063ebc0 "%s")
     at /usr/src/sys/kern/kern_shutdown.c:548
#3  0xc061732a in trap_fatal (frame=0xdb99a818, eva=44)
     at /usr/src/sys/i386/i386/trap.c:815
#4  0xc0617043 in trap_pfault (frame=0xdb99a818, usermode=0, eva=44)
     at /usr/src/sys/i386/i386/trap.c:733
#5  0xc0616cc5 in trap (frame=
       {tf_fs = -1067188200, tf_es = 16, tf_ds = -1066991600, tf_edi = -1032440448, tf_esi = 0, tf_ebp = -610685776, tf_isp = -610686908, tf_ebx = -1030506624, tf_edx = 0, tf_ecx = -1033195047, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1002626949, tf_cs = 8, tf_eflags = 66118, tf_esp = -1032440416, tf_ss = -1030506624}) at /usr/src/sys/i386/i386/trap.c:420
#6  0xc060616a in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#7  0xc0640018 in ?? ()
#8  0x00000010 in ?? ()
#9  0xc0670010 in ?? ()
#10 0xc2763580 in ?? ()
#11 0x00000000 in ?? ()
#12 0xdb99acb0 in ?? ()
#13 0xdb99a844 in ?? ()
#14 0xc293b780 in ?? ()
#15 0x00000000 in ?? ()
#16 0xc26ab1d9 in ?? ()
#17 0x00000000 in ?? ()
#18 0x0000000c in ?? ()
#19 0x00000000 in ?? ()
#20 0xc43d207b in ?? ()
#21 0x00000008 in ?? ()
#22 0x00010246 in ?? ()
#23 0xc27635a0 in ?? ()
#24 0xc293b780 in ?? ()
#25 0xc2763580 in ?? ()
#26 0x00000078 in ?? ()
---Type <return> to continue, or q <return> to quit---
#27 0xc04d5172 in free (addr=0xc2763580, type=0xdf939c60)
     at /usr/src/sys/kern/kern_malloc.c:342
#28 0xc43d266f in ?? ()
#29 0xc438da80 in ?? ()
#30 0xdf939c60 in ?? ()
#31 0xc43da6e0 in ?? ()
#32 0xdf939c60 in ?? ()
#33 0x00000000 in ?? ()
#34 0xdb99ace8 in ?? ()
#35 0xc04af346 in g_ctl_req (arg=0xdf939c60, flag=-1002592544)
     at /usr/src/sys/geom/geom_ctl.c:441
Previous frame identical to this frame (corrupt stack?)

cheers,
le

-- 
Lukas Ertl                         http://homepage.univie.ac.at/l.ertl/
le_at_FreeBSD.org                     http://people.freebsd.org/~le/
Received on Sat Jun 19 2004 - 10:11:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:58 UTC