Subject: kern/30746: panic: kernel diagnostic assertion "pg->loan_count > 0" failed
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <pcah8322@artax.karlin.mff.cuni.cz>
List: netbsd-bugs
Date: 07/14/2005 13:04:00
>Number:         30746
>Category:       kern
>Synopsis:       panic: kernel diagnostic assertion "pg->loan_count > 0" failed
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 14 13:04:00 +0000 2005
>Originator:     pavel.cahyna@st.mff.cuni.cz
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
System: NetBSD pc.martani.n2.repy.czf 3.0_BETA NetBSD 3.0_BETA (GENERIC_DEBUG) #0: Mon Jul 11 13:06:01 CEST 2005 pavel@pc.martani.n2.repy.czf:/mnt/obj/kompilace/bsdobj-3-i386/sys/arch/i386/compile/GENERIC_DEBUG i386
Architecture: i386
Machine: i386
>Description:
When using svk (a perl program) to mirror a CVS repository to
Subversion, the system paniced with:
panic: kernel diagnostic assertion "pg->loan_count > 0" failed: file "/mnt/obj/netbsd-3/src/sys/uvm/uvm_anon.c", line 230
Stopped in pid 5427.1 (perl) at	netbsd:cpu_Debugger+0x4:	leave
cpu_Debugger(c0a7f460,0,cb2c3c5c,cb37e1f0,cc699d1c) at netbsd:cpu_Debugger+0x4
panic(c07d48e0,c0728dc2,c0740d2b,c079e520,e6) at netbsd:panic+0x11d
__main(c0728dc2,c079e520,e6,c0740d2b,c086fe14) at netbsd:__main
uvm_anfree(cc699d18,c079e280,29e,1,c086fda0) at netbsd:uvm_anfree+0x177
amap_wipeout(cc00d4d4,0,ae23,0,cb858f78) at netbsd:amap_wipeout+0xe5
uvm_unmap_detach(cb989370,0,1bf,246,ca1c6000) at netbsd:uvm_unmap_detach+0xb6
uvm_unmap1(cb858e74,0,bfc00000,0,6) at netbsd:uvm_unmap1+0x11a
uvmspace_exec(ca98bef4,0,bfc00000,0,c1579a4c) at netbsd:uvmspace_exec+0xb3
sys_execve(ca98bef4,cb2c3f64,cb2c3f5c,0,ca989bb8) at netbsd:sys_execve+0x525
syscall_plain() at netbsd:syscall_plain+0x18f

The gernel is GENERIC, with DIAGNOSTIC, LOCKDEBUG and DEBUG added.

I have a core dump.
>How-To-Repeat:
unknown, unfortunately.	
>Fix:
unknown.