linuxolator: fatal trap 12 when compiling libX11

Divacky Roman xdivac02 at stud.fit.vutbr.cz
Tue Jan 16 22:11:54 UTC 2007


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


More information about the freebsd-emulation mailing list