Re: Panic in unmount() (Re: tree may not be buildable for an hour.)

From: Kris Kennaway <kris_at_obsecurity.org>
Date: Tue, 25 Jan 2005 14:00:45 -0800
On Tue, Jan 25, 2005 at 01:43:48PM -0800, Kris Kennaway wrote:

> strlen(deadc0de,edfe9c24,edfe9b78,0,a) at strlen+0x8
> kvprintf(c06f42a3,c053d716,edfe9c24,a,edfe9c68) at kvprintf+0x693
> vsnprintf(c0754a60,100,c06f42a3,edfe9c64,c383e730) at vsnprintf+0x3c
> panic(c06f42a3,deadc0de,c06fd180,390,c0516286) at panic+0xb8

0xc06f42a3:     mtx_lock() of spin mutex %s _at_ %s:%d
0xc06fd180:     ../../../kern/vfs_mount.c

> _mtx_lock_flags(c3766860,0,c06fd180,390,c0754820) at _mtx_lock_flags+0x6b
> dounmount(c3766800,8080000,c383e730,37b,508ff10) at dounmount+0x59
> unmount(c383e730,edfe9d14,8,28149000,2) at unmount+0x271
> syscall(2f,2f,2f,804a458,804f421) at syscall+0x271
> Xint0x80_syscall() at Xint0x80_syscall+0x1f
> --- syscall (22, FreeBSD ELF32, unmount), eip = 0x280b8af7, esp = 0xbfbfe4ec, ebp = 0xbfbfe598 ---

Another machine deadlocked with your latest (lockf) patches:

88412 c675fbd0    0 88353 88348 0004000 [LOCK  Giant c6657680] umount
88410 c67605e8    0 85600 69265 0000000 [CPU 1] sh
  627 c5c741f8    0   527   627 0004100 [LOCK  Giant c6657680] sshd
    4 c5709dc8    0     0     0 0000204 [LOCK  Giant c6657680] g_down
    3 c5720000    0     0     0 0000204 [LOCK Softdep Lock c5641880] g_up
  132 c57207e0    0     0     0 000020c [LOCK  Giant c6657680] swi4: clock sio
   87 c56e03f0    0     0     0 0000204 [LOCK  Giant c6657680] irq76: ahc0
db> tr 88412
Tracing pid 88412 tid 100203 td 0xc5b24450
sched_switch(c5b24450,0,1,118,feec165d) at sched_switch+0x195
mi_switch(1,0,c06f53b0,254,c07578d0) at mi_switch+0x2ad
turnstile_wait(c0751660,c570c170,c06f171c,216,c0751660) at turnstile_wait+0x3a3
_mtx_lock_sleep(c0751660,c5b24450,0,c0705f37,126) at _mtx_lock_sleep+0x176
_mtx_lock_flags(c0751660,0,c0705f37,126,f11ccc70) at _mtx_lock_flags+0xbc
vm_fault(c7fd3bb8,2813b000,1,0,c5b24450) at vm_fault+0x26b
trap_pfault(f11ccd48,1,2813bd95,279,2813bd95) at trap_pfault+0xf8
trap(2f,2f,2f,3,0) at trap+0x201
calltrap() at calltrap+0x5
--- trap 0xc, eip = 0x2809ac6c, esp = 0xbfbfec00, ebp = 0xbfbfec28 ---
db> tr 88410
Tracing pid 88410 tid 100267 td 0xc5c79a10
sched_switch(c5c79a10,c56d0170,6,118,4bbac38d) at sched_switch+0x195
mi_switch(6,c56d0170,c06f391a,26f,c56d02bc) at mi_switch+0x2ad
maybe_preempt(c5c79a10,c56d0170,c56e03f0,f13573d0,46) at maybe_preempt+0x192
sched_add(c0751620,c67605e8,c0751620,f13573f8,c051a23a) at sched_add+0x15e
(null)(c06f19b5,b0000,c074f428,c0751670,0) at 0xb0
__func__.0(0,0,2001,1,76c15) at 0xc06f19b5
(null)(2e007865,2e2e2f2e,2f2e2e2f,6e72656b,72656b2f) at 0xa
db> tr 627
Tracing pid 627 tid 100198 td 0xc5b11b80
sched_switch(c5b11b80,0,1,118,b9b3d8f) at sched_switch+0x195
mi_switch(1,0,c06f53b0,254,c07578d0) at mi_switch+0x2ad
turnstile_wait(c0751660,c570c170,c06f171c,216,c0751660) at turnstile_wait+0x3a3
_mtx_lock_sleep(c0751660,c5b11b80,0,c06ec119,375) at _mtx_lock_sleep+0x176
_mtx_lock_flags(c0751660,0,c06ec119,375,c5c26d00) at _mtx_lock_flags+0xbc
devfs_poll_f(c5a3a908,40,c5d48800,c5b11b80,2c6) at devfs_poll_f+0x58
selscan(c5b11b80,f11b3b9c,f11b3b8c,8,c06fe050) at selscan+0x210
kern_select(c5b11b80,8,807b920,807b930,0) at kern_select+0x3cb
select(c5b11b80,f11b3d14,14,3ff,5) at select+0x63
syscall(bfbf002f,2f,bfbf002f,bfbfde5c,0) at syscall+0x271
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (93, FreeBSD ELF32, select), eip = 0x282de4a3, esp = 0xbfbfddfc, ebp = 0xbfbfde48 ---

At this point I accidentally typed 'r 4' instead of 'tr 4' so was
unable to trace the rest of the processes :-(

Kris

Received on Tue Jan 25 2005 - 21:00:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC