Subject: Re: kern/29652
To: None <gnats-bugs@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 08/18/2005 17:29:10
>  panic: kernel diagnostic assertion "p->p_nrlwps == 0" failed: file "/usr/src/sys/kern/kern_exit.c", line 781

as p_nrlwps currently has no locking afaik, the panic is not surprising. :)

proc.h claims it's protected by p_lock, but i think
sched_lock is more straightforward lock to use.

YAMAMOTO Takashi