Skip site navigation (1)Skip section navigation (2)
Date:      19 Mar 2001 15:07:19 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        current@freebsd.org
Subject:   Here's another one for you...
Message-ID:  <xzpg0g9x36w.fsf@flood.ping.uio.no>

next in thread | raw e-mail | index | archive | help
SMP box with a bleeding-edge -CURRENT kernel, patched to avoid the
i586_bzero() problem:

panic: mutex_enter: recursion on non-recursive mutex process lock @ ../../i386/i386/trap.c:854
cpuid = 1; lapic.id = 01000000
Debugger("panic")

CPU1 stopping CPUs: 0x00000001... stopped.
Stopped at      Debugger+0x45:  pushl   %ebx
db> show mutex
        "panic" (0xc030b1e0) locked at ../../kern/kern_shutdown.c:544
        "process lock" (0xd3f15000) locked at ../../i386/i386/machdep.c:625
        "Giant" (0xc0309ac0) locked at ../../i386/i386/trap.c:1169
db> trace
Debugger(c027d5e1) at Debugger+0x45
panic(c027c420,c027a154,c02997d0,356,d3f14ee0) at panic+0x144
witness_enter(d3f15000,0,c02997d0,356) at witness_enter+0x355
trap_pfault(d7345d4c,0,0) at trap_pfault+0x143
trap(18,10,10,d7345fa8,0) at trap+0x978
calltrap() at calltrap+0x5
--- trap 0xc, eip = 0, esp = 0xd7345d8c, ebp = 0xd7345ed8 ---
(null)(805c3e0,e,d7345f10,0,4) at 0
postsig(e) at postsig+0x40b
userret(d3f14ee0,d7345fa8,3,0,ffffffff) at userret+0x16
syscall(2f,2f,2f,bfbffd4c,80873e0) at syscall+0xa03
syscall_with_err_pushed() at syscall_with_err_pushed+0x1b
db> show witness
Sleep mutexes:
0 rman -- last acquired @ ../../kern/subr_rman.c:420
0 rman head -- last acquired @ ../../kern/subr_rman.c:1070 sf_bufs list lock -- last acquired @ ../../kern/uipc_syscalls.c:14370 vm86pcb lock -- last acquired @ ../../i386/i386/vm86.c:5790 pseudofs -- last acquired @ order list:0
0 Giant -- last acquired @ ../../i386/i386/trap.c:1169
1  mbuf free list lock -- last acquired @ ../../kern/uipc_socket.c:870
1  fork list -- last acquired @ ../../kern/kern_sx.c:138
1  vnode pollinfo -- last acquired @ ../../kern/vfs_subr.c:2761
1  spechash -- last acquired @ ../../kern/vfs_subr.c:2003
1  bpf global lock -- last acquired @ ../../net/bpf.c:1221
1  mntid -- last acquired @ ../../kern/vfs_subr.c:426
2   mountlist -- last acquired @ ../../kern/vfs_subr.c:2872
3    lockmgr interlock -- last acquired @ ../../kern/kern_lock.c:239
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883
1  zone subsystem -- last acquired @ ../../vm/vm_zone.c:422
3    lockmgr interlock -- last acquired @ ../../kern/kern_lock.c:239
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883
2   zone -- last acquired @ ../../vm/vm_zone.c:366
3    lockmgr -- last acquired @ ../../kern/kern_lock.c:505
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883
1  de -- last acquired @ ../../pci/if_de.c:4653
1  ifsvgt -- last acquired @ ../../ufs/ffs/ffs_vfsops.c:1129
1  random reseed -- last acquired @ ../../dev/random/yarrow.c:265
1  ufs ihash -- last acquired @ ../../ufs/ufs/ufs_ihash.c:133
2   vnode interlock -- last acquired @ ../../kern/vfs_subr.c:1439
3    vnode_free_list -- last acquired @ ../../kern/vfs_subr.c:542
3    mntvnode -- last acquired @ ../../kern/vfs_subr.c:650
3    lockmgr interlock -- last acquired @ ../../kern/kern_lock.c:239
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883
1  m_ext counter free list lock -- last acquired @ ../../pci/if_de.c:3552
1  mcluster free list lock -- last acquired @ ../../pci/if_de.c:3552
1  buftime lock -- last acquired @ ../../sys/buf.h:255
3    lockmgr interlock -- last acquired @ ../../kern/kern_lock.c:239
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883
1  eventhandler -- last acquired @ ../../kern/subr_eventhandler.c:157
3    lockmgr interlock -- last acquired @ ../../kern/kern_lock.c:239
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883
3    lockmgr -- last acquired @ ../../kern/kern_lock.c:505
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883
1  vm object_list -- last acquired @ ../../vm/vm_object.c:456
1  proctree -- last acquired @ order list:0
2   allproc -- last acquired @ order list:0
4     process lock -- last acquired @ ../../i386/i386/machdep.c:625
5      ucred -- last acquired @ ../../kern/kern_prot.c:1162
5      panic -- last acquired @ ../../kern/kern_shutdown.c:544
5      malloc -- last acquired @ ../../kern/kern_malloc.c:317
5      uidinfo hash -- last acquired @ ../../kern/kern_resource.c:745
6       uidinfo struct -- last acquired @ ../../kern/kern_resource.c:883

Spin mutexes:
2   sio -- last acquired @ ../../isa/sio.c:2832
6       ithread table lock -- last acquired @ ../../i386/isa/intr_machdep.c:584
7        ithread list lock -- last acquired @ ../../kern/kern_intr.c:249
8         sched lock -- last acquired @ ../../kern/kern_mutex.c:354
9          clk -- last acquired @ ../../i386/isa/clock.c:1192
10          callout -- last acquired @ ../../kern/kern_timeout.c:145
11           ap boot -- last acquired @ ../../i386/i386/mp_machdep.c:2273
12            imen -- last acquired @ ../../i386/i386/mpapic.c:261

Mutexes which were never acquired:
arp_inq
ip_inq
lo
cd9660_ihash
bpf interface lock
com
smp rendezvous
mcount
db> panic
panic: from debugger
cpuid = 1; lapic.id = 01000000
boot() called on cpu#1
Uptime: 22s

dumping to dev da3b, offset 1048576

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

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




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