Subject: kern/31870: kernel debugging assertion "l->l_cpu != curcpu()" failed
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 10/19/2005 20:04:01
>Number:         31870
>Category:       kern
>Synopsis:       kernel debugging assertion "l->l_cpu != curcpu()" failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 19 20:04:01 +0000 2005
>Originator:     Manuel Bouyer
>Release:        NetBSD 2.1_RC6
>Organization:
>Environment:
System: NetBSD pop.lip6.fr 2.1_RC6 NetBSD 2.1_RC6 (GENERIC.MPDEBUG) #0: Tue Oct 18 18:13:47 CEST 2005 bouyer@pop.lip6.fr:/local/pop1/bouyer/tmp/i386/obj/local/pop1/bouyer/netbsd-2/src/sys/arch/i386/compile/GENERIC.MPDEBUG i386
Architecture: i386
Machine: i386
>Description:
	I got this on a dual P3 system while running 2 pkgsrc bulk buidl,
	and a gunzip of a large file:
panic: kernel debugging assertion "l->l_cpu != curcpu()" failed: file "/local/pop1/bouyer/netbsd-2/src/sys/uvm/uvm_glue.c", line 605
db{0}>  tr
cpu_Debugger(0,ccb5a39c,0,ce94e29c,0) at netbsd:cpu_Debugger+0x4
panic(c079e240,c06fde78,c070e913,c07693a0,25d) at netbsd:panic+0x121
__main(c06fde78,c07693a0,25d,c070e913,3) at netbsd:__main
uvm_swapout(c083513c,c076b180,315,d,12a66) at netbsd:uvm_swapout
uvmpd_scan(ccb5a39c,c042252c,254d4,12a6a,c03718f2) at netbsd:uvmpd_scan+0x27a
uvm_pageout(ccb5a39c,8ec000,8f5000,0,c0100321) at netbsd:uvm_pageout+0x138
db{0}> mach cpu 1
using CPU 1
db{0}> tr
acquire(c0828b40,ce1d7f30,400040,0,600) at netbsd:acquire+0x49
_lockmgr(c0828b40,400042,0,c075e440,53c) at netbsd:_lockmgr+0x4c0
_kernel_lock(42,400006,0,c076c140,345) at netbsd:_kernel_lock+0x3b
pmap_load(1001f,1f,1f,bfbf001f,10000) at netbsd:pmap_load+0xa5

I have a kernel core dump

>How-To-Repeat:
	Run intensive CPU tasks + intensive file I/O on a dual-CPU system ?
>Fix:
	unknown