Subject: kern/36003: "Mutex error: mutex_vector_enter: locking against myself" on evbarm/IQ80321
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Simon Burge <simonb@NetBSD.org>
List: netbsd-bugs
Date: 03/14/2007 07:40:00
>Number: 36003
>Category: kern
>Synopsis: "Mutex error: mutex_vector_enter: locking against myself" on evbarm/IQ80321
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 14 07:40:00 +0000 2007
>Originator: Simon Burge
>Release: NetBSD 4.99.15, sources from approx 2006/03/14 07:00 UTC
>Organization:
>Environment:
System: NetBSD 4.99.15 (IQ80321) #0: Wed Mar 14 18:08:26 EST 2007
simonb@bigkev.thistledown.com.au:/home/simonb/netbsd/src-virgin/sys/arch/evbarm/compile/IQ80321
Architecture: arm
Machine: evbarm
>Description:
Booting a -current kernel on an IQ80321 gives:
[ ... ]
root on 192.168.0.42:/tftpboot/iq80321.root
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
Wed Mar 14 18:28:07 EST 2007
Mutex error: mutex_vector_enter: locking against myself
lock address : 0x00000000c0533e8c
current cpu : 0
current lwp : 0x00000000c26559c0
owner field : 0x0000000000010c00 wait/spin: 0/1
panic: lock error
Stopped in pid 15.1 (sh) at netbsd:cpu_Debugger+0x4: bx r14
db> bt
netbsd:panic+0x10
scp=0xc0361eb8 rlv=0xc035be50 (netbsd:lockdebug_abort+0x5c)
rsp=0xc2ed0d8c rfp=0xc2ed0dac
netbsd:lockdebug_abort+0xc
scp=0xc035be00 rlv=0xc033f4c4 (netbsd:mutex_abort+0x3c)
rsp=0xc2ed0db0 rfp=0xc2ed0dc0
r5=0xc0533e8c r4=0xffffffff
netbsd:mutex_abort+0xc
scp=0xc033f494 rlv=0xc033f658 (netbsd:mutex_vector_enter+0x12c)
rsp=0xc2ed0dc4 rfp=0xc2ed0de4
netbsd:mutex_vector_enter+0xc
scp=0xc033f538 rlv=0xc0353e68 (netbsd:turnstile_lookup+0x28)
rsp=0xc2ed0de8 rfp=0xc2ed0dfc
r8=0xc26559c0 r7=0xc2ee6f00
r6=0xc2ee6f08 r5=0xc2ee6f00 r4=0xc05348c0
netbsd:turnstile_lookup+0xc
scp=0xc0353e4c rlv=0xc033f838 (netbsd:mutex_vector_exit+0x110)
rsp=0xc2ed0e00 rfp=0xc2ed0e14
r5=0x00000000 r4=0xc2ee6f00
netbsd:mutex_vector_exit+0xc
scp=0xc033f734 rlv=0xc032f9cc (netbsd:cv_wait_sig+0x9c)
rsp=0xc2ed0e18 rfp=0xc2ed0e44
r5=0x00000000 r4=0xc0533d70
netbsd:cv_wait_sig+0xc
scp=0xc032f93c rlv=0xc036b210 (netbsd:pipe_read+0x348)
rsp=0xc2ed0e48 rfp=0xc2ed0e78
r8=0xc2ed0e84 r7=0xc2ee6f18
r6=0xc2ee6f00 r5=0xc2ee6f08 r4=0xc265df00
netbsd:pipe_read+0xc
scp=0xc036aed4 rlv=0xc03678bc (netbsd:dofileread+0xb0)
rsp=0xc2ed0e7c rfp=0xc2ed0edc
r10=0xc26559c0 r9=0x00000003
r8=0x00000000 r7=0x00000080 r6=0xc265052c r5=0xbfffeaa8
r4=0xc265df00
netbsd:dofileread+0xc
scp=0xc0367818 rlv=0xc0367a1c (netbsd:sys_read+0x84)
rsp=0xc2ed0ee0 rfp=0xc2ed0f0c
r10=0x0002f448 r9=0xc04c4afc
r8=0xc26559c0 r7=0xc2ed0f60 r6=0xc26559c0 r5=0x00000003
r4=0xc2ed0fb8
netbsd:sys_read+0xc
scp=0xc03679a4 rlv=0xc03c18f8 (netbsd:syscall_plain+0x17c)
rsp=0xc2ed0f10 rfp=0xc2ed0f90
r7=0x00000004 r6=0xc2ed0fb4
r5=0x00000003 r4=0xc26559c0
netbsd:syscall_plain+0xc
scp=0xc03c1788 rlv=0xc03c1dd0 (netbsd:swi_handler+0x94)
rsp=0xc2ed0f94 rfp=0xc2ed0fb0
r10=0x0002f448 r9=0x0002f51e
r8=0x00000000 r7=0xc265052c r6=0xefa00003 r5=0xc2ed0fb4
r4=0xc26559c0
netbsd:swi_handler+0xc
scp=0xc03c1d48 rlv=0xc03c4e10 (netbsd:swi_entry+0x64)
rsp=0xc2ed0fb4 rfp=0xbfffeb70
r7=0x0002f540 r6=0x00000000
r5=0xffffffff r4=0x0002ee8c
>How-To-Repeat:
Try to boot! This is repeatable (at least, I have two failures
from two attempts to boot).
>Fix:
None given.