Subject: kern/27125: assertion "lockstatus(&proclist_lock) == LK_SHARED
To: None <gnats-bugs@gnats.NetBSD.org>
From: Andreas Wrede <andreas@planix.com>
List: netbsd-bugs
Date: 10/03/2004 13:41:55
>Number:         27125
>Category:       kern
>Synopsis:       assertion "lockstatus(&proclist_lock) == LK_SHARED
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 03 17:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Wrede <andreas@planix.com>
>Release:        NetBSD 2.99.9
>Organization:
Planix, Inc.
>Environment:
	
	
System: NetBSD woffi.planix.com 2.99.9 NetBSD 2.99.9 (WOFFI) #5: Sun Oct 3 13:08:54 EDT 2004 root@woffi.planix.com:/m5/netbsd-current/obj.i386/sys/arch/i386/compile/WOFFI i386
Architecture: i386
Machine: i386
>Description:
A simple 'ls /proc' triggers the KASSERT in sys/kern/kern_proc.c:
panic: kernel diagnostic assertion "lockstatus(&proclist_lock) == LK_SHARED" failed: file "/m5/netbsd-current/src/sys/kern/kern_proc.c", line 1110
Begin traceback...
__main(c056887f,c05c2f00,456,c05c2ec0,cd52b800) at netbsd:__main
proclist_foreach_call(c06831e8,c0267dc4,cd648cf4,0,4) at netbsd:proclist_foreach_call+0xf7
procfs_readdir(cd648e54,16d,1,0,c0526180) at netbsd:procfs_readdir+0x259
VOP_READDIR(cd418698,cd648eb4,cd4792f8,cd648ea8,0) at netbsd:VOP_READDIR+0x40
vn_readdir(cd486ac4,8052000,0,1000,cd648f24) at netbsd:vn_readdir+0x86
sys_getdents(cd4918cc,cd648f64,cd648f5c,0,c1a54000) at netbsd:sys_getdents+0x52
syscall_plain() at netbsd:syscall_plain+0x18f
--- syscall (number 272) ---
0x480e5427:
End traceback...
syncing disks... 3 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 giving up
Printing vnodes for busy buffers
giving up


>How-To-Repeat:
	
# mount -t procfs /proc /proc
# ls /proc

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:
 ls in /proc panics with assertion "lockstatus(&proclist_lock) == LK_SHARED