panic: mtx_lock() of destroyed mutex _at_ /usr/src/sys/net/route.c:1306

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Tue, 27 Mar 2007 01:23:00 -0400
Hi,

I got this earlier today. I managed to get what appears to be a sane  
dump:

Unread portion of the kernel message buffer:
panic: mtx_lock() of destroyed mutex _at_ /usr/src/sys/net/route.c:1306
cpuid = 0
KDB: enter: panic
Physical memory: 3575 MB
Dumping 324 MB: 309 293 277 261 245 229 213 197 181 165 149 133 117  
101 85 69 53 37 21 5

#0  doadump () at pcpu.h:172
172     pcpu.h: No such file or directory.
         in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:172
#1  0xc0451f5d in db_fncall (dummy1=0, dummy2=0, dummy3=2399,  
dummy4=0xe545b704 "") at /usr/src/sys/ddb/db_command.c:486
#2  0xc0451d2c in db_command (last_cmdp=0xc07ae024, cmd_table=0x0)  
at /usr/src/sys/ddb/db_command.c:401
#3  0xc0451df3 in db_command_loop () at /usr/src/sys/ddb/db_command.c: 
453
#4  0xc0453d61 in db_trap (type=3, code=0) at /usr/src/sys/ddb/ 
db_main.c:222
#5  0xc0592d9f in kdb_trap (type=0, code=0, tf=0xe545b8a8) at /usr/ 
src/sys/kern/subr_kdb.c:502
#6  0xc070007b in trap (frame=0xe545b8a8) at /usr/src/sys/i386/i386/ 
trap.c:621
#7  0xc06e729b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#8  0xc0592ac0 in kdb_enter (msg=0x12 <Address 0x12 out of bounds>)  
at cpufunc.h:60
#9  0xc056e0e5 in panic (fmt=0xc074451f "mtx_lock() of destroyed  
mutex _at_ %s:%d") at /usr/src/sys/kern/kern_shutdown.c:547
#10 0xc0563397 in _mtx_lock_flags (m=0xc70322b8, opts=0,  
file=0xc075261b "/usr/src/sys/net/route.c", line=1306) at /usr/src/ 
sys/kern/kern_mutex.c:186
#11 0xc060b768 in rt_check (lrt=0x12, lrt0=0xe545b9a0, dst=0x12) at / 
usr/src/sys/net/route.c:1306
#12 0xc060ec84 in arpresolve (ifp=0xc6a3fc00, rt0=0xc6f8ee88,  
m=0xc6c6e700, dst=0xc6ac88b0, desten=0xe545b9c0 "?E??r`?\0309\201?")  
at /usr/src/sys/netinet/if_ether.c:378
#13 0xc05fdcee in ether_output (ifp=0xc6a3fc00, m=0xc6c6e700,  
dst=0xc6ac88b0, rt0=0x12) at /usr/src/sys/net/if_ethersubr.c:170
#14 0xc0621f6e in ip_output (m=0xc6c6e700, opt=0x1, ro=0xe545ba28,  
flags=0, imo=0x0, inp=0xc71c2000) at /usr/src/sys/netinet/ip_output.c: 
561
#15 0xc062af48 in tcp_output (tp=0xc71ce910) at /usr/src/sys/netinet/ 
tcp_output.c:1122
#16 0xc06290bc in tcp_do_segment (m=0xc6c6e700, th=0xc6c6e758,  
so=0xca1282b8, tp=0xc71ce910, drop_hdrlen=40, tlen=0) at /usr/src/sys/ 
netinet/tcp_input.c:2537
#17 0xc0627041 in tcp_input (m=0xc6c6e700, off0=40) at /usr/src/sys/ 
netinet/tcp_input.c:1004
#18 0xc061f5c4 in ip_input (m=0xc6c6e700) at /usr/src/sys/netinet/ 
ip_input.c:662
#19 0xc0605c2a in netisr_processqueue (ni=0xc0812dd8) at /usr/src/sys/ 
net/netisr.c:236
#20 0xc0605e64 in swi_net (dummy=0x0) at /usr/src/sys/net/netisr.c:349
#21 0xc055514a in ithread_execute_handlers (p=0xc6947900,  
ie=0xc6988580) at /usr/src/sys/kern/kern_intr.c:682
#22 0xc055528f in ithread_loop (arg=0xc6887940) at /usr/src/sys/kern/ 
kern_intr.c:766
#23 0xc0553e4c in fork_exit (callout=0xc0555217 <ithread_loop>,  
arg=0x12, frame=0x12) at /usr/src/sys/kern/kern_fork.c:814
#24 0xc06e7310 in fork_trampoline () at /usr/src/sys/i386/i386/ 
exception.s:205

File revisions listed appear to be in sync with what cvsweb presently  
has. They are:
$FreeBSD: src/sys/kern/kern_mutex.c,v 1.187 2007/03/22 16:09:23 jhb  
Exp $
$FreeBSD: src/sys/net/route.c,v 1.118 2006/11/23 05:57:15 bde Exp $
$FreeBSD: src/sys/netinet/if_ether.c,v 1.160 2007/03/22 10:37:53  
glebius Exp $
$FreeBSD: src/sys/net/if_ethersubr.c,v 1.226 2007/03/22 19:08:39 bms  
Exp $
$FreeBSD: src/sys/netinet/ip_output.c,v 1.271 2007/03/23 09:43:36 bms  
Exp $
$FreeBSD: src/sys/netinet/tcp_output.c,v 1.130 2007/03/21 19:37:55  
andre Exp $
$FreeBSD: src/sys/netinet/tcp_input.c,v 1.329 2007/03/24 22:15:02  
maxim Exp $
$FreeBSD: src/sys/netinet/ip_input.c,v 1.325 2007/03/19 19:00:51  
andre Exp $
$FreeBSD: src/sys/net/netisr.c,v 1.18 2006/11/28 11:19:36 rwatson Exp $

Any suggestions?

Cheers!
Andy

/*  Andre Guibert de Bruet  * 6f43 6564 7020 656f 2e74 4220 7469 6a20 */
/*   Code poet / Sysadmin   * 636f 656b 2e79 5320 7379 6461 696d 2e6e */
/*   GSM: +1 734 846 8758   * 5520 494e 2058 6c73 7565 6874 002e 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */
Received on Tue Mar 27 2007 - 03:23:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC