linuxolator: fatal trap 12 when compiling libX11

Divacky Roman xdivac02 at stud.fit.vutbr.cz
Wed Jan 17 22:30:28 UTC 2007


>  td_flags = 0x5000002,

this flags show...
#define TDF_SCHED0      0x01000000 /* Reserved for scheduler private use */
#define TDF_SCHED2      0x04000000 /* Reserved for scheduler private use */


I am no expert but I quickly looked at the sources and this doesnt seem to be
possible to be set (if its possible please someone tell em).

what scheduler are you using? if you use the other one can you reproduce
the panic?


can you try this patch (added to the pathces you already have):

the locking there sucks, I'll have to revisit it together with
the LIST magic ;(

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        17 Jan 2007 22:28:51 -0000
@@ -91,11 +91,11 @@
                        struct linux_emuldata_shared *s;

                        s = malloc(sizeof *s, M_LINUX, M_WAITOK | M_ZERO);
-                       em->shared = s;
                        s->refs = 1;
                        s->group_pid = child;

                        LIST_INIT(&s->threads);
+                       em->shared = s;
                }
                p = pfind(child);
                KASSERT(p != NULL, ("process not found in proc_init\n"));

roman


More information about the freebsd-emulation mailing list