Subject: kern/23390: LOCK_DEBUG kernel is not able to exec init
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martin@duskware.de>
List: netbsd-bugs
Date: 11/07/2003 22:10:13
>Number: 23390
>Category: kern
>Synopsis: LOCK_DEBUG kernel is not able to exec init
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 07 21:11:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Martin Husemann
>Release: NetBSD 1.6ZE
>Organization:
>Environment:
System: NetBSD drowsy.duskware.de 1.6ZE NetBSD 1.6ZE (DROWSY) #4: Fri Nov 7 20:38:53 CET 2003 martin@night-porter.duskware.de:/usr/src/sys/arch/shark/compile/DROWSY shark
Architecture: arm
Machine: shark
>Description:
I had a "lockmgr: locking against myself" panic when beating heavily on the
disk in my shark (wd at atabus at wdc at ofisa). So I built a LOCK_DEBUG
kernel to check for details - but this kernel won't boot at all. It prints
an endless series of this:
simple_unlock: lock not held
lock: 0xf018d264, currently at: ../../../../kern/kern_synch.c:659
last locked: ../../../../kern/kern_synch.c:578
last unlocked: ../../../../kern/kern_synch.c:586
netbsd:_simple_unlock+0xc
scp=0xf008a4bc rlv=0xf010b5b4 (netbsd:cpu_switch+0x9c)
rsp=0xf54afdc0 rfp=0xf54afe08
r7=0xf54ad080 r6=0xf54ad080
r5=0xf01b8114 r4=0x00000004
netbsd:mi_switch+0xc
scp=0xf00988d0 rlv=0xf0097f8c (netbsd:ltsleep+0x548)
rsp=0xf54afe0c rfp=0xf54afe40
r10=0xf013e438 r9=0x00000000
r8=0x00000000 r7=0xf54afe50 r6=0xf54a51e8 r5=0x00000000
r4=0xf54ad080
netbsd:ltsleep+0xc
scp=0xf0097a50 rlv=0xf0019660 (netbsd:atabusconfig+0x17c)
rsp=0xf54afe44 rfp=0xf54aff90
r10=0x00000000 r9=0x00000000
r8=0x00000050 r7=0x0000000e r6=0x00000000 r5=0xf12440a4
r4=0x00000000
netbsd:atabusconfig+0xc
scp=0xf00194f0 rlv=0xf001937c (netbsd:atabus_thread+0x38)
rsp=0xf54aff94 rfp=0xf54affb0
r10=0x00000000 r9=0x00000000
r8=0x00000000 r7=0x00000000 r6=0x00000000 r5=0xf12440a4
r4=0xf1253900
netbsd:atabus_thread+0xc
scp=0xf0019350 rlv=0xf010b8dc (netbsd:proc_trampoline+0x18)
rsp=0xf54affb4 rfp=0x00000000
r6=0x00000000 r5=0xf1253900
r4=0xf0019344
simple_unlock: lock not held
lock: 0xf018d264, currently at: ../../../../kern/kern_synch.c:659
last locked: ../../../../kern/kern_synch.c:578
last unlocked: ../../../../kern/kern_synch.c:586
netbsd:_simple_unlock+0xc
scp=0xf008a4bc rlv=0xf010b5b4 (netbsd:cpu_switch+0x9c)
rsp=0xf54afdc0 rfp=0xf54afe08
r7=0xf54ad080 r6=0xf54ad080
r5=0xf01b8114 r4=0x00000004
netbsd:mi_switch+0xc
scp=0xf00988d0 rlv=0xf0097f8c (netbsd:ltsleep+0x548)
rsp=0xf54afe0c rfp=0xf54afe40
r10=0xf013e438 r9=0x00000000
r8=0x00000000 r7=0xf54afe50 r6=0xf54a51e8 r5=0x00000000
r4=0xf54ad080
netbsd:ltsleep+0xc
scp=0xf0097a50 rlv=0xf0019660 (netbsd:atabusconfig+0x17c)
rsp=0xf54afe44 rfp=0xf54aff90
r10=0x00000000 r9=0x00000000
r8=0x00000050 r7=0x0000000f r6=0x00000000 r5=0xf12440a4
r4=0x00000000
netbsd:atabusconfig+0xc
scp=0xf00194f0 rlv=0xf001937c (netbsd:atabus_thread+0x38)
rsp=0xf54aff94 rfp=0xf54affb0
r10=0x00000000 r9=0x00000000
r8=0x00000000 r7=0x00000000 r6=0x00000000 r5=0xf12440a4
r4=0xf1253900
netbsd:atabus_thread+0xc
scp=0xf0019350 rlv=0xf010b8dc (netbsd:proc_trampoline+0x18)
rsp=0xf54affb4 rfp=0x00000000
r6=0x00000000 r5=0xf1253900
r4=0xf0019344
simple_unlock: lock not held
lock: 0xf018d264, currently at: ../../../../kern/kern_synch.c:659
last locked: ../../../../kern/kern_synch.c:578
last unlocked: ../../../../kern/kern_synch.c:586
netbsd:_simple_unlock+0xc
scp=0xf008a4bc rlv=0xf010b5b4 (netbsd:cpu_switch+0x9c)
rsp=0xf54afdc0 rfp=0xf54afe08
r7=0xf54ad080 r6=0xf54ad080
>How-To-Repeat:
Build a shark kernel with LOCK_DEBUG and try to boot it. (Dunno if this
is wdc @ isa specific)
>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: