Subject: kern/10374 (lockmgr: locking against myself)
To: None <port-i386@netbsd.org>
From: Aaron J. Grier <agrier@poofygoof.com>
List: port-i386
Date: 07/12/2000 11:27:38
Re: http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=10374

1.4.2 seems to have some kind of vfs locking problem.  my co-worker's
machine (pentium pro) dies three or more times a week with "lockmgr:
locking against myself":

#0  0xc012564d in lockstatus (lkp=0xc4aaac50)
    at ../../../../kern/kern_lock.c:154
#1  0xc01f1bd3 in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1353
#2  0xc0132109 in panic (fmt=0xc012564d "lockmgr: locking against myself")
    at ../../../../kern/subr_prf.c:212
#3  0xc01259da in lockmgr (lkp=0xc4b68184, flags=65538, interlkp=0xc4a22bf4)
    at ../../../../kern/kern_lock.c:328
#4  0xc01dc452 in ufs_lock (v=0xc4aaac90)
    at ../../../../ufs/ufs/ufs_vnops.c:1585
#5  0xc014fc93 in vn_lock (vp=0xc4a22b64, flags=65538)
    at ../../../../sys/vnode_if.h:724
#6  0xc0149ae2 in vrele (vp=0xc4a22b64) at ../../../../kern/vfs_subr.c:948
#7  0xc01acd73 in nfs_lookup (v=0xc4aaae04) at ../../../../nfs/nfs_vnops.c:822
#8  0xc01486c8 in lookup (ndp=0xc4aaae94) at ../../../../sys/vnode_if.h:71
#9  0xc01483b7 in namei (ndp=0xc4aaae94) at ../../../../kern/vfs_lookup.c:153
#10 0xc014d690 in sys___stat13 (p=0xc4aab00c, v=0xc4aaaf88, retval=0xc4aaaf80)
    at ../../../../kern/vfs_syscalls.c:1572
#11 0xc01f8f9a in syscall (frame={tf_es = 720927, tf_ds = -1078001633, 
      tf_edi = -1077945036, tf_esi = -1077945028, tf_ebp = -1077945276, 
      tf_ebx = 53400, tf_edx = 756160, tf_ecx = 0, tf_eax = 278, 
      tf_trapno = 3, tf_err = 2, tf_eip = 1076410255, tf_cs = 23, 
      tf_eflags = 646, tf_esp = -1077946424, 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:782

dmesg and a few other backtraces are available via query-pr.

has this been fixed in 1.4.3?
is 1.5 going to be ELF or a.out for i386?

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofygoof.com