Hi, Can someone give me some ideas for how to debug a kernel panic and isolate where the problem could be?
I've been trying out the Netgraph ATM stuff for a while, and things have been working fine for a number of weeks. However, when I cvsup'd -CURRENT from a few days ago, I have one of my machines crashing after route add is called on my ATM card. The crash I am getting is soon after the ATM card is initialized with ifconfig, and route add is called. This did not happen before, and the ATM driver source that I am using has worked fine for weeks. ddb gives me this message: Memory modified after free 0x1383600(252) panic: Most recently used by routetbl And gdb over a serial port gives me this: GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you ar= e welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details.= This GDB was configured as "i386-undermydesk-freebsd"... (kgdb) target /dev remote /dev/cuaa0 Remote debugging using /dev/cuaa0 Debugger (msg0x12 <Address 0x12 out of bounds>) at /usr/src/sys/i386/i386/db_interface.c:323 323 } warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. warning: shared library handler failed to enable breakpoint (kgdb) where #0 Debugger (msg0x12 <Address 0x12 out of bounds>) at /usr/src/sys/i386/i386/db_interface.c:323 #1 0xc031892b in panic (fmt0x1 <Address 0x1 out of bounds>) at /usr/src/sys/kern/kern_shutdown.c:503 #2 0xc035b4b7 in bremfree (bp0xc2426868) at /usr/src/sys/kern/vfs_bio.c= :632 #3 0xc035deb0 in getblk (vp0xc1368000, blkno196864, size16384, sl= pflag0, slptimeo0) at /usr/src/sys/kern/vfs_bio.c:2344 #4 0xc035b5ea in breadn (vp0xc1368000, blkno137438953490, size18,= rablkno0x0, rabsize0x0, cnt0, cred0x0, bpp0x12) at /usr/src/sys/kern/vfs_bio.c:690 #5 0xc035b59c in bread (vp0x12, blkno137438953490, size18, cred= 0x12, bpp0x12) at /usr/src/sys/kern/vfs_bio.c:672 #6 0xc043a256 in ffs_update (vp0xc1367000, waitfor0) at /usr/src/sys/ufs/ffs/ffs_inode.c:102 #7 0xc044dc5f in ffs_fsync (ap0xc5bbdb10) at /usr/src/sys/ufs/ffs/ffs_vnops.c:315 #8 0xc044cece in ffs_sync (mp0xc135e000, waitfor2, cred0xc09f6e00= , td0xc0577100) at vnode_if.h:612 #9 0xc036f308 in sync (td0xc0577100, uap0x0) at /usr/src/sys/kern/vfs_syscalls.c:138 #10 0xc031830c in boot (howto256) at /usr/src/sys/kern/kern_shutdown.c:2= 73 #11 0xc0318943 in panic () at /usr/src/sys/kern/kern_shutdown.c:517 #12 0xc04738bd in mtrash_ctor (mem0xc13e2d00, size32, arg0x0) at /usr/src/sys/vm/uma_dbg.c:138 #13 0xc04722d7 in uma_zalloc_arg (zone0xc09d0140, udata0x0, flags0= ) at /usr/src/sys/vm/uma_core.c:1358 #14 0xc030d0c6 in malloc (size4, type0xc05783e0, flags0) at /usr/src/sys/kern/kern_malloc.c:182 #15 0xc02fbd35 in fdcopy (td0x12) at /usr/src/sys/kern/kern_descrip.c:12= 65 #16 0xc0304140 in fork1 (td0xc0a0c540, flags20, pages0, procp0x= c5bbdcd4) at /usr/src/sys/kern/kern_fork.c:446 #17 0xc0303872 in fork (td0xc0a0c540, uap0xc5bbdd10) at /usr/src/sys/kern/kern_fork.c:122 #18 0xc04a763e in syscall (frame {tf_fs 47, tf_es 47, tf_ds 47, tf_edi 0, tf_esi 1= 35254016, tf_ebp -1077937816, tf_isp -977543820, tf_ebx 0, tf_e= dx 672047128, tf_ecx 3, tf_eax 2, tf_trapno 12, tf_err = 2, tf_eip 134723747, tf_cs 31, tf_eflags 514, tf_esp -10779= 37860, tf_ss 47}) at /usr/src/sys/i386/i386/trap.c:1033 #19 0xc049704d in Xint0x80_syscall () at {standard input}:140 #20 0x0804b326 in ?? () #21 0x0804ae8f in ?? () #22 0x0804aed7 in ?? () #23 0x0804aed7 in ?? () #24 0x0804b2a1 in ?? () #25 0x0804aeff in ?? () #26 0x0804aed7 in ?? () #27 0x0804bf6e in ?? () #28 0x0804af71 in ?? () #29 0x0804add9 in ?? () #30 0x0804b18d in ?? () #31 0x0804aef1 in ?? () #32 0x0804aed7 in ?? () #33 0x0804add9 in ?? () #34 0x0804add9 in ?? () #35 0x0804add9 in ?? () #36 0x0804b2a1 in ?? () #37 0x0804aeff in ?? () #38 0x08053767 in ?? () #39 0x0805364b in ?? () #40 0x0804814c in ?? () (kgdb) detach Ending remote debugging. (kgdb) quit Script done on Wed Nov 20 04:13:05 2002 -- Craig Rodrigues http://www.gis.net/~craigr [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message