Subject: Re: locking errors in -current
To: Michael Graff <explorer@flame.org>
From: Chuck Silvers <chuq@chuq.com>
List: current-users
Date: 12/02/2000 15:50:47
these are unrelated. the simple_lock errors are harmless on a uniprocessor.
there's not much point in turning on LOCKDEBUG for a uniprocessor unless
you're working on MP code. the genfs_putpages() assertion, on the other hand,
is a problem regardless of uni- or multi-processor. could I get a copy
of the dump?
-Chuck
On Sat, Dec 02, 2000 at 03:22:50PM -0800, Michael Graff wrote:
>
> Do you have DIAGNOSTIC in your config file?
>
> If you did, perhaps you would have gotten this crash instead, which
> I get when making in distrib/i386/floppies/ramdisk-tiny:
>
> "panic: kernel diagnostic assertion "bytes != 0" failed: file
> miscfs/genfs/genfs_vnops.c line 963
>
> This is repeatable, and I have a core dump, but no netbsd.gdb file.
>
> --Michael
>
> Jarle Greipsland <jarle@runit.sintef.no> writes:
>
> > Today I updated my source tree, rebuilt a -current kernel, and
> > installed it. The kernel, built with the LOCKDEBUG option, almost
> > immediately started to complain about locking errors. This is on an
> > Alpha PC164 with /usr/src nullfs-mounted from /local/src.
> >
> > The error messages are listed below. Should I send-pr this, or can
> > someone immediately spot the error and fix it?
> > -jarle
> >
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../ufs/ufs/ufs_vnops.c:211
> > last unlocked: ../../../../ufs/ufs/ufs_vnops.c:216
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../uvm/uvm_pager.c:828
> > last unlocked: ../../../../uvm/uvm_pager.c:875
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault.c:1654
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault.c:1654
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > ed: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../uvm/uvm_pager.c:828
> > last unlocked: ../../../../uvm/uvm_pager.c:875
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault.c:1654
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault.c:1654
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../miscfs/genfs/genfs_vnops.c:823
> > last unlocked: ../../../../miscfs/genfs/genfs_vnops.c:908
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../uvm/uvm_fault_i.h:92
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../ufs/ffs/ffs_vfsops.c:940
> > last unlocked: ../../../../ufs/ffs/ffs_vfsops.c:948
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../kern/vfs_subr.c:1241
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../ufs/ffs/ffs_vfsops.c:940
> > last unlocked: ../../../../ufs/ffs/ffs_vfsops.c:948
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../kern/vfs_subr.c:1241
> > setclock: 0/12/2/18/3/3
> > Dec 2 19:03:03 honey ntpd[165]: time reset 25.882560 s
> > simple_unlock: lock not held
> > lock: 0xfffffc00012b5bb8, currently at: ../../../../miscfs/genfs/genfs_vnops.c:612
> > last locked: ../../../../ufs/ffs/ffs_vfsops.c:940
> > last unlocked: ../../../../ufs/ffs/ffs_vfsops.c:948
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > switching with held simple_lock 0xfffffc00012b5dd8 CPU 0 ../../../../uvm/uvm_fault.c:914
> > simple_lock: lock held
> > lock: 0xfffffc00012b5dd8, currently at: ../../../../uvm/uvm_fault.c:1384
> > last locked: ../../../../uvm/uvm_fault.c:914
> > last unlocked: ../../../../kern/vfs_subr.c:1241