Subject: kern/10014: panic: lockmgr: locking against myself
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin J. Laubach <mjl@emsi.priv.at>
List: netbsd-bugs
Date: 04/29/2000 10:31:09
>Number:         10014
>Category:       kern
>Synopsis:       panic: lockmgr: locking against myself
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 29 10:32:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Martin J. Laubach
>Release:        2000-04-16
>Organization:
>Environment:
System: NetBSD asparagus 1.4X NetBSD 1.4X (ASPARAGUS) #0: Sun Apr 16 14:54:16 CEST 2000 mjl@asparagus:/home/temp/devel/cvs/src/sys/arch/i386/compile/ASPARAGUS i386


>Description:
  While cvs update running, the machine panicked. Nothing else
was active at the time.

asparagus# gdb netbsd.gdb.1
GNU gdb 4.17
[..]
This GDB was configured as "i386--netbsd"...
(gdb) target kcore /var/crash/netbsd.1.core
panic: lockmgr: locking against myself
#0  0xc02935fc in db_last_command ()
(gdb) where
#0  0xc02935fc in db_last_command ()
#1  0x23e7000 in ?? ()
#2  0xc020f003 in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1112
#3  0xc0112fda in db_reboot_cmd () at ../../../../ddb/db_command.c:640
#4  0xc0112cc4 in db_command (last_cmdp=0xc02935fc, cmd_table=0xc029343c)
    at ../../../../ddb/db_command.c:316
#5  0xc0112e66 in db_command_loop () at ../../../../ddb/db_command.c:544
#6  0xc011581e in db_trap (type=1, code=0) at ../../../../ddb/db_trap.c:78
#7  0xc020cd00 in kdb_trap (type=1, code=0, regs=0xc43bb608)
    at ../../../../arch/i386/i386/db_interface.c:119
#8  0xc0213f68 in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = -1071245088, 
      tf_esi = 260, tf_ebp = -1002719680, tf_ebx = -1002719648, tf_edx = 0, 
      tf_ecx = 0, tf_eax = 0, tf_trapno = 1, tf_err = 0, tf_eip = -1071592016, 
      tf_cs = 8, tf_eflags = 514, tf_esp = -1002719660, tf_ss = -1072462043, 
      tf_vm86_es = -1002467148, tf_vm86_ds = 66578, tf_vm86_fs = 0, 
      tf_vm86_gs = -1002719624}) at ../../../../arch/i386/i386/trap.c:298
#9  0xc0100ce5 in calltrap ()
#10 0xc0138725 in panic (fmt=0xc02618e0 "lockmgr: locking against myself")
    at ../../../../kern/subr_prf.c:216
#11 0xc012bd12 in lockmgr (lkp=0xc43f90b4, flags=65554, interlkp=0xc43f90b0)
    at ../../../../kern/kern_lock.c:508
#12 0xc0158db7 in genfs_lock (v=0xc43bb6a4)
    at ../../../../miscfs/genfs/genfs_vnops.c:317
#13 0xc015821b in vn_lock (vp=0xc43f9014, flags=65554)
    at ../../../../sys/vnode_if.h:755
#14 0xc0151002 in vget (vp=0xc43f9014, flags=65554)
    at ../../../../kern/vfs_subr.c:1025
#15 0xc01f3a1a in ffs_sync (mp=0xc049c400, waitfor=2, cred=0xc043ff80, 
    p=0xc02c21e0) at ../../../../ufs/ffs/ffs_vfsops.c:901
#16 0xc0153440 in sys_sync (p=0xc02c21e0, v=0x0, retval=0x0)
    at ../../../../kern/vfs_syscalls.c:571
#17 0xc0152409 in vfs_shutdown () at ../../../../kern/vfs_subr.c:2292
#18 0xc020efdb in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1099
#19 0xc0112fda in db_reboot_cmd () at ../../../../ddb/db_command.c:640
#20 0xc0112cc4 in db_command (last_cmdp=0xc02935fc, cmd_table=0xc029343c)
    at ../../../../ddb/db_command.c:316
#21 0xc0112e66 in db_command_loop () at ../../../../ddb/db_command.c:544
#22 0xc011581e in db_trap (type=1, code=0) at ../../../../ddb/db_trap.c:78
#23 0xc020cd00 in kdb_trap (type=1, code=0, regs=0xc43bb8d8)
    at ../../../../arch/i386/i386/db_interface.c:119
#24 0xc0213f68 in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = -1071245088, 
      tf_esi = 256, tf_ebp = -1002718960, tf_ebx = -1002718928, tf_edx = 0, 
      tf_ecx = 0, tf_eax = 0, tf_trapno = 1, tf_err = 0, tf_eip = -1071592016, 
      tf_cs = 8, tf_eflags = 514, tf_esp = -1002718940, tf_ss = -1072462043, 
      tf_vm86_es = -1002467148, tf_vm86_ds = 66562, tf_vm86_fs = 0, 
      tf_vm86_gs = -1002718904}) at ../../../../arch/i386/i386/trap.c:298
#25 0xc0100ce5 in calltrap ()
#26 0xc0138725 in panic (fmt=0xc02618e0 "lockmgr: locking against myself")
    at ../../../../kern/subr_prf.c:216
#27 0xc012bd12 in lockmgr (lkp=0xc43f90b4, flags=65538, interlkp=0xc43f90b0)
    at ../../../../kern/kern_lock.c:508
#28 0xc0158db7 in genfs_lock (v=0xc43bb974)
    at ../../../../miscfs/genfs/genfs_vnops.c:317
#29 0xc015821b in vn_lock (vp=0xc43f9014, flags=65538)
    at ../../../../sys/vnode_if.h:755
#30 0xc0151002 in vget (vp=0xc43f9014, flags=65538)
    at ../../../../kern/vfs_subr.c:1025
#31 0xc01f5bc8 in ufs_ihashget (dev=1039, inum=356426, flags=2)
    at ../../../../ufs/ufs/ufs_ihash.c:121
#32 0xc01f3b7f in ffs_vget (mp=0xc049c400, ino=356426, vpp=0xc43bba58)
    at ../../../../ufs/ffs/ffs_vfsops.c:965
#33 0xc024c3db in flush_pagedep_deps (pvp=0xc43ee2d0, mp=0xc049c400, 
    diraddhdp=0xc0540930) at ../../../../../gnu/sys/ufs/ffs/ffs_softdep.c:4296
#34 0xc024be95 in softdep_sync_metadata (v=0xc43bbb54)
    at ../../../../../gnu/sys/ufs/ffs/ffs_softdep.c:4033
#35 0xc01f4be3 in ffs_fsync (v=0xc43bbb54)
    at ../../../../ufs/ffs/ffs_vnops.c:318
#36 0xc015084a in vinvalbuf (vp=0xc43ee2d0, flags=1, cred=0xffffffff, 
    p=0xc4393bf0, slpflag=0, slptimeo=0) at ../../../../sys/vnode_if.h:449
#37 0xc015148d in vclean (vp=0xc43ee2d0, flags=8, p=0xc4393bf0)
    at ../../../../kern/vfs_subr.c:1371
#38 0xc015166b in vgonel (vp=0xc43ee2d0, p=0xc4393bf0)
    at ../../../../kern/vfs_subr.c:1501
#39 0xc0150595 in getnewvnode (tag=VT_UFS, mp=0xc049c400, vops=0xc043a200, 
    vpp=0xc43bbc50) at ../../../../kern/vfs_subr.c:508
#40 0xc01f3bbe in ffs_vget (mp=0xc049c400, ino=356473, vpp=0xc43bbcb4)
    at ../../../../ufs/ffs/ffs_vfsops.c:970
#41 0xc01ed5ca in ffs_valloc (v=0xc43bbcb8)
    at ../../../../ufs/ffs/ffs_alloc.c:605
#42 0xc01fa2e8 in ufs_makeinode (mode=33261, dvp=0xc43f9014, vpp=0xc43bbeec, 
    cnp=0xc43bbf00) at ../../../../sys/vnode_if.h:933
#43 0xc01f7712 in ufs_create (v=0xc43bbe0c)
    at ../../../../ufs/ufs/ufs_vnops.c:117
#44 0xc0157694 in vn_open (ndp=0xc43bbedc, fmode=1538, cmode=493)
    at ../../../../sys/vnode_if.h:96
#45 0xc0153c3e in sys_open (p=0xc4393bf0, v=0xc43bbf88, retval=0xc43bbf80)
    at ../../../../kern/vfs_syscalls.c:1004
#46 0xc02145de in syscall (frame={tf_es = 31, tf_ds = 31, tf_edi = 134869389, 
      tf_esi = 134996640, tf_ebp = -1077945832, tf_ebx = 0, 
      tf_edx = 134982656, tf_ecx = 3, tf_eax = 5, tf_trapno = 3, tf_err = 2, 
      tf_eip = 1209295351, tf_cs = 23, tf_eflags = 659, tf_esp = -1077962548, 
      tf_ss = 31, tf_vm86_es = 0, tf_vm86_ds = 0, tf_vm86_fs = 0, 
      tf_vm86_gs = 0}) at ../../../../arch/i386/i386/trap.c:760
#47 0xc0100d91 in syscall1 ()
can not access 0xbfbfda18, invalid translation (invalid PDE)
can not access 0xbfbfda18, invalid translation (invalid PDE)
Cannot access memory at address 0xbfbfda18.

>How-To-Repeat:
  Run cvs update?

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: