I did not trust macppc / lockdebug so reproduced it on evbarm. Unfortunately nearly identical (not making any sense to me) output again...
Martin db> show locks [Locks tracked through LWPs] ****** LWP 1370.1370 (umount) @ 0xc488b180, l_stat=3 db> bt/a 0xc488b180 trace: pid 1370 lid 1370 at 0xd50a9afc 0xd50a9afc: netbsd:mi_switch+0x10 0xd50a9b2c: netbsd:sleepq_block+0xb0 0xd50a9b6c: netbsd:turnstile_block+0x488 0xd50a9bbc: netbsd:rw_enter+0xf8 0xd50a9c04: netbsd:cache_purge1+0x150 0xd50a9c9c: netbsd:vcache_reclaim+0xdc 0xd50a9ccc: netbsd:vrecycle+0x10c 0xd50a9dc4: netbsd:vflush+0x154 0xd50a9dfc: netbsd:ffs_flushfiles+0x3c 0xd50a9e2c: netbsd:ffs_unmount+0x58 0xd50a9e44: netbsd:VFS_UNMOUNT+0x30 0xd50a9e7c: netbsd:dounmount+0x84 0xd50a9eec: netbsd:sys_unmount+0xe0 0xd50a9fac: netbsd:syscall+0xac *** Locks held: * Lock 0 (initialized at fstrans_init) lock address : 0x00000000c0597040 type : sleep/adaptive initialized : 0x00000000c03371a4 shared holds : 0 exclusive: 1 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c488b180 last held: 0x00000000c488b180 last locked* : 0x00000000c03386d4 unlocked : 0x00000000c032c988 owner field : 0x00000000c488b180 wait/spin: 0/0 Turnstile: no active turnstile for this lock. * Lock 1 (initialized at vfs_mountalloc) lock address : 0x00000000c487dcb0 type : sleep/adaptive initialized : 0x00000000c032a678 shared holds : 0 exclusive: 1 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c488b180 last held: 0x00000000c488b180 last locked* : 0x00000000c032c800 unlocked : 0x00000000c032c914 owner field : 0x00000000c488b180 wait/spin: 0/0 Turnstile: no active turnstile for this lock. * Lock 2 (initialized at vcache_alloc) lock address : 0x00000000c48cfa68 type : sleep/adaptive initialized : 0x00000000c0339838 shared holds : 0 exclusive: 1 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c488b180 last held: 0x00000000c488b180 last locked* : 0x00000000c0351b24 unlocked : 0x00000000c0351b9c owner/count : 0x00000000c488b180 flags : 0x0000000000000004 Turnstile: no active turnstile for this lock. *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c488b180 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 1047.1047 (ntpd) @ 0xc3bdc100, l_stat=3 db> bt/a 0xc3bdc100 trace: pid 1047 lid 1047 at 0xd4e51e94 0xd4e51e94: netbsd:mi_switch+0x10 0xd4e51ec4: netbsd:sleepq_block+0xb0 0xd4e51eec: netbsd:sys___sigsuspend14+0x6c 0xd4e51fac: netbsd:syscall+0xac *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c3bdc100 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 729.729 (rpcbind) @ 0xc3368900, l_stat=3 db> bt/a 0xc3368900 trace: pid 729 lid 729 at 0xd4ca8cbc 0xd4ca8cbc: netbsd:mi_switch+0x10 0xd4ca8cec: netbsd:sleepq_block+0x120 0xd4ca8d7c: netbsd:sel_do_scan+0x580 0xd4ca8ec4: netbsd:pollcommon+0xac 0xd4ca8eec: netbsd:sys_poll+0x74 0xd4ca8fac: netbsd:syscall+0xac --- tf 0xd4ca8fb0 --- *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c3368900 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 410.410 (dhcpcd) @ 0xc2f75300, l_stat=3 db> bt/a 0xc2f75300 trace: pid 410 lid 410 at 0xd4c95c9c 0xd4c95c9c: netbsd:mi_switch+0x10 0xd4c95ccc: netbsd:sleepq_block+0xb0 0xd4c95d5c: netbsd:sel_do_scan+0x580 0xd4c95ea4: netbsd:pollcommon+0xac 0xd4c95eec: netbsd:sys___pollts50+0x7c 0xd4c95fac: netbsd:syscall+0xac *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c2f75300 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 488.488 (dhcpcd) @ 0xc2f75880, l_stat=3 db> bt/a 0xc2f75880 trace: pid 488 lid 488 at 0xd4ca6c9c 0xd4ca6c9c: netbsd:mi_switch+0x10 0xd4ca6ccc: netbsd:sleepq_block+0x120 0xd4ca6d5c: netbsd:sel_do_scan+0x580 0xd4ca6ea4: netbsd:pollcommon+0xac 0xd4ca6eec: netbsd:sys___pollts50+0x7c 0xd4ca6fac: netbsd:syscall+0xac *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c2f75880 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 0.96 (usb0) @ 0xc2eca1c0, l_stat=3 db> bt/a 0xc2eca1c0 trace: pid 0 lid 96 at 0xd3cddf2c 0xd3cddf2c: netbsd:mi_switch+0x10 0xd3cddf5c: netbsd:sleepq_block+0x120 0xd3cddf84: netbsd:cv_timedwait+0x54 0xd3cddfac: netbsd:usb_event_thread+0x98 *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c2eca1c0 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 0.5 (softclk/0) @ 0xc2a70880, l_stat=1 db> bt/a 0xc2a70880 trace: pid 0 lid 5 at 0xd3c83f64 0xd3c83f64: netbsd:mi_switch+0x10 0xd3c83fac: netbsd:softint_thread+0x1a4 *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c2a70880 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 0.3 (softnet/0) @ 0xc2a70300, l_stat=1 db> bt/a 0xc2a70300 trace: pid 0 lid 3 at 0xd3bfef64 0xd3bfef64: netbsd:mi_switch+0x10 0xd3bfefac: netbsd:softint_thread+0x1a4 *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c2a70300 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. ****** LWP 0.0 (swapper) @ 0xc04fb640, l_stat=3 db> bt/a 0xc04fb640 trace: pid 0 lid 0 at 0xc05d3f04 0xc05d3f04: netbsd:mi_switch+0x10 0xc05d3f34: netbsd:sleepq_block+0x120 0xc05d3f4c: netbsd:uvm_scheduler+0xb8 0xc05d3f9c: netbsd:main+0x624 0xc05d3fac: netbsd:kernel_text+0x4c *** Locks held: none *** Locks wanted: * Lock 0 (initialized at module_hook_init) lock address : 0x00000000c058f6c0 type : sleep/adaptive initialized : 0x00000000c02878a4 shared holds : 0 exclusive: 0 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c04fb640 last held: 000000000000000000 last locked : 000000000000000000 unlocked*: 000000000000000000 owner field : 000000000000000000 wait/spin: 0/0 Turnstile: no active turnstile for this lock. [Locks tracked through CPUs] ******* Locks held on cpu0: * Lock 0 (initialized at com_attach_subr) lock address : 0x00000000c2b6e210 type : spin initialized : 0x00000000c00b3f54 shared holds : 0 exclusive: 1 shares wanted: 0 exclusive: 0 relevant cpu : 0 last held: 0 relevant lwp : 0x00000000c2a70040 last held: 0x00000000c2a70040 last locked* : 0x00000000c00b3068 unlocked : 0x00000000c00b34b8 owner field : 0x0000000000010700 wait/spin: 0/1
