Subject: kern/28886: 2.0 panic: assertion "vp->savp_lwp==l2" failed (kern_sa.c)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Hubert Feyrer <hubert@feyrer.de>
List: netbsd-bugs
Date: 01/06/2005 15:06:00
	Note: There was a bad value `' for the field `Confidential'.
	It was set to the default value of `yes'.

>Number:         28886
>Category:       kern
>Synopsis:       2.0 panic: assertion "vp->savp_lwp==l2" failed (kern_sa.c)
>Confidential:   yes
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 06 15:06:00 +0000 2005
>Originator:     Hubert Feyrer
>Release:        NetBSD 2.0_STABLE
>Organization:
bla!
>Environment:
	
	
System: NetBSD miyu 2.0_STABLE NetBSD 2.0_STABLE (MIYU) #48: Tue Jan 4 14:31:50 MET 2005 feyrer@miyu:/usr/cvs/src-2.0/sys/arch/i386/compile/MIYU i386
Architecture: i386
Machine: i386
>Description:
	I usually shutdown my system with "shutdown -p", occassionally with
	some time delay. Sometimes I find it frozen in X. Yesterday I managed
	to switch to virtual console 1 before shutdown, and it hung again:

		Done sunning shutdown hooks.
		panic: kernel debugging assertion "vp->savp_lwp == l2" failed:
			file ../../../../kern/kern_sa.c, line 1044
		Begin traceback...
		__main
		sa_switchcall
		End traceback
		syncing disks ... <hang>

	Afer pressing ctl+alt+esc:

		...
		db> bt
		...
		--- interrupt ---
		wakeup
		uvm_aiodone_daemon
		db>

	I'm not sure if the hang at the end is related to the one in
	PR 28875.

	Either way, the panic's annoying, can someone fix it?


>How-To-Repeat:
	Run "shutdown -p now" and see it sometimes blow up.

>Fix:
	Please.

>Unformatted: