Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Panic in init_sysctl.c::fill_lwp()
On Wed, 2 Apr 2008 10:25:57 +0900 (JST)
yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi) wrote:
> l_wmesg is stale unless l_wchan != NULL.
> the easiest fix would be clear l_wmesg in sleepq_remove.
> i prefer to fix users of l_wmesg instead, tho.
Thanks for the hint. This patch avoided the panic for me:
Index: kern_sleepq.c
===================================================================
RCS file: /cvsroot/src/sys/kern/kern_sleepq.c,v
retrieving revision 1.23
diff -b -u -p -r1.23 kern_sleepq.c
--- kern_sleepq.c 28 Mar 2008 20:48:36 -0000 1.23
+++ kern_sleepq.c 2 Apr 2008 11:03:20 -0000
@@ -125,6 +125,7 @@ sleepq_remove(sleepq_t *sq, lwp_t *l)
l->l_syncobj = &sched_syncobj;
l->l_wchan = NULL;
l->l_sleepq = NULL;
+ l->l_wmesg = NULL;
l->l_flag &= ~LW_SINTR;
ci = l->l_cpu;
--
Juan Romero Pardines - xtraeme at gmail|netbsd dot org
The NetBSD Project
Make your own NetBSD/x86 Live CD
http://www.netbsd.org/~xtraeme/mklivecd/
Home |
Main Index |
Thread Index |
Old Index