From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 17 22:30:27 2007 Return-Path: X-Original-To: emulation@freebsd.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E539716A407 for ; Wed, 17 Jan 2007 22:30:27 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 751B713C44B for ; Wed, 17 Jan 2007 22:30:27 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l0HMUP6S023059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Jan 2007 23:30:25 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l0HMUPhi023058; Wed, 17 Jan 2007 23:30:25 +0100 (CET) Date: Wed, 17 Jan 2007 23:30:25 +0100 From: Divacky Roman To: Scot Hetzel Message-ID: <20070117223025.GA21199@stud.fit.vutbr.cz> References: <790a9fff0701151314x6dd48ecbg90a54729813e84e@mail.gmail.com> <20070116080015.8dus0vamssso0sww@webmail.leidinger.net> <790a9fff0701161005t75222f2l439e8c0c1153ffd2@mail.gmail.com> <20070116181839.GA80994@stud.fit.vutbr.cz> <790a9fff0701161317q74b28955jf61b6e9651168a36@mail.gmail.com> <20070116221150.GA9429@stud.fit.vutbr.cz> <790a9fff0701162000s5f48d51fk2e5a4a74bd7021f9@mail.gmail.com> <20070117091530.GA48578@stud.fit.vutbr.cz> <790a9fff0701170955o5674c8feu98117320a72e63ef@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <790a9fff0701170955o5674c8feu98117320a72e63ef@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: emulation@freebsd.org, Alexander Leidinger Subject: Re: linuxolator: fatal trap 12 when compiling libX11 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 22:30:28 -0000 > 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