Subject: kern/37063: sleepq assertion fails
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <martin@duskware.de>
List: netbsd-bugs
Date: 10/05/2007 13:35:00
>Number:         37063
>Category:       kern
>Synopsis:       sleepq assertion fails
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 05 13:35:00 +0000 2007
>Originator:     Martin Husemann
>Release:        NetBSD 4.99.31
>Organization:
>Environment:
System: NetBSD nelly.aprisoft.de 4.99.31 NetBSD 4.99.31 (NELLY) #21: Fri Oct 5 11:19:33 CEST 2007 martin@emmas.aprisoft.de:/nelly/usr/src/sys/arch/sparc64/compile/NELLY sparc64
Architecture: sparc64
Machine: sparc64
>Description:

After some runtime I get this panic on a diskless workstation every now and
then. I'm usually in X, so keyboard does not work after dropping into ddb,
but I can set ddb.commandonenter to get more diagnostics.

Backtrace is (maually transcribed):

kernel diagnostic assertion "l->l_sleepq == sq" failed: ..../kern/kern_sleepq.c", line 322
sleepq_wake+0xc0 (kern_sleepq.c:322)
cv_signal+0x50 (kern_condvar.c:316)
workqueue_enqueue+0x60 (subr_workqueue.c:305)
genfs_do_io+0x310 (genfs_vnops.c:1622)
genfs_gop_write+0x40
genfs_do_putpages
VOP_PUTPAGES
nfs_flush
nfs_close
VOP_CLOSE
vn_close
closef

>How-To-Repeat:

No idea. Happens to me "often".

>Fix: