Subject: kern/9273: panic: lockmgr: not holding exclusive lock
To: None <gnats-bugs@gnats.netbsd.org>
From: Antti Kantee <pooka@iki.fi>
List: netbsd-bugs
Date: 01/22/2000 04:31:00
>Number:         9273
>Category:       kern
>Synopsis:       panic: lockmgr: not holding exclusive lock
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 22 04:30:00 2000
>Last-Modified:
>Originator:     Antti Kantee
>Organization:
>Release:        -current as of 21st Jan
>Environment:
NetBSD/i386 1.4P

>Description:

While doing `make build' on an async-mounted ffs the system just froze
when I IIRC moved the mouse a bit. Softdeps are not used here, although they
are compiled into the kernel.

This might or might not be related to kern/8511.

(gdb) target kcore /var/crash/netbsd.6.core
panic: lockmgr: not holding exclusive lock
#0  0xf0268520 in deflate_window_in ()
(gdb) bt
#0  0xf0268520 in deflate_window_in ()
#1  0x1d15000 in ?? ()
#2  0xf020bbd7 in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1114
#3  0xf015bdcd in panic () at ../../../../kern/subr_prf.c:217
#4  0xf014fb7f in lockmgr (lkp=0xf0317420, flags=4194305, interlkp=0x0)
    at ../../../../kern/kern_lock.c:420
#5  0xf0150fec in proclist_lock_read () at ../../../../kern/kern_proc.c:206
#6  0xf01511d5 in pfind (pid=213) at ../../../../kern/kern_proc.c:317
#7  0xf02331d7 in usl_sync_check (sd=0xf057ea80)
    at ../../../../dev/wscons/wsdisplay_compat_usl.c:145
#8  0xf0233239 in usl_detachproc (cookie=0xf057ea80, waitok=0, 
    callback=0xf0232c14 <wsdisplay_switch1>, cbarg=0xf04d5c80)
    at ../../../../dev/wscons/wsdisplay_compat_usl.c:172
#9  0xf0232dc7 in wsdisplay_switch (dev=0xf04d5c80, no=0, waitok=0)
    at ../../../../dev/wscons/wsdisplay.c:1549
#10 0xf02330da in wsdisplay_switchtoconsole ()
    at ../../../../dev/wscons/wsdisplay.c:1786
#11 0xf02330e4 in wsdisplay_shutdownhook (arg=0x0)
    at ../../../../dev/wscons/wsdisplay.c:1797
#12 0xf01547e9 in doshutdownhooks () at ../../../../kern/kern_subr.c:303
#13 0xf020bbdc in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1117
---Type <return> to continue, or q <return> to quit---
#14 0xf015bdcd in panic () at ../../../../kern/subr_prf.c:217
#15 0xf014fb7f in lockmgr (lkp=0xf0317420, flags=4194305, interlkp=0x0)
    at ../../../../kern/kern_lock.c:420
#16 0xf0150fec in proclist_lock_read () at ../../../../kern/kern_proc.c:206
#17 0xf01557fd in schedcpu (arg=0x0) at ../../../../kern/kern_synch.c:228
#18 0xf014a8e6 in softclock () at ../../../../kern/kern_clock.c:751
#19 0xf0101d9f in Xsoftclock ()
#20 0xf016fe0b in biowait (bp=0xf0f19c10) at ../../../../kern/vfs_bio.c:876
#21 0xf016f231 in bread (vp=0xf8f8126c, blkno=2999200, size=8192, 
    cred=0xffffffff, bpp=0xf90e8c70) at ../../../../kern/vfs_bio.c:237
#22 0xf01e6a50 in ffs_update (v=0xf90e8cac)
    at ../../../../ufs/ffs/ffs_inode.c:118
#23 0xf01ea96b in ffs_fsync (v=0xf90e8ce8) at ../../../../sys/vnode_if.h:1058
#24 0xf01e9796 in ffs_sync (mp=0xf050a200, waitfor=2, cred=0xf04d5f00, 
    p=0xf0315e00) at ../../../../sys/vnode_if.h:449
#25 0xf01767ec in sys_sync (p=0xf0315e00, v=0x0, retval=0x0)
    at ../../../../kern/vfs_syscalls.c:565
#26 0xf0175a1d in vfs_shutdown () at ../../../../kern/vfs_subr.c:2283
#27 0xf020bbaf in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1101
#28 0xf015bdcd in panic () at ../../../../kern/subr_prf.c:217
#29 0xf014fb7f in lockmgr (lkp=0xf0317420, flags=4194305, interlkp=0x0)
    at ../../../../kern/kern_lock.c:420
---Type <return> to continue, or q <return> to quit---
#30 0xf0150fec in proclist_lock_read () at ../../../../kern/kern_proc.c:206
#31 0xf01511d5 in pfind (pid=213) at ../../../../kern/kern_proc.c:317
#32 0xf015ef8e in selwakeup (sip=0xf8f8a41c)
    at ../../../../kern/sys_generic.c:982
#33 0xf0164677 in ttwakeup (tp=0xf8f8a398) at ../../../../kern/tty.c:1891
#34 0xf0162695 in ttyinput (c=65504, tp=0xf8f8a398)
    at ../../../../kern/tty.c:587
#35 0xf0232964 in wsdisplay_kbdinput (dev=0xf04d5c80, ks=65504)
    at ../../../../dev/wscons/wsdisplay.c:1327
#36 0xf02370ae in wskbd_rawinput (dev=0xf04e2800, 
    buf=0xf90e8e77 "à¨\216\016ùOµ\020ð@ÜMðà", len=1)
    at ../../../../dev/wscons/wskbd.c:637
#37 0xf02396d8 in pckbd_input (vsc=0xf04ddc40, data=224)
    at ../../../../dev/pckbc/pckbd.c:538
#38 0xf010b54f in pckbcintr (vsc=0xf04d5780) at ../../../../dev/ic/pckbc.c:913
#39 0xf0100f98 in Xintr1 ()
#40 0x80000000 in ?? ()

>How-To-Repeat:

no idea, didn't get it a second time. (and I'm running an older kernel now)

>Fix:

sorry...

>Audit-Trail:
>Unformatted: