Date: Tue, 16 Jan 2007 23:11:50 +0100 From: Divacky Roman <xdivac02@stud.fit.vutbr.cz> To: Scot Hetzel <swhetzel@gmail.com> Cc: emulation@freebsd.org, Alexander Leidinger <Alexander@leidinger.net> Subject: Re: linuxolator: fatal trap 12 when compiling libX11 Message-ID: <20070116221150.GA9429@stud.fit.vutbr.cz> In-Reply-To: <790a9fff0701161317q74b28955jf61b6e9651168a36@mail.gmail.com> References: <790a9fff0701151314x6dd48ecbg90a54729813e84e@mail.gmail.com> <20070116080015.8dus0vamssso0sww@webmail.leidinger.net> <790a9fff0701161005t75222f2l439e8c0c1153ffd2@mail.gmail.com> <20070116181839.GA80994@stud.fit.vutbr.cz> <790a9fff0701161317q74b28955jf61b6e9651168a36@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
please test this patch:
Index: linux_emul.c
===================================================================
RCS file: /home/ncvs/src/sys/compat/linux/linux_emul.c,v
retrieving revision 1.12
diff -u -r1.12 linux_emul.c
--- linux_emul.c 7 Jan 2007 19:09:20 -0000 1.12
+++ linux_emul.c 16 Jan 2007 22:11:06 -0000
@@ -170,7 +170,8 @@
EMUL_UNLOCK(&emul_lock);
EMUL_SHARED_WLOCK(&emul_shared_lock);
- LIST_REMOVE(em, threads);
+ if (!LIST_EMPTY(em->shared->threads)
+ LIST_REMOVE(em, threads);
PROC_LOCK(p);
p->p_emuldata = NULL;
thnx
roman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070116221150.GA9429>
