From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 4 20:20:56 2007 Return-Path: X-Original-To: freebsd-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 CAC3D16A401 for ; Sun, 4 Mar 2007 20:20:56 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 975DC13C481 for ; Sun, 4 Mar 2007 20:20:56 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from [192.168.42.21] (andersonbox1.centtech.com [192.168.42.21]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l24KKtSj086225; Sun, 4 Mar 2007 14:20:55 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <45EB2A26.3060904@centtech.com> Date: Sun, 04 Mar 2007 14:20:54 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: Juergen Lock References: <45DB10D3.8040807@centtech.com> <200702241917.l1OJHNlC008923@saturn.kn-bremen.de> <20070224192754.GA9905@saturn.kn-bremen.de> <200703031932.l23JWt6m039021@saturn.kn-bremen.de> In-Reply-To: <200703031932.l23JWt6m039021@saturn.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2722/Sun Mar 4 12:06:42 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org Subject: Re: experimental qemu-devel port (update), please test! 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: Sun, 04 Mar 2007 20:20:56 -0000 On 03/03/07 13:32, Juergen Lock wrote: > In article <45E5CDE3.7030509@centtech.com> anderson@centtech.com (Eric Anderson)writes: > >> On 02/24/07 13:27, Juergen Lock wrote: >>> On Sat, Feb 24, 2007 at 08:17:23PM +0100, Juergen Lock wrote: >>>> In article <45DB10D3.8040807@centtech.com> you write: >>>>> Is anyone else experiencing a nearly useless qemu experience with the >>>>> latest versions? >>>>> >>>>> I'm running -CURRENT from yesterday, and the latest qemu port (and kqemu). >>>>> >>>>> These combinations segfault: >>>>> >>>>> Anything with the -vnc option, when disconnecting the vnc viewer, will >>>>> segfault: >>>>> sudo qemu -hda /alt/images/fs.img -hdb /alt/images/swapfile -net nic >>>>> -net tap -snapshot -vnc :1 -serial /dev/ttyv8 -kernel-kqemu >>>>> >>>>> This used to work nicely, now it dies when I connect to port 1111: >>>>> sudo qemu -hda /alt/images/fs.img -hdb /alt/images/swapfile -net nic >>>>> -net tap -snapshot -serial telnet::1111,server,nowait -std-vga -monitor >>>>> stdio -full-screen -kernel-kqemu >>>>> >>>>> Which, when it dies, ktrace shows me: >>>>> ... >>>> Hmm I don't know much about the code in question, you may have more >>>> luck reposting this on the qemu list: >>>> http://lists.gnu.org/mailman/listinfo/qemu-devel >>> And just when I posted this... There were just patches posted on that >>> list that fix vnc disconnect segfaults, so I think the next port update >>> will fix at least that problem. >> Thanks! I've been hoping to see the update, but still not there yet.. >> :( Oh well. > > Sorry things are going a little slow around here... But now I have > the following update for you all to test: > > 1. copy the qemu port dir (/usr/ports/emulators/qemu) to > emulators/qemu-devel > 2. apply the patch below in emulators > 3. deinstall qemu > 3. run `make install' in the new qemu-devel port dir (you probably > cannot use portinstall/portupgrade unless you add the new port to > INDEX yourself, that is until it is committed...) > 4. test! > > Should you want to go back, deinstall qemu-devel and then install the > originall qemu port again. > >> I wonder if that will also fix my telnet issue with qemu. > > Not sure, but now you should be able to check yourself. :) I can confirm, this patch fixes both the vnc problem *and* the telnet issue. Woohoo!!! Thanks a ton! The only issue I see with VNC is one I've had since I tried using it 5-6 months ago, is corrupt video (during FreeBSD kernel boots, and console output, etc). I've never really tried it with higher resolution stuff though. Not a big deal.. Thanks for the patch!! Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology An undefined problem has an infinite number of solutions. ------------------------------------------------------------------------ From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 4 23:54:07 2007 Return-Path: X-Original-To: freebsd-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 E3DD716A406 for ; Sun, 4 Mar 2007 23:54:07 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id 8E6FA13C4B6 for ; Sun, 4 Mar 2007 23:54:07 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 32450 invoked by uid 399); 4 Mar 2007 23:27:27 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 4 Mar 2007 23:27:27 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45EB55DD.4030201@FreeBSD.org> Date: Sun, 04 Mar 2007 15:27:25 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: jkim@freebsd.org, freebsd-emulation@freebsd.org Content-Type: multipart/mixed; boundary="------------080703080409030301040606" Cc: Subject: Linux emulation instability 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: Sun, 04 Mar 2007 23:54:08 -0000 This is a multi-part message in MIME format. --------------080703080409030301040606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit jkim, The attached change to sys/i386/linux/linux_machdep.c causes my linux emulation to spontaneously reboot my machine (no panic, just BOOM) whenever I use the linux version of the thunderbird beta (that I'm using right now to type this). I built a system from sources right before this change and everything is normal, then when I add this change it becomes unstable. I'm currently in the process of building an up to date -current without this change to see if that's stable for me, but I thought you'd want to know ASAP. Doug -- This .signature sanitized for your protection --------------080703080409030301040606 Content-Type: text/plain; name="linux-bad.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="linux-bad.diff" Index: linux_machdep.c =================================================================== RCS file: /usr/local/ncvs/src/sys/i386/linux/linux_machdep.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -r1.72 -r1.73 --- linux_machdep.c 24 Feb 2007 16:49:25 -0000 1.72 +++ linux_machdep.c 27 Feb 2007 02:08:01 -0000 1.73 @@ -27,7 +27,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/i386/linux/linux_machdep.c,v 1.72 2007/02/24 16:49:25 netchild Exp $"); +__FBSDID("$FreeBSD: src/sys/i386/linux/linux_machdep.c,v 1.73 2007/02/27 02:08:01 jkim Exp $"); #include #include @@ -684,7 +684,9 @@ if (bsd_args.prot & (PROT_READ | PROT_WRITE | PROT_EXEC)) bsd_args.prot |= PROT_READ | PROT_EXEC; - if (linux_args->fd != -1) { + /* Linux does not check file descriptor when MAP_ANONYMOUS is set. */ + bsd_args.fd = (bsd_args.flags & MAP_ANON) ? -1 : linux_args->fd; + if (bsd_args.fd != -1) { /* * Linux follows Solaris mmap(2) description: * The file descriptor fildes is opened with @@ -692,7 +694,7 @@ * protection options specified. */ - if ((error = fget(td, linux_args->fd, &fp)) != 0) + if ((error = fget(td, bsd_args.fd, &fp)) != 0) return (error); if (fp->f_type != DTYPE_VNODE) { fdrop(fp, td); @@ -707,7 +709,6 @@ fdrop(fp, td); } - bsd_args.fd = linux_args->fd; if (linux_args->flags & LINUX_MAP_GROWSDOWN) { /* --------------080703080409030301040606-- From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 5 08:47:35 2007 Return-Path: X-Original-To: freebsd-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 A267D16A409 for ; Mon, 5 Mar 2007 08:47:35 +0000 (UTC) (envelope-from silby@silby.com) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.freebsd.org (Postfix) with SMTP id 4694C13C4B4 for ; Mon, 5 Mar 2007 08:47:34 +0000 (UTC) (envelope-from silby@silby.com) Received: (qmail 25179 invoked from network); 5 Mar 2007 08:20:54 -0000 Received: from 209.68.2.70 (HELO localhost) (209.68.2.70) by relay01.pair.com with SMTP; 5 Mar 2007 08:20:54 -0000 X-pair-Authenticated: 209.68.2.70 Date: Mon, 5 Mar 2007 02:20:37 -0600 (CST) From: Mike Silbersack To: Juergen Lock In-Reply-To: <200702151924.l1FJOvqL041071@saturn.kn-bremen.de> Message-ID: <20070305021919.S10411@odysseus.silby.com> References: <200702151924.l1FJOvqL041071@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-emulation@freebsd.org Subject: Re: qemu cd-rom emulation question 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: Mon, 05 Mar 2007 08:47:35 -0000 On Thu, 15 Feb 2007, Juergen Lock wrote: > In article <20070213015439.H64316@odysseus.silby.com> you write: >> Does anyone know if it's possible to convince qemu to emulate the virtual >> cd-rom as the slave device on the primary channel rather than as the >> master device on the secondary channel? > > Not without patching qemu, no. (FWIW, the -disk patch, which has been > backed out in the meantime in the qemu source, made the cdrom appear as > primary master, but caused linux guests to hang when adding an ide disk...) > > Juergen I ended up achieving what I wanted by manually patching qemu. Since it's so simple (at the source level) to change which IDE device the cd-rom shows up as, it would be really nice if there was a command line option to perform that action. Mike "Silby" Silbersack From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 5 11:08:03 2007 Return-Path: X-Original-To: freebsd-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 B925516A406 for ; Mon, 5 Mar 2007 11:08:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A4B4513C4BB for ; Mon, 5 Mar 2007 11:08:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l25B83h9037430 for ; Mon, 5 Mar 2007 11:08:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l25B82xT037425 for freebsd-emulation@FreeBSD.org; Mon, 5 Mar 2007 11:08:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Mar 2007 11:08:02 GMT Message-Id: <200703051108.l25B82xT037425@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 05 Mar 2007 11:08:03 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/77710 emulation [linux] Linux page fault sigcontext information is wro o kern/101453 emulation [linux] [patch] linprocfs disallows non-zero file offs o kern/102956 emulation [linux] [patch] Add partial support for SO_PEERCRED in 4 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] feature request: easier wine/w23 support o kern/55835 emulation [linux] [patch] Linux IPC emulation missing SETALL sys a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s o kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula 8 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 5 16:56:37 2007 Return-Path: X-Original-To: freebsd-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 0B15E16A46F for ; Mon, 5 Mar 2007 16:56:37 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id A7EA113C494 for ; Mon, 5 Mar 2007 16:56:36 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l25GuZGK062070; Mon, 5 Mar 2007 11:56:35 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Doug Barton Date: Mon, 5 Mar 2007 11:56:15 -0500 User-Agent: KMail/1.6.2 References: <45EB55DD.4030201@FreeBSD.org> In-Reply-To: <45EB55DD.4030201@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703051156.34866.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2735/Mon Mar 5 10:23:59 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-emulation@FreeBSD.org Subject: Re: Linux emulation instability 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: Mon, 05 Mar 2007 16:56:37 -0000 On Sunday 04 March 2007 06:27 pm, Doug Barton wrote: > jkim, > > The attached change to sys/i386/linux/linux_machdep.c causes my > linux emulation to spontaneously reboot my machine (no panic, just > BOOM) whenever I use the linux version of the thunderbird beta > (that I'm using right now to type this). I built a system from > sources right before this change and everything is normal, then > when I add this change it becomes unstable. That is very strange. > I'm currently in the process of building an up to date -current > without this change to see if that's stable for me, but I thought > you'd want to know ASAP. Please go ahead and let me know. Thanks, Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 5 23:34:40 2007 Return-Path: X-Original-To: freebsd-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 BBBDD16A406 for ; Mon, 5 Mar 2007 23:34:40 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id 6A4CD13C48D for ; Mon, 5 Mar 2007 23:34:40 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 17250 invoked by uid 399); 5 Mar 2007 23:34:39 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 5 Mar 2007 23:34:39 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45ECA90E.3050202@FreeBSD.org> Date: Mon, 05 Mar 2007 15:34:38 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Jung-uk Kim References: <45EB55DD.4030201@FreeBSD.org> <200703051156.34866.jkim@FreeBSD.org> In-Reply-To: <200703051156.34866.jkim@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org Subject: Re: Linux emulation instability 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: Mon, 05 Mar 2007 23:34:40 -0000 Jung-uk Kim wrote: > On Sunday 04 March 2007 06:27 pm, Doug Barton wrote: >> jkim, >> >> The attached change to sys/i386/linux/linux_machdep.c causes my >> linux emulation to spontaneously reboot my machine (no panic, just >> BOOM) whenever I use the linux version of the thunderbird beta >> (that I'm using right now to type this). I built a system from >> sources right before this change and everything is normal, then >> when I add this change it becomes unstable. > > That is very strange. > >> I'm currently in the process of building an up to date -current >> without this change to see if that's stable for me, but I thought >> you'd want to know ASAP. > > Please go ahead and let me know. I was in the process of doing that while running what should have been a "safe" kernel (before the change I referenced above) when I got the same symptom again, using the linux firefox caused the system to freeze (the more it happens, I get variations on a total freeze or a spontaneous reboot). This led me to think that it might be something else. I've been using ULE and libthr, so I decided to turn those off and see if it makes a difference. I first tried rebooting without the libmap.conf entry for libthr (but still on a ULE kernel), and it actually locked up faster than it had been doing. I then updated to the latest sources and built a new kernel with 4BSD, and I've been using it with the linux mail client for about half an hour now without any problems so far. So, this leads me to the obvious question, are you testing your changes with ULE and/or libthr? I should probably add the detail that I have a Core 2 Duo processor running i386 and SMP. If there is anything further I can do to help please let me know. Meanwhile I'm going to try running with the 4BSD kernel for a while and I'll let you know if it locks up again. Doug -- This .signature sanitized for your protection From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 00:00:25 2007 Return-Path: X-Original-To: freebsd-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 E405D16A400; Tue, 6 Mar 2007 00:00:25 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 3EC9113C4BD; Tue, 6 Mar 2007 00:00:24 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l2600N7Y088801; Mon, 5 Mar 2007 19:00:23 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Doug Barton Date: Mon, 5 Mar 2007 19:00:17 -0500 User-Agent: KMail/1.6.2 References: <45EB55DD.4030201@FreeBSD.org> <200703051156.34866.jkim@FreeBSD.org> <45ECA90E.3050202@FreeBSD.org> In-Reply-To: <45ECA90E.3050202@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703051900.22022.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2737/Mon Mar 5 17:31:16 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-emulation@FreeBSD.org Subject: Re: Linux emulation instability 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: Tue, 06 Mar 2007 00:00:26 -0000 On Monday 05 March 2007 06:34 pm, Doug Barton wrote: > Jung-uk Kim wrote: > > On Sunday 04 March 2007 06:27 pm, Doug Barton wrote: > >> jkim, > >> > >> The attached change to sys/i386/linux/linux_machdep.c causes my > >> linux emulation to spontaneously reboot my machine (no panic, > >> just BOOM) whenever I use the linux version of the thunderbird > >> beta (that I'm using right now to type this). I built a system > >> from sources right before this change and everything is normal, > >> then when I add this change it becomes unstable. > > > > That is very strange. > > > >> I'm currently in the process of building an up to date -current > >> without this change to see if that's stable for me, but I > >> thought you'd want to know ASAP. > > > > Please go ahead and let me know. > > I was in the process of doing that while running what should have > been a "safe" kernel (before the change I referenced above) when I > got the same symptom again, using the linux firefox caused the > system to freeze (the more it happens, I get variations on a total > freeze or a spontaneous reboot). This led me to think that it might > be something else. > > I've been using ULE and libthr, so I decided to turn those off and > see if it makes a difference. I first tried rebooting without the > libmap.conf entry for libthr (but still on a ULE kernel), and it > actually locked up faster than it had been doing. I then updated to > the latest sources and built a new kernel with 4BSD, and I've been > using it with the linux mail client for about half an hour now > without any problems so far. > > So, this leads me to the obvious question, are you testing your > changes with ULE and/or libthr? I should probably add the detail > that I have a Core 2 Duo processor running i386 and SMP. I am currently using ULE and libthr on amd64 and UP. So, I am not sure if I can help you cause I never had this type of problem on amd64/UP. Can you try turning off SMP but with ULE and libthr first? That way, at least we know whether it is SMP issue or not. Also there are known issues with Linux futex support and SMP. Are you using Linux 2.6.16 kernel emulation? You can check it out by running 'sysctl compat.linux.osrelease'. > If there is anything further I can do to help please let me know. > Meanwhile I'm going to try running with the 4BSD kernel for a while > and I'll let you know if it locks up again. Thanks, Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 00:05:43 2007 Return-Path: X-Original-To: freebsd-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 CCF1D16A404 for ; Tue, 6 Mar 2007 00:05:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id 631DF13C474 for ; Tue, 6 Mar 2007 00:05:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 16658 invoked by uid 399); 6 Mar 2007 00:05:32 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 6 Mar 2007 00:05:32 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45ECB049.8070304@FreeBSD.org> Date: Mon, 05 Mar 2007 16:05:29 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Jung-uk Kim References: <45EB55DD.4030201@FreeBSD.org> <200703051156.34866.jkim@FreeBSD.org> <45ECA90E.3050202@FreeBSD.org> <200703051900.22022.jkim@FreeBSD.org> In-Reply-To: <200703051900.22022.jkim@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org Subject: Re: Linux emulation instability 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: Tue, 06 Mar 2007 00:05:43 -0000 Jung-uk Kim wrote: > I am currently using ULE and libthr on amd64 and UP. So, I am not > sure if I can help you cause I never had this type of problem on > amd64/UP. Can you try turning off SMP but with ULE and libthr first? I can, but I don't think it's likely to happen soonish. I really need to focus what little development time I have currently on getting BIND 9.4.0 ready for the 7-current base. > That way, at least we know whether it is SMP issue or not. Also > there are known issues with Linux futex support and SMP. Are you > using Linux 2.6.16 kernel emulation? You can check it out by running > 'sysctl compat.linux.osrelease'. compat.linux.osrelease: 2.4.2 Based on your description, and the fact that you're running with ULE+libthr but with UP, I'd be pretty comfortable saying an SMP problem is "likely" at this point. If someone wants to come up with some patches that will likely help the futex+SMP problem, I'll be glad to test them. Otherwise further testing on my part will have to wait till I get some more spare cycles. Thanks, Doug -- This .signature sanitized for your protection From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 08:28:41 2007 Return-Path: X-Original-To: freebsd-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 7CC5216A402; Tue, 6 Mar 2007 08:28:41 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 30EC413C461; Tue, 6 Mar 2007 08:28:41 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FFA1.dip.t-dialin.net [84.165.255.161]) by redbull.bpaserver.net (Postfix) with ESMTP id BA7FC2E0F7; Tue, 6 Mar 2007 09:28:31 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 834E75B4817; Tue, 6 Mar 2007 09:28:28 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l268SSeC061622; Tue, 6 Mar 2007 09:28:28 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 06 Mar 2007 09:28:28 +0100 Message-ID: <20070306092828.h6klpijtomcogc0w@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 06 Mar 2007 09:28:28 +0100 From: Alexander Leidinger To: Doug Barton References: <45EB55DD.4030201@FreeBSD.org> <200703051156.34866.jkim@FreeBSD.org> <45ECA90E.3050202@FreeBSD.org> <200703051900.22022.jkim@FreeBSD.org> <45ECB049.8070304@FreeBSD.org> In-Reply-To: <45ECB049.8070304@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-13.664, required 8, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, J_CHICKENPOX_36 0.60, J_CHICKENPOX_53 0.60) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: Linux emulation instability 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: Tue, 06 Mar 2007 08:28:41 -0000 Quoting Doug Barton (from Mon, 05 Mar 2007 =20 16:05:29 -0800): > compat.linux.osrelease: 2.4.2 > > Based on your description, and the fact that you're running with > ULE+libthr but with UP, I'd be pretty comfortable saying an SMP problem > is "likely" at this point. If someone wants to come up with some > patches that will likely help the futex+SMP problem, I'll be glad to > test them. Otherwise further testing on my part will have to wait till > I get some more spare cycles. I would be surprised if 2.6.x features like futexes are used with =20 2.4.2. We don't disable futexes with 2.4.2, but some 2.6.x features =20 are disabled and the glibc of linux_base-fc4 doesn't switch to using =20 2.6.x features when osrelease is set to 2.4.2. Additionally futexes =20 are not fully implemented on amd64 (at least not in HEAD). Also you should not focus on libthr, as it is not used for linux stuff. It would be interesting to know where linux-thunderbird locks up. With =20 a ktrace and maybe the output of linuxulator debugging messages we may =20 be able to narrow this down to the real problem. At this point I'm not =20 100% convinced it is a linux problem per se. Bye, Alexander. --=20 I have a very good DENTAL PLAN. Thank you. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 13:07:03 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 5EA8716A401 for ; Tue, 6 Mar 2007 13:07:03 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id D5CB313C4B4 for ; Tue, 6 Mar 2007 13:07:02 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FFA1.dip.t-dialin.net [84.165.255.161]) by redbull.bpaserver.net (Postfix) with ESMTP id 9BF042E086; Tue, 6 Mar 2007 14:06:58 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id BBC1F5B4817; Tue, 6 Mar 2007 14:06:55 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l26D6hX5007935; Tue, 6 Mar 2007 14:06:43 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 06 Mar 2007 14:06:43 +0100 Message-ID: <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 06 Mar 2007 14:06:43 +0100 From: Alexander Leidinger To: kpeter@melbpc.org.au References: <45C46416.3020406@melbpc.org.au> In-Reply-To: <45C46416.3020406@melbpc.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Tue, 06 Mar 2007 13:07:03 -0000 Quoting Peter Kostouros (from Sat, 03 Feb 2007 21:29:42 +1100): > Hi > > On my system (CURRENT as of 03FEB2007) linux-sun-jdk1.5.0 and > linux-sun-jdk1.6.0 applications do not run under linux 2.6.16 emulation > whereas they do under linux 2.4.2 emulation. Could you please update to a recent current and check if this problem is still there or not? Bye, Alexander. -- The United States also has its native Fascists who say that they are "100 percent American"... -- U.S. Army (1945) http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 14:01:17 2007 Return-Path: X-Original-To: freebsd-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 8821C16A403 for ; Tue, 6 Mar 2007 14:01:17 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 3D24413C428 for ; Tue, 6 Mar 2007 14:01:17 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FFA1.dip.t-dialin.net [84.165.255.161]) by redbull.bpaserver.net (Postfix) with ESMTP id 491722E198; Tue, 6 Mar 2007 15:01:10 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 6D3A45B4817; Tue, 6 Mar 2007 15:01:07 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l26E17xB017109; Tue, 6 Mar 2007 15:01:07 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 06 Mar 2007 15:01:07 +0100 Message-ID: <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 06 Mar 2007 15:01:07 +0100 From: Alexander Leidinger To: Scot Hetzel References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> In-Reply-To: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org, gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Tue, 06 Mar 2007 14:01:17 -0000 Quoting Scot Hetzel (from Sat, 14 Oct 2006 =20 00:55:17 -0500): > I'm trying to create a port for emulators/linux-wine, so that we can > at least have wine running on FreeBSD/amd64 using the linuxator. This > would then silence users who want wine (amd64/104311) to run under > FreeBSD/amd64. > > Currently, I am having a problem running linux-wine. When it is run > as either root or as a user I get the following error: > > $ /compat/linux/usr/bin/wine > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map > segment from shared object: Cannot allocate memory Do you get the same error with a recent current? I hope it may be =20 fixed with the mmap changes. But it may also be the way the memory is =20 laid out in FreeBSD vs. Linux. IIRC the native wine had a similar =20 problem until someone fixed the code for wine on FreeBSD. But I'm not =20 sure about this. Bye, Alexander. --=20 Hoare's Law of Large Problems: =09Inside every large problem is a small =09problem struggling to get out. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 13:44:22 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 BA68916A401; Tue, 6 Mar 2007 13:44:22 +0000 (UTC) (envelope-from netchild@freebsd.org) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 7201013C428; Tue, 6 Mar 2007 13:44:22 +0000 (UTC) (envelope-from netchild@freebsd.org) Received: from outgoing.leidinger.net (p54A5FFA1.dip.t-dialin.net [84.165.255.161]) by redbull.bpaserver.net (Postfix) with ESMTP id 0BC4E2E18F; Tue, 6 Mar 2007 14:10:30 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 398985B4817; Tue, 6 Mar 2007 14:10:27 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l26DAQpl008559; Tue, 6 Mar 2007 14:10:26 +0100 (CET) (envelope-from netchild@FreeBSD.org) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 06 Mar 2007 14:10:26 +0100 Message-ID: <20070306141026.ijyvge09wwo0k4ws@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 06 Mar 2007 14:10:26 +0100 From: Alexander Leidinger To: Boris Samorodov References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> In-Reply-To: <24984594@bsam.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.764, required 8, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, SARE_FROM_SPAM_WORD3 0.10) X-BPAnet-MailScanner-From: netchild@freebsd.org X-Spam-Status: No X-Mailman-Approved-At: Tue, 06 Mar 2007 14:29:56 +0000 Cc: emulation@FreeBSD.org, current@FreeBSD.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Tue, 06 Mar 2007 13:44:22 -0000 Quoting Boris Samorodov (from Mon, 29 Jan 2007 02:22:53 +0300)= : > On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: >> On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: > >> > today I committed the last fixes for the showstopper problems (panics) >> > in the linux 2.6.16 emulation. I intend to switch the default version >> > to 2.6.16 on i386 "soon" (see below), so please help testing it. > >> to be more precise.. we want testing on -current on i386... >> any other report is useles. except for reports from p4 linuxulator >> branch on 2.6/amd64.. > > Here are some test results (for 2.6.16 linux emulation) at: > $ uname -a > FreeBSD bsam.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jan 24 =20 > 01:58:12 MSK 2007 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 > > ...and linux_base-fc6 (a port from my repository), other port > dependencies are from FC4: > > 1. Just work (sometimes messages about an unimplemented syscall(s) do > appear): Did I miss the mail with the unimplemented syscalls? > - print/acroread7 > - www/linux-opera > - www/linux-firefox > - www/linux-flashplugin7 > - mail/linux-thunderbird > - multimedia/linux-realplayer > 2. Works but coredumps when exitting: > - net/skype Is this still the case? > 3. Is not executed (some new... or old libraries are needed): > - www/linux-mozilla. > > Sometimes (not stable result) I get the following LOR. This one I got > while testing net/skype: This should be fixed. Bye, Alexander. --=20 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 Go away! Stop bothering me with all your "compute this ... compute that"! I'm taking a VAX-NAP. logout=07 From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 16:37:15 2007 Return-Path: X-Original-To: freebsd-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 28F7A16A405 for ; Tue, 6 Mar 2007 16:37:15 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id DF60213C474 for ; Tue, 6 Mar 2007 16:37:14 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l26Gb7wH024478; Tue, 6 Mar 2007 11:37:07 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Tue, 6 Mar 2007 11:37:03 -0500 User-Agent: KMail/1.6.2 References: <45C46416.3020406@melbpc.org.au> <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> In-Reply-To: <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703061137.04993.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2747/Tue Mar 6 10:49:25 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Alexander Leidinger , kpeter@melbpc.org.au Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Tue, 06 Mar 2007 16:37:15 -0000 On Tuesday 06 March 2007 08:06 am, Alexander Leidinger wrote: > Quoting Peter Kostouros (from Sat, 03 Feb > 2007 > > 21:29:42 +1100): > > Hi > > > > On my system (CURRENT as of 03FEB2007) linux-sun-jdk1.5.0 and > > linux-sun-jdk1.6.0 applications do not run under linux 2.6.16 > > emulation whereas they do under linux 2.4.2 emulation. > > Could you please update to a recent current and check if this > problem is still there or not? As far as I know, they don't work, i.e., they crash with internal error. Both require sched_getaffinity (and maybe more) and that is not implemented. I believe JDK breakage is serious blocker for the 2.6.16. Since we cannot support the syscall directly (i.e., we don't have user process affinity), we may have to fake it. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 16:46:22 2007 Return-Path: X-Original-To: freebsd-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 53C3C16A401 for ; Tue, 6 Mar 2007 16:46:22 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id 0983013C4B4 for ; Tue, 6 Mar 2007 16:46:21 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1695496ana for ; Tue, 06 Mar 2007 08:46:21 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nvBKcxQqfLv2p2+wwYOIbf3Iv1ApYP+BhA0vP0M681+9GIFS8WBl/pOZ9voZZfDvhEUB5kr92cWEx6CHhjrW4IhvhFPB02QwWLUf9FRdc3ytTcPSkYtk1rBKsUk327x7DrM8jf9RCt/5aWGorJ5Kfrwd5lvSqBwg6Q2zAE+dY0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ljr6Mxvukc1ToGIyuNMAVCDHrVUk6mGwUDi5p/m7T0/DqRT6piO6Iu1wn/1lufYeFx7JkkMLOg/k/YsoOah5J0s3eFi8jxrsPrU1JtEXmixPmzc8juFFZcNC5asXOtDtYP/PWZfjt4vbiyiZxTv1dvqtpJicAcp8QqDWUfoKpjY= Received: by 10.100.143.1 with SMTP id q1mr3613715and.1173199581432; Tue, 06 Mar 2007 08:46:21 -0800 (PST) Received: by 10.100.141.14 with HTTP; Tue, 6 Mar 2007 08:46:21 -0800 (PST) Message-ID: <790a9fff0703060846y491be095lf3663dff90246012@mail.gmail.com> Date: Tue, 6 Mar 2007 10:46:21 -0600 From: "Scot Hetzel" To: "Alexander Leidinger" In-Reply-To: <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> Cc: freebsd-emulation@freebsd.org, gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Tue, 06 Mar 2007 16:46:22 -0000 On 3/6/07, Alexander Leidinger wrote: > Quoting Scot Hetzel (from Sat, 14 Oct 2006 > 00:55:17 -0500): > > > I'm trying to create a port for emulators/linux-wine, so that we can > > at least have wine running on FreeBSD/amd64 using the linuxator. This > > would then silence users who want wine (amd64/104311) to run under > > FreeBSD/amd64. > > > > Currently, I am having a problem running linux-wine. When it is run > > as either root or as a user I get the following error: > > > > $ /compat/linux/usr/bin/wine > > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map > > segment from shared object: Cannot allocate memory > > Do you get the same error with a recent current? I hope it may be > fixed with the mmap changes. But it may also be the way the memory is > laid out in FreeBSD vs. Linux. IIRC the native wine had a similar > problem until someone fixed the code for wine on FreeBSD. But I'm not > sure about this. > Still giving the same error with a recent current. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 17:16:08 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 AE0D416A402; Tue, 6 Mar 2007 17:16:08 +0000 (UTC) (envelope-from bsam@kfs.ru) Received: from kfs.ru (kfs.kfs.ru [62.183.117.194]) by mx1.freebsd.org (Postfix) with ESMTP id 4497613C48D; Tue, 6 Mar 2007 17:16:08 +0000 (UTC) (envelope-from bsam@kfs.ru) Received: from bsam by kfs.ru with local (Exim 4.54 (FreeBSD)) id 1HOcwg-0005tZ-BD; Tue, 06 Mar 2007 19:55:26 +0300 To: Alexander Leidinger References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> <20070306141026.ijyvge09wwo0k4ws@webmail.leidinger.net> From: Boris Samorodov Date: Tue, 06 Mar 2007 19:55:26 +0300 In-Reply-To: <20070306141026.ijyvge09wwo0k4ws@webmail.leidinger.net> (Alexander Leidinger's message of "Tue, 06 Mar 2007 14:10:26 +0100") Message-ID: <99549985@serv3.int.kfs.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: "Boris B. Samorodov" Cc: emulation@FreeBSD.org, current@FreeBSD.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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: Tue, 06 Mar 2007 17:16:08 -0000 On Tue, 06 Mar 2007 14:10:26 +0100 Alexander Leidinger wrote: > Quoting Boris Samorodov (from Mon, 29 Jan 2007 02:22:53 +0300): > > On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: > >> On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: > > > >> > today I committed the last fixes for the showstopper problems (panics) > >> > in the linux 2.6.16 emulation. I intend to switch the default version > >> > to 2.6.16 on i386 "soon" (see below), so please help testing it. > > > >> to be more precise.. we want testing on -current on i386... > >> any other report is useles. except for reports from p4 linuxulator > >> branch on 2.6/amd64.. > > > > Here are some test results (for 2.6.16 linux emulation) at: > > $ uname -a > > FreeBSD bsam.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jan 24 > > 01:58:12 MSK 2007 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC > > i386 > > > > ...and linux_base-fc6 (a port from my repository), other port > > dependencies are from FC4: > > > > 1. Just work (sometimes messages about an unimplemented syscall(s) do > > appear): > Did I miss the mail with the unimplemented syscalls? Yep, http://lists.freebsd.org/pipermail/freebsd-emulation/2007-January/003077.html . > > - print/acroread7 > > - www/linux-opera > > - www/linux-firefox > > - www/linux-flashplugin7 > > - mail/linux-thunderbird > > - multimedia/linux-realplayer > > 2. Works but coredumps when exitting: > > - net/skype > Is this still the case? > > 3. Is not executed (some new... or old libraries are needed): > > - www/linux-mozilla. > > > > Sometimes (not stable result) I get the following LOR. This one I got > > while testing net/skype: > This should be fixed. I left that machine today morning and I'll return there in two weeks. If I get results earlier I'll let you know. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 23:07:14 2007 Return-Path: X-Original-To: freebsd-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 3B4C716A400 for ; Tue, 6 Mar 2007 23:07:14 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id EFDC713C474 for ; Tue, 6 Mar 2007 23:07:13 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l26N78Sq049803; Tue, 6 Mar 2007 18:07:08 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Tue, 6 Mar 2007 18:07:03 -0500 User-Agent: KMail/1.6.2 References: <45C46416.3020406@melbpc.org.au> <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> <200703061137.04993.jkim@FreeBSD.org> In-Reply-To: <200703061137.04993.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703061807.05744.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2754/Tue Mar 6 16:51:20 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Alexander Leidinger , kpeter@melbpc.org.au Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Tue, 06 Mar 2007 23:07:14 -0000 On Tuesday 06 March 2007 11:37 am, Jung-uk Kim wrote: > On Tuesday 06 March 2007 08:06 am, Alexander Leidinger wrote: > > Quoting Peter Kostouros (from Sat, 03 Feb > > 2007 > > > > 21:29:42 +1100): > > > Hi > > > > > > On my system (CURRENT as of 03FEB2007) linux-sun-jdk1.5.0 and > > > linux-sun-jdk1.6.0 applications do not run under linux 2.6.16 > > > emulation whereas they do under linux 2.4.2 emulation. > > > > Could you please update to a recent current and check if this > > problem is still there or not? > > As far as I know, they don't work, i.e., they crash with internal > error. Both require sched_getaffinity (and maybe more) and that is > not implemented. I believe JDK breakage is serious blocker for the > 2.6.16. Since we cannot support the syscall directly (i.e., we > don't have user process affinity), we may have to fake it. FYI, it's fixed in perforce. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 23:10:43 2007 Return-Path: X-Original-To: freebsd-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 9B1CE16A407 for ; Tue, 6 Mar 2007 23:10:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id 4B56613C478 for ; Tue, 6 Mar 2007 23:10:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 30573 invoked by uid 399); 6 Mar 2007 23:10:42 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 6 Mar 2007 23:10:42 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45EDF4F0.5080605@FreeBSD.org> Date: Tue, 06 Mar 2007 15:10:40 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Alexander Leidinger References: <45EB55DD.4030201@FreeBSD.org> <200703051156.34866.jkim@FreeBSD.org> <45ECA90E.3050202@FreeBSD.org> <200703051900.22022.jkim@FreeBSD.org> <45ECB049.8070304@FreeBSD.org> <20070306092828.h6klpijtomcogc0w@webmail.leidinger.net> In-Reply-To: <20070306092828.h6klpijtomcogc0w@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: Linux emulation instability 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: Tue, 06 Mar 2007 23:10:43 -0000 Alexander Leidinger wrote: > Quoting Doug Barton (from Mon, 05 Mar 2007 16:05:29 > -0800): > >> compat.linux.osrelease: 2.4.2 >> >> Based on your description, and the fact that you're running with >> ULE+libthr but with UP, I'd be pretty comfortable saying an SMP problem >> is "likely" at this point. If someone wants to come up with some >> patches that will likely help the futex+SMP problem, I'll be glad to >> test them. Otherwise further testing on my part will have to wait till >> I get some more spare cycles. > > I would be surprised if 2.6.x features like futexes are used with 2.4.2. > We don't disable futexes with 2.4.2, but some 2.6.x features are > disabled and the glibc of linux_base-fc4 doesn't switch to using 2.6.x > features when osrelease is set to 2.4.2. Additionally futexes are not > fully implemented on amd64 (at least not in HEAD). > > Also you should not focus on libthr, as it is not used for linux stuff. Thanks for clearing that up. Would switching to a different linux_base port, and/or setting compat.linux.osrelease to something else be a useful exercise? This is thunderbird 2.0b2, so it may be expecting 2.6 stuff that we're not giving it, which may be why it's crashing. > It would be interesting to know where linux-thunderbird locks up. With a > ktrace and maybe the output of linuxulator debugging messages we may be > able to narrow this down to the real problem. Ok, ktrace I can handle, what kind of debugging needs to be set for the linuxulator? > At this point I'm not 100% convinced it is a linux problem per se. It's 100% reproducible with the combination of ULE+SMP+linux-thunderbird. OTOH, I did pretty extensive testing without ULE (still running fine that way now, btw), and with ULE but without using linux-thunderbird, and it was fine. I will buy that the linux-thunderbird code might be doing something it shouldn't, but we shouldn't reboot or freeze because of it in any case. Doug -- This .signature sanitized for your protection From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 6 23:41:11 2007 Return-Path: X-Original-To: freebsd-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 0AE5816A404 for ; Tue, 6 Mar 2007 23:41:11 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 496DA13C4B7 for ; Tue, 6 Mar 2007 23:41:08 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l26NevNF051230; Tue, 6 Mar 2007 18:41:02 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Tue, 6 Mar 2007 18:40:45 -0500 User-Agent: KMail/1.6.2 References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> In-Reply-To: <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703061840.54677.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2756/Tue Mar 6 18:06:57 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Alexander Leidinger , Scot Hetzel , gerald@FreeBSD.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Tue, 06 Mar 2007 23:41:11 -0000 On Tuesday 06 March 2007 09:01 am, Alexander Leidinger wrote: > Quoting Scot Hetzel (from Sat, 14 Oct 2006 > > 00:55:17 -0500): > > I'm trying to create a port for emulators/linux-wine, so that we > > can at least have wine running on FreeBSD/amd64 using the > > linuxator. This would then silence users who want wine > > (amd64/104311) to run under FreeBSD/amd64. > > > > Currently, I am having a problem running linux-wine. When it is > > run as either root or as a user I get the following error: > > > > $ /compat/linux/usr/bin/wine > > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to > > map segment from shared object: Cannot allocate memory > > Do you get the same error with a recent current? I hope it may be > fixed with the mmap changes. But it may also be the way the memory > is laid out in FreeBSD vs. Linux. IIRC the native wine had a > similar problem until someone fixed the code for wine on FreeBSD. > But I'm not sure about this. See: http://bugs.winehq.org/show_bug.cgi?id=2609 FYI, this is ktrace from Linux Wine binary: # /usr/compat/linux/usr/bin/wine --version wine-0.9.27 ---------------------- --- Skipped --- 1964 wine-preloader CALL linux_mmap2(0x81000000,0x7efe0000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1 errno 12 Cannot allocate memory 1964 wine-preloader CALL linux_mmap2(0x81000000,0x3f7f0000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675206656/0x9c266000 1964 wine-preloader CALL munmap(0x9c266000,0x3f7f0000) 1964 wine-preloader RET munmap 0 1964 wine-preloader CALL linux_mmap2(0x81000000,0x1fbf0000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675206656/0x9c266000 1964 wine-preloader CALL munmap(0x9c266000,0x1fbf0000) 1964 wine-preloader RET munmap 0 1964 wine-preloader CALL linux_mmap2(0x81000000,0xfdf0000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675206656/0x9c266000 1964 wine-preloader CALL munmap(0x9c266000,0xfdf0000) 1964 wine-preloader RET munmap 0 --- Skipped --- 1964 wine-preloader CALL linux_mmap2(0x81010000,0x20000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675206656/0x9c266000 1964 wine-preloader CALL munmap(0x9c266000,0x20000) 1964 wine-preloader RET munmap 0 1964 wine-preloader CALL linux_mmap2(0x81010000,0x10000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675206656/0x9c266000 1964 wine-preloader CALL munmap(0x9c266000,0x10000) 1964 wine-preloader RET munmap 0 1964 wine-preloader CALL linux_mmap2(0x81020000,0x10000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675206656/0x9c266000 1964 wine-preloader CALL munmap(0x9c266000,0x10000) 1964 wine-preloader RET munmap 0 --- Skipped --- 1964 wine-preloader CALL linux_mmap2(0x9c260000,0x10000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675206656/0x9c266000 1964 wine-preloader CALL munmap(0x9c266000,0x10000) 1964 wine-preloader RET munmap 0 1964 wine-preloader CALL linux_mmap2(0x9c270000,0x10000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675165696/0x9c270000 1964 wine-preloader CALL linux_mmap2(0x9c280000,0x200000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1675100160/0x9c280000 1964 wine-preloader CALL linux_mmap2(0x9c480000,0x7f0000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1673003008/0x9c480000 1964 wine-preloader CALL linux_mmap2(0x9cc70000,0x3f80000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1664679936/0x9cc70000 1964 wine-preloader CALL linux_mmap2(0xa0bf0000,0x1fc00000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1598095360/0xa0bf0000 1964 wine-preloader CALL linux_mmap2(0xc07f0000,0x3f7f0000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1 errno 12 Cannot allocate memory 1964 wine-preloader CALL linux_mmap2(0xc07f0000,0x1fbf0000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1065418752/0xc07f0000 1964 wine-preloader CALL linux_mmap2(0xe03e0000,0x1fc00000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1 errno 12 Cannot allocate memory --- Skipped --- 1964 wine-preloader CALL linux_mmap2(0xfffd0000,0x10000,0,0x4022,0xffffffff,0) 1964 wine-preloader RET linux_mmap2 -1 errno 12 Cannot allocate memory 1964 wine-preloader CALL linux_sys_futex(0x9c264050,0x1,0x7fffffff,0,0xffffd27c,0xffffd218) 1964 wine-preloader RET linux_sys_futex 1 1964 wine-preloader CALL linux_open(0x7c003110,0,0x9c0094eb) 1964 wine-preloader NAMI "/compat/linux/usr/lib/wine/ntdll.dll.so" 1964 wine-preloader NAMI "/compat/linux" 1964 wine-preloader NAMI "/compat/linux/usr/lib/wine/ntdll.dll.so" 1964 wine-preloader RET linux_open 3 1964 wine-preloader CALL read(0x3,0xffffccb0,0x200) --- Skipped --- 1964 wine-preloader CALL linux_mmap(0xffffcab0) 1964 wine-preloader RET linux_mmap -1 errno 12 Cannot allocate memory 1964 wine-preloader CALL close(0x3) 1964 wine-preloader RET close 0 1964 wine-preloader CALL linux_open(0x7c003110,0,0) 1964 wine-preloader NAMI "/compat/linux/usr/lib/wine/ntdll.dll.so" 1964 wine-preloader NAMI "/compat/linux" 1964 wine-preloader NAMI "/compat/linux/usr/lib/wine/ntdll.dll.so" --- Skipped --- 1964 wine-preloader CALL linux_mmap(0xffffcab0) 1964 wine-preloader RET linux_mmap -1 errno 12 Cannot allocate memory ---------------------- I don't think this is really a Linuxulator bug. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 7 07:49:04 2007 Return-Path: X-Original-To: freebsd-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 62B0016A400; Wed, 7 Mar 2007 07:49:04 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id DE9A813C4B8; Wed, 7 Mar 2007 07:49:03 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FD7F.dip.t-dialin.net [84.165.253.127]) by redbull.bpaserver.net (Postfix) with ESMTP id B98622E166; Wed, 7 Mar 2007 08:48:54 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 8C87D5B4817; Wed, 7 Mar 2007 08:48:51 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l277mpY3000553; Wed, 7 Mar 2007 08:48:51 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 07 Mar 2007 08:48:51 +0100 Message-ID: <20070307084851.s0o7wx31mo04gwos@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 07 Mar 2007 08:48:51 +0100 From: Alexander Leidinger To: Doug Barton References: <45EB55DD.4030201@FreeBSD.org> <200703051156.34866.jkim@FreeBSD.org> <45ECA90E.3050202@FreeBSD.org> <200703051900.22022.jkim@FreeBSD.org> <45ECB049.8070304@FreeBSD.org> <20070306092828.h6klpijtomcogc0w@webmail.leidinger.net> <45EDF4F0.5080605@FreeBSD.org> In-Reply-To: <45EDF4F0.5080605@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-13.664, required 8, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, J_CHICKENPOX_36 0.60, J_CHICKENPOX_53 0.60) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org, rdivacky@FreeBSD.org, Jung-uk Kim Subject: Re: Linux emulation instability 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, 07 Mar 2007 07:49:04 -0000 Quoting Doug Barton (from Tue, 06 Mar 2007 =20 15:10:40 -0800): > Alexander Leidinger wrote: >> Quoting Doug Barton (from Mon, 05 Mar 2007 =20 >> 16:05:29 -0800): >> >>> compat.linux.osrelease: 2.4.2 >>> >>> Based on your description, and the fact that you're running with >>> ULE+libthr but with UP, I'd be pretty comfortable saying an SMP problem >>> is "likely" at this point. If someone wants to come up with some >>> patches that will likely help the futex+SMP problem, I'll be glad to >>> test them. Otherwise further testing on my part will have to wait till >>> I get some more spare cycles. >> >> I would be surprised if 2.6.x features like futexes are used with =20 >> 2.4.2. We don't disable futexes with 2.4.2, but some 2.6.x features =20 >> are disabled and the glibc of linux_base-fc4 doesn't switch to =20 >> using 2.6.x features when osrelease is set to 2.4.2. Additionally =20 >> futexes are not fully implemented on amd64 (at least not in HEAD). >> >> Also you should not focus on libthr, as it is not used for linux stuff. > > Thanks for clearing that up. Would switching to a different linux_base > port, and/or setting compat.linux.osrelease to something else be a There are two possibilities for osrelease in our kernel. The default =20 and some 2.6.x value. In the Linux glibc as used in our default =20 linux_base port there may be other possibilites. Depending on =20 osrelease the glibc makes use of different syscalls. I don't know if using a different linux_base port would give us an =20 useful hint what is going on. At least it would narrow it down to =20 glibc (or some other lib). > useful exercise? This is thunderbird 2.0b2, so it may be expecting 2.6 > stuff that we're not giving it, which may be why it's crashing. You should see a panic string, as Roman has some KASSERTs for this =20 case. I'm not sure if this covers everything. Roman? >> It would be interesting to know where linux-thunderbird locks up. =20 >> With a ktrace and maybe the output of linuxulator debugging =20 >> messages we may be able to narrow this down to the real problem. > > Ok, ktrace I can handle, what kind of debugging needs to be set for the > linuxulator? You can't use the FreeBSD kdump, you have to use linux_kdump. A =20 package is available at http://www.Leidinger.net/FreeBSD/ for i386 =20 (you need a different linux_base port than the default to compile it). Set compat.linux.debug=3Dall, you have to compile (the module) with =20 -DDEBUG to get it. Bye, Alexander. --=20 Hi Jimbo. Dennis. Really appreciate the help on the income tax. You wanna help on the audit now? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 7 09:07:11 2007 Return-Path: X-Original-To: freebsd-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 A744D16A400; Wed, 7 Mar 2007 09:07:11 +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 4913113C442; Wed, 7 Mar 2007 09:07:11 +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 l27979ap042463 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Mar 2007 10:07:09 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l27979cD042462; Wed, 7 Mar 2007 10:07:09 +0100 (CET) Date: Wed, 7 Mar 2007 10:07:09 +0100 From: Divacky Roman To: Alexander Leidinger Message-ID: <20070307090709.GA41745@stud.fit.vutbr.cz> References: <45EB55DD.4030201@FreeBSD.org> <200703051156.34866.jkim@FreeBSD.org> <45ECA90E.3050202@FreeBSD.org> <200703051900.22022.jkim@FreeBSD.org> <45ECB049.8070304@FreeBSD.org> <20070306092828.h6klpijtomcogc0w@webmail.leidinger.net> <45EDF4F0.5080605@FreeBSD.org> <20070307084851.s0o7wx31mo04gwos@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070307084851.s0o7wx31mo04gwos@webmail.leidinger.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: freebsd-emulation@freebsd.org, rdivacky@freebsd.org, Jung-uk Kim Subject: Re: Linux emulation instability 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, 07 Mar 2007 09:07:11 -0000 On Wed, Mar 07, 2007 at 08:48:51AM +0100, Alexander Leidinger wrote: > Quoting Doug Barton (from Tue, 06 Mar 2007 > 15:10:40 -0800): > > >Alexander Leidinger wrote: > >>Quoting Doug Barton (from Mon, 05 Mar 2007 > >>16:05:29 -0800): > >> > >>>compat.linux.osrelease: 2.4.2 > >>> > >>>Based on your description, and the fact that you're running with > >>>ULE+libthr but with UP, I'd be pretty comfortable saying an SMP problem > >>>is "likely" at this point. If someone wants to come up with some > >>>patches that will likely help the futex+SMP problem, I'll be glad to > >>>test them. Otherwise further testing on my part will have to wait till > >>>I get some more spare cycles. > >> > >>I would be surprised if 2.6.x features like futexes are used with > >>2.4.2. We don't disable futexes with 2.4.2, but some 2.6.x features > >> are disabled and the glibc of linux_base-fc4 doesn't switch to > >>using 2.6.x features when osrelease is set to 2.4.2. Additionally > >>futexes are not fully implemented on amd64 (at least not in HEAD). > >> > >>Also you should not focus on libthr, as it is not used for linux stuff. > > > >Thanks for clearing that up. Would switching to a different linux_base > >port, and/or setting compat.linux.osrelease to something else be a > > There are two possibilities for osrelease in our kernel. The default > and some 2.6.x value. In the Linux glibc as used in our default > linux_base port there may be other possibilites. Depending on > osrelease the glibc makes use of different syscalls. as I was corrected by netbsd guys this might be PER PROCESS and doesnt depend directly on setting of osversion... if you set $LD_ASSUME_VERSION to 2.6 it will use NPTL for a given process even if you dont have osversion=2.6 > I don't know if using a different linux_base port would give us an > useful hint what is going on. At least it would narrow it down to > glibc (or some other lib). panics happen in kernel. no matter what evil glibc might do we CANNOT panic > >useful exercise? This is thunderbird 2.0b2, so it may be expecting 2.6 > >stuff that we're not giving it, which may be why it's crashing. > > You should see a panic string, as Roman has some KASSERTs for this > case. I'm not sure if this covers everything. Roman? I guess.... > >>It would be interesting to know where linux-thunderbird locks up. > >>With a ktrace and maybe the output of linuxulator debugging > >>messages we may be able to narrow this down to the real problem. > > > >Ok, ktrace I can handle, what kind of debugging needs to be set for the > >linuxulator? > > You can't use the FreeBSD kdump, you have to use linux_kdump. A > package is available at http://www.Leidinger.net/FreeBSD/ for i386 > (you need a different linux_base port than the default to compile it). > > Set compat.linux.debug=all, you have to compile (the module) with > -DDEBUG to get it. I am most interestd in the panic backtrace... doug, can you please try to run the thunderbird remotely over X? ie. we see the panic. without it it can be basically anything :( From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 7 08:02:05 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 2A0C816A403; Wed, 7 Mar 2007 08:02:05 +0000 (UTC) (envelope-from netchild@freebsd.org) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id D37FE13C481; Wed, 7 Mar 2007 08:02:04 +0000 (UTC) (envelope-from netchild@freebsd.org) Received: from outgoing.leidinger.net (p54A5FD7F.dip.t-dialin.net [84.165.253.127]) by redbull.bpaserver.net (Postfix) with ESMTP id CE4152E1A4; Wed, 7 Mar 2007 09:02:00 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id EF19A5B4817; Wed, 7 Mar 2007 09:01:57 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l2781vTU002944; Wed, 7 Mar 2007 09:01:57 +0100 (CET) (envelope-from netchild@FreeBSD.org) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 07 Mar 2007 09:01:57 +0100 Message-ID: <20070307090157.bouxv2u5cg8socog@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 07 Mar 2007 09:01:57 +0100 From: Alexander Leidinger To: Boris Samorodov References: <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122164926.GA8146@stud.fit.vutbr.cz> <24984594@bsam.ru> <20070306141026.ijyvge09wwo0k4ws@webmail.leidinger.net> <99549985@serv3.int.kfs.ru> In-Reply-To: <99549985@serv3.int.kfs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.764, required 8, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, SARE_FROM_SPAM_WORD3 0.10) X-BPAnet-MailScanner-From: netchild@freebsd.org X-Spam-Status: No X-Mailman-Approved-At: Wed, 07 Mar 2007 12:27:48 +0000 Cc: emulation@FreeBSD.org, current@FreeBSD.org Subject: Re: CFT/HEADS-UP: linux 2.6.16 emulation 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, 07 Mar 2007 08:02:05 -0000 Quoting Boris Samorodov (from Tue, 06 Mar 2007 19:55:26 +0300)= : > On Tue, 06 Mar 2007 14:10:26 +0100 Alexander Leidinger wrote: >> Quoting Boris Samorodov (from Mon, 29 Jan 2007 =20 >> 02:22:53 +0300): >> > On Mon, 22 Jan 2007 17:49:26 +0100 Divacky Roman wrote: >> >> On Sat, Jan 20, 2007 at 05:07:23PM +0100, Alexander Leidinger wrote: >> > >> >> > today I committed the last fixes for the showstopper problems (panic= s) >> >> > in the linux 2.6.16 emulation. I intend to switch the default versio= n >> >> > to 2.6.16 on i386 "soon" (see below), so please help testing it. >> > >> >> to be more precise.. we want testing on -current on i386... >> >> any other report is useles. except for reports from p4 linuxulator >> >> branch on 2.6/amd64.. >> > >> > Here are some test results (for 2.6.16 linux emulation) at: >> > $ uname -a >> > FreeBSD bsam.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jan 24 >> > 01:58:12 MSK 2007 bsam@bsam.ru:/usr/obj/usr/src/sys/GENERIC >> > i386 >> > >> > ...and linux_base-fc6 (a port from my repository), other port >> > dependencies are from FC4: >> > >> > 1. Just work (sometimes messages about an unimplemented syscall(s) do >> > appear): > >> Did I miss the mail with the unimplemented syscalls? > > Yep, > http://lists.freebsd.org/pipermail/freebsd-emulation/2007-January/003077.h= tml =20 > . Ah... ok. I remember now. Thanks! Bye, Alexander. --=20 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 Women complain about sex more than men. Their gripes fall into two categories: (1) Not enough and (2) Too much. =09=09-- Ann Landers From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 06:25:01 2007 Return-Path: X-Original-To: freebsd-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 86DF216A400 for ; Fri, 9 Mar 2007 06:25:01 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from vscan03.westnet.com.au (vscan03.westnet.com.au [203.10.1.142]) by mx1.freebsd.org (Postfix) with ESMTP id E658F13C481 for ; Fri, 9 Mar 2007 06:25:00 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id F3E46B606E2; Fri, 9 Mar 2007 15:24:58 +0900 (WST) Received: from vscan03.westnet.com.au ([127.0.0.1]) by localhost (vscan03.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17755-06-2; Fri, 9 Mar 2007 15:24:58 +0900 (WST) Received: from [192.168.0.2] (dsl-220-235-90-38.vic.westnet.com.au [220.235.90.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vscan03.westnet.com.au (Postfix) with ESMTP id 612E3B601DF; Fri, 9 Mar 2007 15:24:58 +0900 (WST) Message-ID: <45F0FDB9.1010007@melbpc.org.au> Date: Fri, 09 Mar 2007 17:24:57 +1100 From: Peter Kostouros Organization: Melbourne PC User Group User-Agent: Thunderbird 1.5.0.9 (X11/20070101) MIME-Version: 1.0 To: Jung-uk Kim References: <45C46416.3020406@melbpc.org.au> <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> <200703061137.04993.jkim@FreeBSD.org> <200703061807.05744.jkim@FreeBSD.org> In-Reply-To: <200703061807.05744.jkim@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Leidinger , freebsd-emulation@FreeBSD.org Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kpeter@melbpc.org.au List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 06:25:01 -0000 Jung-uk Kim wrote: > On Tuesday 06 March 2007 11:37 am, Jung-uk Kim wrote: > >> On Tuesday 06 March 2007 08:06 am, Alexander Leidinger wrote: >> >>> Quoting Peter Kostouros (from Sat, 03 Feb >>> 2007 >>> >>> 21:29:42 +1100): >>> >>>> Hi >>>> >>>> On my system (CURRENT as of 03FEB2007) linux-sun-jdk1.5.0 and >>>> linux-sun-jdk1.6.0 applications do not run under linux 2.6.16 >>>> emulation whereas they do under linux 2.4.2 emulation. >>>> >>> Could you please update to a recent current and check if this >>> problem is still there or not? >>> >> As far as I know, they don't work, i.e., they crash with internal >> error. Both require sched_getaffinity (and maybe more) and that is >> not implemented. I believe JDK breakage is serious blocker for the >> 2.6.16. Since we cannot support the syscall directly (i.e., we >> don't have user process affinity), we may have to fake it. >> > > FYI, it's fixed in perforce. > > Jung-uk Kim > > Hi I applied linuxolator-p4.diff to CURRENT (as of about 24 hours ago). Unfortunately the patch did not apply cleanly, so the rejected files were replaced by appropriate p4 files. Unfortunately I still had the same problem that I originally reported. Over this code base, I copied what I thought were the relevant files from p4 that provided support for (linux_)sched_getaffinity as mentined by jkim. I had positive results with this setup! However, I also have some odd observations: 1. Compiling using javac ends in a signal 9 even though it looks like the program successfully completed compilation. 2. Running sample applications, e.g., demo/jfc/SwingSet2/SwingSet2.jar, results in an empty pane, where it was expected to be populated with controls (not sure if this is a toolkit problem); applications also core dump. 3. Running ftpserver (java application) displays a GUI window but terminates abruptly when the server is started (syscall epoll_create not implemented). Everything seems to run OK with compat.linux.osrelease to 2.4.2. Note that due to the nature of the build, it could be that some files are not correctly synchronised, so I will wait for the next patch set. Let me know if you would like further information or want me to try anything else. -- Regards Peter As always the organisation disavows knowledge of this email From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 09:56:32 2007 Return-Path: X-Original-To: freebsd-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 336EC16A400; Fri, 9 Mar 2007 09:56:32 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id AE19113C494; Fri, 9 Mar 2007 09:56:31 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FAB9.dip.t-dialin.net [84.165.250.185]) by redbull.bpaserver.net (Postfix) with ESMTP id 516462E14E; Fri, 9 Mar 2007 10:56:26 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 21C315B4817; Fri, 9 Mar 2007 10:56:23 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l299uM2J009413; Fri, 9 Mar 2007 10:56:22 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 09 Mar 2007 10:56:22 +0100 Message-ID: <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 09 Mar 2007 10:56:22 +0100 From: Alexander Leidinger To: kpeter@melbpc.org.au References: <45C46416.3020406@melbpc.org.au> <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> <200703061137.04993.jkim@FreeBSD.org> <200703061807.05744.jkim@FreeBSD.org> <45F0FDB9.1010007@melbpc.org.au> In-Reply-To: <45F0FDB9.1010007@melbpc.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Fri, 09 Mar 2007 09:56:32 -0000 Quoting Peter Kostouros (from Fri, 09 Mar 2007 =20 17:24:57 +1100): > Jung-uk Kim wrote: >> On Tuesday 06 March 2007 11:37 am, Jung-uk Kim wrote: >> >>> On Tuesday 06 March 2007 08:06 am, Alexander Leidinger wrote: >>> >>>> Quoting Peter Kostouros (from Sat, 03 Feb >>>> 2007 >>>> >>>> 21:29:42 +1100): >>>> >>>>> Hi >>>>> >>>>> On my system (CURRENT as of 03FEB2007) linux-sun-jdk1.5.0 and >>>>> linux-sun-jdk1.6.0 applications do not run under linux 2.6.16 >>>>> emulation whereas they do under linux 2.4.2 emulation. >>>>> >>>> Could you please update to a recent current and check if this >>>> problem is still there or not? >>>> >>> As far as I know, they don't work, i.e., they crash with internal >>> error. Both require sched_getaffinity (and maybe more) and that is >>> not implemented. I believe JDK breakage is serious blocker for the >>> 2.6.16. Since we cannot support the syscall directly (i.e., we >>> don't have user process affinity), we may have to fake it. >>> >> >> FYI, it's fixed in perforce. >> >> Jung-uk Kim >> >> > Hi > > I applied linuxolator-p4.diff to CURRENT (as of about 24 hours ago). > Unfortunately the patch did not apply cleanly, so the rejected files > were replaced by appropriate p4 files. Unfortunately I still had the > same problem that I originally reported. It is not up-to-date. > Over this code base, I copied what I thought were the relevant files > from p4 that provided support for (linux_)sched_getaffinity as mentined > by jkim. I had positive results with this setup! However, I also have > some odd observations: > > 1. Compiling using javac ends in a signal 9 even though it looks like > the program successfully completed compilation. > 2. Running sample applications, e.g., > demo/jfc/SwingSet2/SwingSet2.jar, results in an empty pane, where it > was expected to be populated with controls (not sure if this is a > toolkit problem); applications also core dump. > 3. Running ftpserver (java application) displays a GUI window but > terminates abruptly when the server is started (syscall epoll_create > not implemented). epoll* is not implemented. So this is expected (and gives more =20 priority to epoll). Can you do the same tests with jdk 1.5? > Everything seems to run OK with compat.linux.osrelease to 2.4.2. Good. Bye, Alexander. --=20 When we are planning for posterity, we ought to remember that virtue is not hereditary. =09=09-- Thomas Paine http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 10:23:02 2007 Return-Path: X-Original-To: freebsd-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 B652616A406; Fri, 9 Mar 2007 10:23:02 +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 3DC6313C4C1; Fri, 9 Mar 2007 10:23:02 +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 l29AN0ja031924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Mar 2007 11:23:00 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l29AN0X7031923; Fri, 9 Mar 2007 11:23:00 +0100 (CET) Date: Fri, 9 Mar 2007 11:23:00 +0100 From: Divacky Roman To: Alexander Leidinger Message-ID: <20070309102300.GA31784@stud.fit.vutbr.cz> References: <45C46416.3020406@melbpc.org.au> <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> <200703061137.04993.jkim@FreeBSD.org> <200703061807.05744.jkim@FreeBSD.org> <45F0FDB9.1010007@melbpc.org.au> <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: freebsd-emulation@freebsd.org, Jung-uk Kim , kpeter@melbpc.org.au Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Fri, 09 Mar 2007 10:23:02 -0000 > >3. Running ftpserver (java application) displays a GUI window but > >terminates abruptly when the server is started (syscall epoll_create > >not implemented). > > epoll* is not implemented. So this is expected (and gives more > priority to epoll). I dont understand why it should use epoll only with 2.6. Epoll has been around for some 5 years now... From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 17:18:49 2007 Return-Path: X-Original-To: freebsd-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 4217916A400 for ; Fri, 9 Mar 2007 17:18:49 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id E326D13C441 for ; Fri, 9 Mar 2007 17:18:48 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l29HIfou020219; Fri, 9 Mar 2007 12:18:41 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Fri, 9 Mar 2007 12:18:28 -0500 User-Agent: KMail/1.6.2 References: <45C46416.3020406@melbpc.org.au> <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> <20070309102300.GA31784@stud.fit.vutbr.cz> In-Reply-To: <20070309102300.GA31784@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703091218.39593.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2786/Fri Mar 9 07:35:44 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Alexander Leidinger , kpeter@melbpc.org.au Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Fri, 09 Mar 2007 17:18:49 -0000 On Friday 09 March 2007 05:23 am, Divacky Roman wrote: > > >3. Running ftpserver (java application) displays a GUI window > > > but terminates abruptly when the server is started (syscall > > > epoll_create not implemented). > > > > epoll* is not implemented. So this is expected (and gives more > > priority to epoll). > > I dont understand why it should use epoll only with 2.6. Epoll has > been around for some 5 years now... I guess Sun didn't think so. Check out: http://java.sun.com/javase/6/docs/technotes/guides/io/enhancements.html#6 'A new java.nio.channels.SelectorProvider implementation that is based on the Linux epoll event notification facility is included. The epoll facility is available in the Linux 2.6, and newer, kernels. The new epoll-based SelectorProvider implementation is more scalable than the traditional poll-based SelectorProvider implementation when there are thousands of SelectableChannels registered with a Selector. The new SelectorProvider implementation will be used by default when the 2.6 kernel is detected. The poll-based SelectorProvider will be used when a pre-2.6 kernel is detected.' BTW, it was backported to 1.5 and available from Update 10: http://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_10 So, you will notice the same problem from 1.5.0_10, which is already in ports tree for almost three months. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 18:25:42 2007 Return-Path: X-Original-To: freebsd-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 B84A916A401; Fri, 9 Mar 2007 18:25:42 +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 4859113C48E; Fri, 9 Mar 2007 18:25:42 +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 l29IPecL085247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Mar 2007 19:25:40 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l29IPe7u085246; Fri, 9 Mar 2007 19:25:40 +0100 (CET) Date: Fri, 9 Mar 2007 19:25:40 +0100 From: Divacky Roman To: Jung-uk Kim Message-ID: <20070309182540.GA85099@stud.fit.vutbr.cz> References: <45C46416.3020406@melbpc.org.au> <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> <20070309102300.GA31784@stud.fit.vutbr.cz> <200703091218.39593.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703091218.39593.jkim@FreeBSD.org> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: Alexander Leidinger , freebsd-emulation@FreeBSD.org, kpeter@melbpc.org.au Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Fri, 09 Mar 2007 18:25:42 -0000 On Fri, Mar 09, 2007 at 12:18:28PM -0500, Jung-uk Kim wrote: > On Friday 09 March 2007 05:23 am, Divacky Roman wrote: > > > >3. Running ftpserver (java application) displays a GUI window > > > > but terminates abruptly when the server is started (syscall > > > > epoll_create not implemented). > > > > > > epoll* is not implemented. So this is expected (and gives more > > > priority to epoll). > > > > I dont understand why it should use epoll only with 2.6. Epoll has > > been around for some 5 years now... > > I guess Sun didn't think so. Check out: ah.. that explains it.. this just means we (I :) ) have to implement epoll... From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 18:49:46 2007 Return-Path: X-Original-To: freebsd-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 D5F0F16A401 for ; Fri, 9 Mar 2007 18:49:46 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 96B3613C46B for ; Fri, 9 Mar 2007 18:49:46 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l29InjMh025904; Fri, 9 Mar 2007 13:49:45 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Divacky Roman Date: Fri, 9 Mar 2007 13:49:41 -0500 User-Agent: KMail/1.6.2 References: <45C46416.3020406@melbpc.org.au> <200703091218.39593.jkim@FreeBSD.org> <20070309182540.GA85099@stud.fit.vutbr.cz> In-Reply-To: <20070309182540.GA85099@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703091349.43524.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2786/Fri Mar 9 07:35:44 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Alexander Leidinger , freebsd-emulation@FreeBSD.org, kpeter@melbpc.org.au Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Fri, 09 Mar 2007 18:49:46 -0000 On Friday 09 March 2007 01:25 pm, Divacky Roman wrote: > On Fri, Mar 09, 2007 at 12:18:28PM -0500, Jung-uk Kim wrote: > > On Friday 09 March 2007 05:23 am, Divacky Roman wrote: > > > > >3. Running ftpserver (java application) displays a GUI > > > > > window but terminates abruptly when the server is started > > > > > (syscall epoll_create not implemented). > > > > > > > > epoll* is not implemented. So this is expected (and gives > > > > more priority to epoll). > > > > > > I dont understand why it should use epoll only with 2.6. Epoll > > > has been around for some 5 years now... > > > > I guess Sun didn't think so. Check out: > > ah.. that explains it.. this just means we (I :) ) have to > implement epoll... It will be good to implement epoll() if some critical Java application or class uses java.nio.channels.SelectorProvider. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 19:24:31 2007 Return-Path: X-Original-To: freebsd-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 B47A916A400 for ; Fri, 9 Mar 2007 19:24:31 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from rusty.kulnet.kuleuven.ac.be (rusty.kulnet.kuleuven.ac.be [134.58.240.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3B02413C441 for ; Fri, 9 Mar 2007 19:24:31 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from localhost (localhost [127.0.0.1]) by rusty.kulnet.kuleuven.ac.be (Postfix) with ESMTP id D9FC41D73A7; Fri, 9 Mar 2007 20:24:29 +0100 (CET) Received: from smtps01 (octavianus.kulnet.kuleuven.ac.be [134.58.240.71]) by rusty.kulnet.kuleuven.ac.be (Postfix) with ESMTP id DABE71D761C; Fri, 9 Mar 2007 20:24:28 +0100 (CET) Received: from kalimero.kotnet.org (kalimero.kotnet.org [10.4.16.222]) by smtps01 (Postfix) with ESMTP id 870752E68CB; Fri, 9 Mar 2007 20:24:25 +0100 (CET) Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.13.8/8.13.8) with ESMTP id l29JOOfj002850; Fri, 9 Mar 2007 20:24:24 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-emulation@freebsd.org Date: Fri, 9 Mar 2007 20:24:21 +0100 User-Agent: KMail/1.9.5 References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> In-Reply-To: <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703092024.23577.tijl@ulyssis.org> X-Virus-Scanned: by KULeuven Antivirus Cluster Cc: Alexander Leidinger , Scot Hetzel , gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 19:24:31 -0000 On Tuesday 06 March 2007 15:01, Alexander Leidinger wrote: > Quoting Scot Hetzel (from Sat, 14 Oct 2006 > 00:55:17 -0500): > > > I'm trying to create a port for emulators/linux-wine, so that we can > > at least have wine running on FreeBSD/amd64 using the linuxator. This > > would then silence users who want wine (amd64/104311) to run under > > FreeBSD/amd64. > > > > Currently, I am having a problem running linux-wine. When it is run > > as either root or as a user I get the following error: > > > > $ /compat/linux/usr/bin/wine > > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map > > segment from shared object: Cannot allocate memory > > Do you get the same error with a recent current? I hope it may be > fixed with the mmap changes. But it may also be the way the memory is > laid out in FreeBSD vs. Linux. IIRC the native wine had a similar > problem until someone fixed the code for wine on FreeBSD. But I'm not > sure about this. This is a problem with the FreeBSD mmap. * The wine executable is loaded at 0x7bf00000. * It reserves 0x00000000-0x60000000 and 0x80000000-(stack). * Then a couple dlls are dlopen'ed (ntdll,kernel32,...). * This fails because the freebsd mmap, when called without MAP_FIXED and NULL for the addr argument, looks for free space after the executable + maximum possible data segment (to preserve space for brk(2) style allocations). The default maximum data segment size is 512MiB, so mmap is looking for free space well beyond 0x80000000 which isn't there. In current you could work around this by setting kern.maxdsiz="8M" or so in /boot/loader.conf, but that probably causes problems for programs that use brk(2). A better solutions would be to create a wrapper program that reduces the data segment size with setrlimit(2) and then runs wine with execv(3). Anyway, I don't think that will give you a better Wine than the native version. FreeBSD devices are not the same as on Linux for instance. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 19:39:11 2007 Return-Path: X-Original-To: freebsd-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 5BEE216A402; Fri, 9 Mar 2007 19:39:11 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 14CDC13C4A5; Fri, 9 Mar 2007 19:39:11 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FAB9.dip.t-dialin.net [84.165.250.185]) by redbull.bpaserver.net (Postfix) with ESMTP id 7F4112E1BC; Fri, 9 Mar 2007 20:39:06 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id 240A75B4817; Fri, 9 Mar 2007 20:39:03 +0100 (CET) Date: Fri, 9 Mar 2007 20:39:02 +0100 From: Alexander Leidinger To: Jung-uk Kim Message-ID: <20070309203902.47b18b1f@Magellan.Leidinger.net> In-Reply-To: <200703091218.39593.jkim@FreeBSD.org> References: <45C46416.3020406@melbpc.org.au> <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> <20070309102300.GA31784@stud.fit.vutbr.cz> <200703091218.39593.jkim@FreeBSD.org> X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.9; i686-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org, kpeter@melbpc.org.au Subject: Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem 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: Fri, 09 Mar 2007 19:39:11 -0000 Quoting Jung-uk Kim (Fri, 9 Mar 2007 12:18:28 -0500): > BTW, it was backported to 1.5 and available from Update 10: > > http://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_10 > > So, you will notice the same problem from 1.5.0_10, which is already > in ports tree for almost three months. This is a showstopper problem for switching the default to 2.6.16. Bye, Alexander. -- Forget how to spell a word or a variation of a word? Use look portion_of_word_you_know -- Dru http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 19:53:49 2007 Return-Path: X-Original-To: freebsd-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 2BC4C16A401; Fri, 9 Mar 2007 19:53:49 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from thumbler.kulnet.kuleuven.ac.be (thumbler.kulnet.kuleuven.ac.be [134.58.240.45]) by mx1.freebsd.org (Postfix) with ESMTP id D5CA913C441; Fri, 9 Mar 2007 19:53:48 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from localhost (localhost [127.0.0.1]) by thumbler.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 7AE24138357; Fri, 9 Mar 2007 20:53:47 +0100 (CET) Received: from smtp02.kuleuven.be (lepidus.kulnet.kuleuven.ac.be [134.58.240.72]) by thumbler.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 8602F1382FE; Fri, 9 Mar 2007 20:53:46 +0100 (CET) Received: from kalimero.kotnet.org (kalimero.kotnet.org [10.4.16.222]) by smtp02.kuleuven.be (Postfix) with ESMTP id 6BF5C2CAAE5; Fri, 9 Mar 2007 20:53:46 +0100 (CET) Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.13.8/8.13.8) with ESMTP id l29Jrkmi003155; Fri, 9 Mar 2007 20:53:46 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-emulation@freebsd.org Date: Fri, 9 Mar 2007 20:53:43 +0100 User-Agent: KMail/1.9.5 References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <200703092024.23577.tijl@ulyssis.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703092053.45563.tijl@ulyssis.org> X-Virus-Scanned: by KULeuven Antivirus Cluster Cc: Scot Hetzel , gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 19:53:49 -0000 On Friday 09 March 2007 20:37, Andrew Pantyukhin wrote: > On 3/9/07, Tijl Coosemans wrote: > > > Quoting Scot Hetzel (from Sat, 14 Oct 2006 > > > 00:55:17 -0500): > > > > > > > I'm trying to create a port for emulators/linux-wine, so that we can > > > > at least have wine running on FreeBSD/amd64 using the linuxator. This > > > > would then silence users who want wine (amd64/104311) to run under > > > > FreeBSD/amd64. > > > > Anyway, I don't think that will give you a better Wine than the native > > version. FreeBSD devices are not the same as on Linux for instance. > > The question is what kind of wine we, poor windows > addicts, can have on FreeBSD/amd64... This may be a dumb suggestion, but can't you install i386 packages under amd64? From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 20:04:00 2007 Return-Path: X-Original-To: freebsd-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 7AAF916A404 for ; Fri, 9 Mar 2007 20:04:00 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 2DED313C442 for ; Fri, 9 Mar 2007 20:03:58 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1380675ugh for ; Fri, 09 Mar 2007 12:03:57 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=s/23UaGWgDuo1ZvOv9I80I31AEUKe5amWBodJ86nlMsLKEmQB23mzLMdXjhU/Z22Kd5uyQopnP9AaGHdQDP0u7wkrjSmSN+JRpRir1O23nj/sdNxY3cHLSEQC40Bqme5fWt+S7eFB4yskcaXSyfoZ3o4G/2IgyrogOnAJ4eugUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=VuwiXc7X4cz03hN1CXOv0XQPDM05+cWdxia8MEcUmitLVipMec9gc09UD5fFj4CYbsdlSZ6Zztao2WRRuRiFj7JsmZ/G64sE4Kt66GYfgiEc2C6+0c08wcNppu5s2C6hk4ESMtTYZR+3I2dEmewj87rcyX0zJ9JuRENMsRxhF4U= Received: by 10.114.194.1 with SMTP id r1mr669024waf.1173469069403; Fri, 09 Mar 2007 11:37:49 -0800 (PST) Received: by 10.114.201.2 with HTTP; Fri, 9 Mar 2007 11:37:49 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 22:37:49 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Tijl Coosemans" In-Reply-To: <200703092024.23577.tijl@ulyssis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> <200703092024.23577.tijl@ulyssis.org> X-Google-Sender-Auth: 4fed7c6acd6100b3 Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, Scot Hetzel , gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 20:04:00 -0000 On 3/9/07, Tijl Coosemans wrote: > On Tuesday 06 March 2007 15:01, Alexander Leidinger wrote: > > Quoting Scot Hetzel (from Sat, 14 Oct 2006 > > 00:55:17 -0500): > > > > > I'm trying to create a port for emulators/linux-wine, so that we can > > > at least have wine running on FreeBSD/amd64 using the linuxator. This > > > would then silence users who want wine (amd64/104311) to run under > > > FreeBSD/amd64. > > > > > > Currently, I am having a problem running linux-wine. When it is run > > > as either root or as a user I get the following error: > > > > > > $ /compat/linux/usr/bin/wine > > > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map > > > segment from shared object: Cannot allocate memory > > > > Do you get the same error with a recent current? I hope it may be > > fixed with the mmap changes. But it may also be the way the memory is > > laid out in FreeBSD vs. Linux. IIRC the native wine had a similar > > problem until someone fixed the code for wine on FreeBSD. But I'm not > > sure about this. > > This is a problem with the FreeBSD mmap. > > * The wine executable is loaded at 0x7bf00000. > * It reserves 0x00000000-0x60000000 and 0x80000000-(stack). > * Then a couple dlls are dlopen'ed (ntdll,kernel32,...). > * This fails because the freebsd mmap, when called without MAP_FIXED > and NULL for the addr argument, looks for free space after the > executable + maximum possible data segment (to preserve space for > brk(2) style allocations). The default maximum data segment size is > 512MiB, so mmap is looking for free space well beyond 0x80000000 > which isn't there. > > In current you could work around this by setting kern.maxdsiz="8M" or > so in /boot/loader.conf, but that probably causes problems for programs > that use brk(2). A better solutions would be to create a wrapper > program that reduces the data segment size with setrlimit(2) and then > runs wine with execv(3). > > Anyway, I don't think that will give you a better Wine than the native > version. FreeBSD devices are not the same as on Linux for instance. The question is what kind of wine we, poor windows addicts, can have on FreeBSD/amd64... From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 20:30:19 2007 Return-Path: X-Original-To: freebsd-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 F219316A400 for ; Fri, 9 Mar 2007 20:30:19 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 73C7013C442 for ; Fri, 9 Mar 2007 20:30:19 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1388230ugh for ; Fri, 09 Mar 2007 12:30:17 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Pyez0G3AB/pZryHYCkyRt4dKZrv1w7ipzTSVKXrQ8YuJIju2S15paPs8QH2RX58EcWlG2gUPgfYYZEuXV/pcgvks2W1Cur7qhQhwRPNMp6WnEcPlFClNY2to7YrlTwuHWGi95bTO8e9GNv/E1rVYSPmTErjznJlLVRseze/WKx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=tZsp4omYc+qEEm2Pe9AIQOwKx2PsdxrA3GlbI1fOK0PAX8mBBDi2ID9TXS9k8UzYYutmwPJ3WTT/C2UJMLa3r8JO+e5auuCzIdMWO9DhYdnV+/z1FVziw39DebqkE5S9YuWhCxIEjB7DakYXKgHXRN+TljgFgArzCnVtjUqQ6A0= Received: by 10.114.202.15 with SMTP id z15mr703550waf.1173472216674; Fri, 09 Mar 2007 12:30:16 -0800 (PST) Received: by 10.114.201.2 with HTTP; Fri, 9 Mar 2007 12:30:16 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 23:30:16 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Tijl Coosemans" In-Reply-To: <200703092053.45563.tijl@ulyssis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <200703092024.23577.tijl@ulyssis.org> <200703092053.45563.tijl@ulyssis.org> X-Google-Sender-Auth: df89a382c39c94d7 Cc: freebsd-emulation@freebsd.org, Scot Hetzel , gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 20:30:20 -0000 On 3/9/07, Tijl Coosemans wrote: > On Friday 09 March 2007 20:37, Andrew Pantyukhin wrote: > > The question is what kind of wine we, poor windows > > addicts, can have on FreeBSD/amd64... > > This may be a dumb suggestion, but can't you install i386 packages > under amd64? If only that would help. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 20:51:31 2007 Return-Path: X-Original-To: freebsd-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 6007616A404 for ; Fri, 9 Mar 2007 20:51:31 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id 17AC413C4B4 for ; Fri, 9 Mar 2007 20:51:30 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so788509ana for ; Fri, 09 Mar 2007 12:51:30 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CTbsOLEWjYes9QQ1AMFUYbbf9xE51IJsAEdR8/kmt7qIq62WlJtwvO+wjbaJWFARJjgT9zSq5tCtO1oaWGEudjd8XP+Kmw+2z1JynXRhHTQjHBInisiipiH964Sve59gn8O6YWLQXO8Vf+Y42wCdjeHrSLLl8FPUdpDwqPGdbGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sO8+eYcKTTw5ydk39eztPJ9+63v0GVqUN+yINTYOOJXx8f2Trn/K00opYqztJSXKHf2ZdGmLTQ7YF4DLznPXsAgwNrCnhY0wp8iBvG4q9a53QXFRoqt6OAlTzoTuplWHMnBVyO/YFHfAQ4vwAxgnL+6Q5wf+uCRh32vkgrC7GLU= Received: by 10.114.12.9 with SMTP id 9mr722782wal.1173473489712; Fri, 09 Mar 2007 12:51:29 -0800 (PST) Received: by 10.100.141.14 with HTTP; Fri, 9 Mar 2007 12:51:28 -0800 (PST) Message-ID: <790a9fff0703091251w6b664efbs55a0d608b7c2f441@mail.gmail.com> Date: Fri, 9 Mar 2007 14:51:28 -0600 From: "Scot Hetzel" To: "Tijl Coosemans" In-Reply-To: <200703092024.23577.tijl@ulyssis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> <200703092024.23577.tijl@ulyssis.org> Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 20:51:31 -0000 On 3/9/07, Tijl Coosemans wrote: > This is a problem with the FreeBSD mmap. > > * The wine executable is loaded at 0x7bf00000. > * It reserves 0x00000000-0x60000000 and 0x80000000-(stack). > * Then a couple dlls are dlopen'ed (ntdll,kernel32,...). > * This fails because the freebsd mmap, when called without MAP_FIXED > and NULL for the addr argument, looks for free space after the > executable + maximum possible data segment (to preserve space for > brk(2) style allocations). The default maximum data segment size is > 512MiB, so mmap is looking for free space well beyond 0x80000000 > which isn't there. > > In current you could work around this by setting kern.maxdsiz="8M" or > so in /boot/loader.conf, but that probably causes problems for programs > that use brk(2). A better solutions would be to create a wrapper > program that reduces the data segment size with setrlimit(2) and then > runs wine with execv(3). > Thanks for the hint, I didn't find kern.maxdsiz in the sysctl tree, but I did find 2 other maxdsiz settings. hp010# sysctl -a | grep maxdsiz compat.ia32.maxdsiz: 536870912 compat.linux32.maxdsiz: 536870912 hp010# /compat/linux/usr/bin/wineprefixcreate wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory hp010# /compat/linux/usr/bin/wine --version wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory Changing only compat.linux32.maxdsiz to 8M, allowed wineprefixcreate to run without giving the above error, but instead resulted in a core dump. hp010# sysctl compat.linux32.maxdsiz=8388608 compat.linux32.maxdsiz: 536870912 -> 8388608 hp010# /compat/linux/usr/bin/wineprefixcreate modify_ldt: Success Segmentation fault (core dumped) hp010$ /compat/linux/usr/bin/wine --version Wine 0.9.24 $ /compat/linux/usr/bin/winemine modify_ldt: Success Segmentation fault (core dumped) Mar 9 14:38:36 hp010 kernel: pid 98889 (wine-preloader), uid 1001: exited on signal 11 (core dumped) Both wineprefixcreate and winemine are core dumping when wine-preloader is run. I tried other settings for maxdsiz ranging from 10-100M, and I found that the highest value that can be set is 47M. Though I did have a problem when setting it to 45M. hp010# sysctl compat.linux32.maxdsiz=46137344 (44M) compat.linux32.maxdsiz: 45088768 -> 46137344 hp010# /compat/linux/usr/bin/wine --version Wine 0.9.24 hp010# sysctl compat.linux32.maxdsiz=47185920 (45M) compat.linux32.maxdsiz: 41943040 -> 47185920 hp010# /compat/linux/usr/bin/wine --version wine: failed to initialize: libm.so.6: failed to map segment from shared object: Cannot allocate memory hp010# sysctl compat.linux32.maxdsiz=48234496 (46M) compat.linux32.maxdsiz: 46137344 -> 48234496 hp010# /compat/linux/usr/bin/wine --version Wine 0.9.24 hp010# sysctl compat.linux32.maxdsiz=49283072 (47M) compat.linux32.maxdsiz: 48234496 -> 49283072 hp010# /compat/linux/usr/bin/wine --version Wine 0.9.24 hp010# sysctl compat.linux32.maxdsiz=50331648 (48M) compat.linux32.maxdsiz: 49283072 -> 50331648 hp010# /compat/linux/usr/bin/wine --version wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to map segment from shared object: Cannot allocate memory So it looks like we may be closer to running linux-wine on FreeBSD/amd64 than what we had originally thought. $ /compat/linux/usr/bin/wineserver $ ps -ax | grep wineserver 98895 ?? Ss 0:00.00 /compat/linux/usr/bin/wineserver Mar 9 14:39:14 hp010 kernel: linux: pid 98895 (wineserver): syscall epoll_create not implemented I can run wineserver manually, but /var/log/messages is showing that it needs epoll_create function, but it doesn't stop wineserver from running. Scot $ uname -a FreeBSD hp010.hetzel.org 7.0-CURRENT FreeBSD 7.0-CURRENT #19: Sat Mar 3 04:48:54 CST 2007 swhetzel@hp010.hetzel.org:/usr/obj/usr/src/7x/sys/GENERIC.debug amd64 -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 21:18:01 2007 Return-Path: X-Original-To: freebsd-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 1B37A16A403 for ; Fri, 9 Mar 2007 21:18:01 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id C940713C481 for ; Fri, 9 Mar 2007 21:18:00 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so915592wxc for ; Fri, 09 Mar 2007 13:18:00 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SupzcS1NcDrLGw4v1R8zWoTDOOXGNm6wlfKsMFusYCK3byre+FPpTGGsWSbm6X+x02yTXgPwOwqCH6t5D5n/a5gZTPTpzTe3fXbUNRPavnIZLNVQGNIIXib7Xz+0Il4+SZGtSRARIq2Q13lNNm+waq4gmDqjkkR7yeC+iyjZG5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Dun99d7bbjz6L+4foRA32vME8U7ZjAifPxGFi2aBn7o7pgBx0e43TZePxGwIr2V2PQ9oJhIurnY9OGTcCq9m1OBJeTt++ijztfSiOXa0RliwBQNzQ77INP8Kld4HORdvNaULT+SriD1i4xX7Dx3VpPvvIDiG3AgGa3Ae8n0X0P8= Received: by 10.70.118.4 with SMTP id q4mr3716636wxc.1173475080063; Fri, 09 Mar 2007 13:18:00 -0800 (PST) Received: by 10.100.141.14 with HTTP; Fri, 9 Mar 2007 13:18:00 -0800 (PST) Message-ID: <790a9fff0703091318rf3dd0cepf133a6f6ebfd9580@mail.gmail.com> Date: Fri, 9 Mar 2007 15:18:00 -0600 From: "Scot Hetzel" To: "Tijl Coosemans" In-Reply-To: <200703092053.45563.tijl@ulyssis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <200703092024.23577.tijl@ulyssis.org> <200703092053.45563.tijl@ulyssis.org> Cc: freebsd-emulation@freebsd.org, gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 21:18:01 -0000 On 3/9/07, Tijl Coosemans wrote: > > The question is what kind of wine we, poor windows > > addicts, can have on FreeBSD/amd64... > > This may be a dumb suggestion, but can't you install i386 packages > under amd64? > You can't install the i386 packages with pkg_add on FreeBSD/amd64, as you risk installing 32bit libraries on top of the 64bit libraries. The only way to install an i386 package on FreeBSD/amd64 is to use a staging area, and only install the 32bit libraries into PREFIX/lib32. You then install the amd64 package, to have access to the 64bit programs. Then to install the i386 wine package, extract it to the staging area and check if any libraries are going to conflict with the 64bit versions, if not use pkg_add, otherwise you'll have to manually install the files. The only problem, is you no longer can use pkg_delete to remove the 32bit libraries as they wouldn't have been registered in /var/db/pkg. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 21:39:45 2007 Return-Path: X-Original-To: freebsd-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 5BD5616A402 for ; Fri, 9 Mar 2007 21:39:45 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id AC92713C471 for ; Fri, 9 Mar 2007 21:39:44 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1405171ugh for ; Fri, 09 Mar 2007 13:39:42 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QGii5s3olduVkoMHwvk9Te19PO9vo5R4/iCeFbgar4wgwyrpgbZSbmTWikLqD+pjTYcZmUxFFUfpzQ/daL2XI62aYYETQdWL1TGv84SytU0ZlUlHckHJDTBYTJOxh/Mz2P6wGf3HEsRIATaw70HtLtZt/a/5aGGOhKgrxUf/unE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IC/uZ/pxH2Q/B8ceMPLRA1YEPDznq06O3IFKpD2OBfp9JdB7yspoYKeP4oyNym6oqh5TGn+ox1zQ/aaxrKb74Z8MzUQl2X/YHDpPxeGmWIG7N5YBkAJz++NKc9NDYVOOX6N6/g6MDfz5zY2lV2YIayeuzeoFAxLADA3xJ3DVYY8= Received: by 10.70.57.2 with SMTP id f2mr3825364wxa.1173476382000; Fri, 09 Mar 2007 13:39:42 -0800 (PST) Received: by 10.100.141.14 with HTTP; Fri, 9 Mar 2007 13:39:41 -0800 (PST) Message-ID: <790a9fff0703091339p1f06c1d1k8bc1cf148e2afb52@mail.gmail.com> Date: Fri, 9 Mar 2007 15:39:41 -0600 From: "Scot Hetzel" To: "Tijl Coosemans" In-Reply-To: <790a9fff0703091251w6b664efbs55a0d608b7c2f441@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <20070306150107.p9j3cmqzlkww48sk@webmail.leidinger.net> <200703092024.23577.tijl@ulyssis.org> <790a9fff0703091251w6b664efbs55a0d608b7c2f441@mail.gmail.com> Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 21:39:45 -0000 On 3/9/07, Scot Hetzel wrote: > Changing only compat.linux32.maxdsiz to 8M, allowed wineprefixcreate > to run without giving the above error, but instead resulted in a core > dump. > > hp010# sysctl compat.linux32.maxdsiz=8388608 > compat.linux32.maxdsiz: 536870912 -> 8388608 > > hp010# /compat/linux/usr/bin/wineprefixcreate > modify_ldt: Success > Segmentation fault (core dumped) > > hp010$ /compat/linux/usr/bin/wine --version > Wine 0.9.24 > The previous message had compat.linux.osrelease set to 2.4.2, changing it to 2.6.16 resulted in: hp010# sysctl compat.linux.osrelease=2.6.16 compat.linux.osrelease: 2.4.2 -> 2.6.16 hp010# /compat/linux/usr/bin/wine --version cannot set up thread-local storage: cannot set up LDT for thread-local storage hp010# sysctl compat.linux32.maxdsiz=8388608 compat.linux32.maxdsiz: 49283072 -> 8388608 hp010# /compat/linux/usr/bin/wine --version cannot set up thread-local storage: cannot set up LDT for thread-local storage Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 21:58:59 2007 Return-Path: X-Original-To: freebsd-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 8BB7F16A404; Fri, 9 Mar 2007 21:58:59 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 31E9213C47E; Fri, 9 Mar 2007 21:58:58 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l29LwvF4038407; Fri, 9 Mar 2007 16:58:57 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Fri, 9 Mar 2007 16:58:52 -0500 User-Agent: KMail/1.6.2 References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <790a9fff0703091251w6b664efbs55a0d608b7c2f441@mail.gmail.com> <790a9fff0703091339p1f06c1d1k8bc1cf148e2afb52@mail.gmail.com> In-Reply-To: <790a9fff0703091339p1f06c1d1k8bc1cf148e2afb52@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703091658.54976.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2788/Fri Mar 9 13:27:23 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Scot Hetzel , gerald@FreeBSD.org, Alexander Leidinger Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 21:58:59 -0000 On Friday 09 March 2007 04:39 pm, Scot Hetzel wrote: > On 3/9/07, Scot Hetzel wrote: > > Changing only compat.linux32.maxdsiz to 8M, allowed > > wineprefixcreate to run without giving the above error, but > > instead resulted in a core dump. > > > > hp010# sysctl compat.linux32.maxdsiz=8388608 > > compat.linux32.maxdsiz: 536870912 -> 8388608 > > > > hp010# /compat/linux/usr/bin/wineprefixcreate > > modify_ldt: Success > > Segmentation fault (core dumped) > > > > hp010$ /compat/linux/usr/bin/wine --version > > Wine 0.9.24 > > The previous message had compat.linux.osrelease set to 2.4.2, > changing it to 2.6.16 resulted in: > > hp010# sysctl compat.linux.osrelease=2.6.16 > compat.linux.osrelease: 2.4.2 -> 2.6.16 > hp010# /compat/linux/usr/bin/wine --version > cannot set up thread-local storage: cannot set up LDT for > thread-local storage > > hp010# sysctl compat.linux32.maxdsiz=8388608 > compat.linux32.maxdsiz: 49283072 -> 8388608 > hp010# /compat/linux/usr/bin/wine --version > cannot set up thread-local storage: cannot set up LDT for > thread-local storage You need to use the latest patches from Perforce. http://www.leidinger.net/FreeBSD/linuxolator/linuxolator-p4.diff It is not up to date but it should let you pass it. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 9 22:46:10 2007 Return-Path: X-Original-To: freebsd-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 EF98516A405; Fri, 9 Mar 2007 22:46:10 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7AA5E13C4A7; Fri, 9 Mar 2007 22:46:10 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l29Mk923041326; Fri, 9 Mar 2007 17:46:09 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-emulation@FreeBSD.org Date: Fri, 9 Mar 2007 17:46:04 -0500 User-Agent: KMail/1.6.2 References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <200703092024.23577.tijl@ulyssis.org> <790a9fff0703091251w6b664efbs55a0d608b7c2f441@mail.gmail.com> In-Reply-To: <790a9fff0703091251w6b664efbs55a0d608b7c2f441@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200703091746.06515.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2788/Fri Mar 9 13:27:23 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Scot Hetzel , gerald@FreeBSD.org, Alexander Leidinger Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Fri, 09 Mar 2007 22:46:11 -0000 On Friday 09 March 2007 03:51 pm, Scot Hetzel wrote: > On 3/9/07, Tijl Coosemans wrote: > > This is a problem with the FreeBSD mmap. > > > > * The wine executable is loaded at 0x7bf00000. > > * It reserves 0x00000000-0x60000000 and 0x80000000-(stack). > > * Then a couple dlls are dlopen'ed (ntdll,kernel32,...). > > * This fails because the freebsd mmap, when called without > > MAP_FIXED and NULL for the addr argument, looks for free space > > after the executable + maximum possible data segment (to preserve > > space for brk(2) style allocations). The default maximum data > > segment size is 512MiB, so mmap is looking for free space well > > beyond 0x80000000 which isn't there. > > > > In current you could work around this by setting > > kern.maxdsiz="8M" or so in /boot/loader.conf, but that probably > > causes problems for programs that use brk(2). A better solutions > > would be to create a wrapper program that reduces the data > > segment size with setrlimit(2) and then runs wine with execv(3). > > Thanks for the hint, I didn't find kern.maxdsiz in the sysctl tree, > but I did find 2 other maxdsiz settings. > > hp010# sysctl -a | grep maxdsiz > compat.ia32.maxdsiz: 536870912 > compat.linux32.maxdsiz: 536870912 > > hp010# /compat/linux/usr/bin/wineprefixcreate > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to > map segment from shared object: Cannot allocate memory > > hp010# /compat/linux/usr/bin/wine --version > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to > map segment from shared object: Cannot allocate memory > > Changing only compat.linux32.maxdsiz to 8M, allowed > wineprefixcreate to run without giving the above error, but instead > resulted in a core dump. ---- CUT!!! --- Segmentation. Wine seems to (ab)use set_thread_area() (to set up special GDT entry), %fs, and %gs to emulate Windows kernel. I am sorry to tell you this but there is no way that we can get that fixed unless we give up performance, i.e., for every context switch, we have to save and restore three segment registers, their corresponding base addresses and GDT entries. I have implemented set_thread_area() for amd64 but that is just not enough to support Wine. Jung-uk Kim From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 10 01:48:26 2007 Return-Path: X-Original-To: freebsd-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 8244A16A403 for ; Sat, 10 Mar 2007 01:48:26 +0000 (UTC) (envelope-from steve@crowders.org) Received: from mail1.crowders.org (mail1.crowders.org [62.49.128.148]) by mx1.freebsd.org (Postfix) with ESMTP id 3C15F13C442 for ; Sat, 10 Mar 2007 01:48:26 +0000 (UTC) (envelope-from steve@crowders.org) Received: from localhost (localhost.crowders.org [127.0.0.1]) by localhost.crowders.org (Postfix) with ESMTP id 0C9AA28847; Sat, 10 Mar 2007 01:47:15 +0000 (GMT) Received: from mail1.crowders.org ([127.0.0.1]) by localhost (mail1.crowders.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06476-13; Sat, 10 Mar 2007 01:46:44 +0000 (GMT) Received: from [192.168.66.17] (suse10.crowders.org [192.168.66.17]) by mail1.crowders.org (Postfix) with ESMTP id F285E28820; Sat, 10 Mar 2007 01:46:43 +0000 (GMT) From: Steve Crowder To: Ulrich Spoerlein In-Reply-To: <20070303145600.GA1530@roadrunner.q.local> References: <1172779730.3748.19.camel@suse10.crowders.org> <20070301215003.GB1548@roadrunner.q.local> <1172918768.3712.8.camel@suse10.crowders.org> <20070303145600.GA1530@roadrunner.q.local> Content-Type: text/plain Organization: What is this thing you call organisation? Date: Sat, 10 Mar 2007 01:47:53 +0000 Message-Id: <1173491273.3775.15.camel@suse10.crowders.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Old Linux Quake II Mods X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: steve@crowders.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2007 01:48:26 -0000 Hi Ulrich Good questions. I decided I had better document what I have done as I was getting a bit confused by so many different aspects to this work, different binaries, different mods and of course some testing :). It is still a WIP, I hope what I have written up here http://www.q2mods.org/ clarifies and helps anyone else wanting to resurrect these old QII CTF Mods under FreeBSD. Thanks On Sat, 2007-03-03 at 15:56 +0100, Ulrich Spoerlein wrote: > Steve Crowder wrote: > > Hi Ulrich > > > > Your comments made me think about this from a different angle, > > r1q2ded-old was/is the problem. I have managed to get it all working. > > Good, but how? > > Which linux quake binary are you using? Any special tricks necessary? > > Ulrich Spoerlein -- Steve Crowder From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 10 05:18:17 2007 Return-Path: X-Original-To: freebsd-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 84DB616A403; Sat, 10 Mar 2007 05:18:17 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from vscan05.westnet.com.au (vscan05.westnet.com.au [203.10.1.139]) by mx1.freebsd.org (Postfix) with ESMTP id 6905713C491; Sat, 10 Mar 2007 05:18:16 +0000 (UTC) (envelope-from kpeter@melbpc.org.au) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id E921924AD5E; Sat, 10 Mar 2007 14:18:13 +0900 (WST) Received: from vscan05.westnet.com.au ([127.0.0.1]) by localhost (vscan05.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MJnjzlA3X+4w; Sat, 10 Mar 2007 14:18:13 +0900 (WST) Received: from [192.168.0.2] (dsl-220-235-95-58.vic.westnet.com.au [220.235.95.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vscan05.westnet.com.au (Postfix) with ESMTP id 7094124ADD5; Sat, 10 Mar 2007 14:18:12 +0900 (WST) Message-ID: <45F23F93.9010204@melbpc.org.au> Date: Sat, 10 Mar 2007 16:18:11 +1100 From: Peter Kostouros Organization: Melbourne PC User Group User-Agent: Thunderbird 1.5.0.9 (X11/20070101) MIME-Version: 1.0 To: Alexander Leidinger References: <45C46416.3020406@melbpc.org.au> <20070306140643.ddq9n3k68ksggs40@webmail.leidinger.net> <200703061137.04993.jkim@FreeBSD.org> <200703061807.05744.jkim@FreeBSD.org> <45F0FDB9.1010007@melbpc.org.au> <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> In-Reply-To: <20070309105622.cn1tpp1crw4gsw4g@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@FreeBSD.org, Jung-uk Kim Subject: Re: ??SPAM?? Re: linux-2.6.16 emulation: linux-sun-jdk1.6.0 program problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kpeter@melbpc.org.au List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2007 05:18:17 -0000 Alexander Leidinger wrote: > Quoting Peter Kostouros (from Fri, 09 Mar 2007 > 17:24:57 +1100): > >> Jung-uk Kim wrote: >>> On Tuesday 06 March 2007 11:37 am, Jung-uk Kim wrote: >>> >>>> On Tuesday 06 March 2007 08:06 am, Alexander Leidinger wrote: >>>> >>>>> Quoting Peter Kostouros (from Sat, 03 Feb >>>>> 2007 >>>>> >>>>> 21:29:42 +1100): >>>>> >>>>>> Hi >>>>>> >>>>>> On my system (CURRENT as of 03FEB2007) linux-sun-jdk1.5.0 and >>>>>> linux-sun-jdk1.6.0 applications do not run under linux 2.6.16 >>>>>> emulation whereas they do under linux 2.4.2 emulation. >>>>>> >>>>> Could you please update to a recent current and check if this >>>>> problem is still there or not? >>>>> >>>> As far as I know, they don't work, i.e., they crash with internal >>>> error. Both require sched_getaffinity (and maybe more) and that is >>>> not implemented. I believe JDK breakage is serious blocker for the >>>> 2.6.16. Since we cannot support the syscall directly (i.e., we >>>> don't have user process affinity), we may have to fake it. >>>> >>> >>> FYI, it's fixed in perforce. >>> >>> Jung-uk Kim >>> >>> >> Hi >> >> I applied linuxolator-p4.diff to CURRENT (as of about 24 hours ago). >> Unfortunately the patch did not apply cleanly, so the rejected files >> were replaced by appropriate p4 files. Unfortunately I still had the >> same problem that I originally reported. > > It is not up-to-date. > >> Over this code base, I copied what I thought were the relevant files >> from p4 that provided support for (linux_)sched_getaffinity as mentined >> by jkim. I had positive results with this setup! However, I also have >> some odd observations: >> >> 1. Compiling using javac ends in a signal 9 even though it looks like >> the program successfully completed compilation. >> 2. Running sample applications, e.g., >> demo/jfc/SwingSet2/SwingSet2.jar, results in an empty pane, where it >> was expected to be populated with controls (not sure if this is a >> toolkit problem); applications also core dump. >> 3. Running ftpserver (java application) displays a GUI window but >> terminates abruptly when the server is started (syscall epoll_create >> not implemented). > > epoll* is not implemented. So this is expected (and gives more > priority to epoll). > > Can you do the same tests with jdk 1.5? > >> Everything seems to run OK with compat.linux.osrelease to 2.4.2. > > Good. > > Bye, > Alexander. > > --When we are planning for posterity, > we ought to remember that virtue is not hereditary. > -- Thomas Paine > > http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 > http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 > With linux-sun-jdk1.5.0: 1. As above: note, executing the resultant (console) program runs to completion but it does not return the user to the prompt unless you CTRL+C. 2. Running the sample application (demo/jfc/SwingSet2/SwingSet2.jar) displays a window with the controls, but abruptly terminates. See error log below. 3. ftpserver actually ran. However, it could not be 'built' with linux-sun-jdk1.5.0 (compat.linux.osrelease 2.4.2 nor 2.6.16), see log file below. Note, 'build' is a misnomer: files are compiled, but the test runs fail: I did not see any messages at the console about unimplemented syscalls. (The program was built using linux-sun-jdk1.4.2.) For reference, I used linux-sun-jdk1.5.0_11,2 Log file for failed run of SwingSet2.jar # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (4E4D4554484F440E4350500529), pid=10885, tid=904330160 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode) --------------- T H R E A D --------------- Current thread (0x082b59e0): JavaThread "Thread-2" [_thread_in_Java, id=10900] Stack: [0x35df0000,0x35e70000), sp=0x35e6e468, free space=505k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x3295f3] V [libjvm.so+0x12491c] V [libjvm.so+0x27effe] V [libjvm.so+0x2c6724] V [libjvm.so+0x290e24] V [libjvm.so+0x28e034] C 0xbfbfffdb J javax.swing.text.html.StyleSheet$SmallConversionSet.getAttribute(Ljava/lang/Object;)Ljava/lang/Object; v ~RuntimeStub::alignment_frame_return Runtime1 stub j javax.swing.text.StyleContext$NamedStyle.getAttribute(Ljava/lang/Object;)Ljava/lang/Object;+5 J javax.swing.text.html.MuxingAttributeSet.getAttribute(Ljava/lang/Object;)Ljava/lang/Object; v ~RuntimeStub::alignment_frame_return Runtime1 stub j javax.swing.text.html.StyleSheet$ViewAttributeSet.doGetAttribute(Ljava/lang/Object;)Ljava/lang/Object;+2 j javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(Ljava/lang/Object;)Ljava/lang/Object;+57 j javax.swing.text.html.CSS.getLength(Ljavax/swing/text/AttributeSet;Ljavax/swing/text/html/CSS$Attribute;Ljavax/swing/text/html/StyleSheet;)F+8 j javax.swing.text.html.StyleSheet$BoxPainter.getLength(Ljavax/swing/text/html/CSS$Attribute;Ljavax/swing/text/AttributeSet;)F+10 j javax.swing.text.html.StyleSheet$BoxPainter.getOrientationMargin(Ljavax/swing/text/html/StyleSheet$BoxPainter$HorizontalMargin;FLjavax/swing/text/AttributeSet;Z)F+94 j javax.swing.text.html.StyleSheet$BoxPainter.getInset(ILjavax/swing/text/View;)F+55 j javax.swing.text.html.ParagraphView.setPropertiesFromAttributes()V+55 j javax.swing.text.html.ParagraphView.setParent(Ljavax/swing/text/View;)V+10 j javax.swing.text.CompositeView.replace(II[Ljavax/swing/text/View;)V+227 j javax.swing.text.BoxView.replace(II[Ljavax/swing/text/View;)V+4 j javax.swing.text.CompositeView.loadChildren(Ljavax/swing/text/ViewFactory;)V+66 j javax.swing.text.CompositeView.setParent(Ljavax/swing/text/View;)V+23 j javax.swing.text.html.BlockView.setParent(Ljavax/swing/text/View;)V+2 j javax.swing.text.html.HTMLEditorKit$HTMLFactory$BodyBlockView.setParent(Ljavax/swing/text/View;)V+38 j javax.swing.text.CompositeView.replace(II[Ljavax/swing/text/View;)V+227 j javax.swing.text.BoxView.replace(II[Ljavax/swing/text/View;)V+4 j javax.swing.text.View.updateChildren(Ljavax/swing/event/DocumentEvent$ElementChange;Ljavax/swing/event/DocumentEvent;Ljavax/swing/text/ViewFactory;)Z+93 j javax.swing.text.View.insertUpdate(Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)V+33 j javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(Ljavax/swing/event/DocumentEvent;Ljava/awt/Shape;Ljavax/swing/text/ViewFactory;)V+14 j javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(Ljavax/swing/event/DocumentEvent;)V+101 j javax.swing.text.AbstractDocument.fireInsertUpdate(Ljavax/swing/event/DocumentEvent;)V+40 j javax.swing.text.DefaultStyledDocument.create([Ljavax/swing/text/DefaultStyledDocument$ElementSpec;)V+159 j javax.swing.text.html.HTMLDocument.create([Ljavax/swing/text/DefaultStyledDocument$ElementSpec;)V+2 j javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(Z)V+89 j javax.swing.text.html.HTMLDocument$HTMLReader.flush()V+36 j javax.swing.text.html.HTMLEditorKit.read(Ljava/io/Reader;Ljavax/swing/text/Document;I)V+100 j javax.swing.JEditorPane.read(Ljava/io/InputStream;Ljavax/swing/text/Document;)V+44 j javax.swing.JEditorPane.read(Ljava/io/InputStream;Ljavax/swing/text/Document;)V+157 j javax.swing.JEditorPane$PageLoader.run()V+12 v ~StubRoutines::call_stub V [libjvm.so+0x17ad8c] V [libjvm.so+0x28efd8] V [libjvm.so+0x17a5e5] V [libjvm.so+0x17a67e] V [libjvm.so+0x1f1ed5] V [libjvm.so+0x2f8523] V [libjvm.so+0x28fbe8] C [libpthread.so.0+0x59b3] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) =>0x082b59e0 JavaThread "Thread-2" [_thread_in_Java, id=10900] 0x0805c8e8 JavaThread "DestroyJavaVM" [_thread_blocked, id=10885] 0x08296ad0 JavaThread "Thread-1" [_thread_in_vm, id=10899] 0x0824e730 JavaThread "TimerQueue" daemon [_thread_blocked, id=10898] 0x082076f0 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=10897] 0x08205e60 JavaThread "AWT-Shutdown" [_thread_blocked, id=10896] 0x081db2b0 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=10895] 0x081cd020 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=10894] 0x081be4a0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=10893] 0x080c8510 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10891] 0x080c6f60 JavaThread "CompilerThread0" daemon [_thread_blocked, id=10890] 0x080c6150 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10889] 0x080bbc70 JavaThread "Finalizer" daemon [_thread_blocked, id=10888] 0x080bafa8 JavaThread "Reference Handler" daemon [_thread_blocked, id=10887] Other Threads: 0x080b82a8 VMThread [id=10886] 0x080c9a00 WatcherThread [id=10892] VM state:synchronizing (normal execution) VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) [0x0805bd00/0x0805bd28] Safepoint_lock - owner thread: 0x080b82a8 [0x0805bd80/0x0805bda8] Threads_lock - owner thread: 0x080b82a8 [0x0805c1d0/0x0805c1e8] Heap_lock - owner thread: 0x08296ad0 Heap def new generation total 1280K, used 1155K [0x2d9f0000, 0x2db50000, 0x2ded0000) eden space 1152K, 99% used [0x2d9f0000, 0x2db0df18, 0x2db10000) from space 128K, 9% used [0x2db10000, 0x2db12f90, 0x2db30000) to space 128K, 0% used [0x2db30000, 0x2db30000, 0x2db50000) tenured generation total 16316K, used 10207K [0x2ded0000, 0x2eebf000, 0x319f0000) the space 16316K, 62% used [0x2ded0000, 0x2e8c7ce0, 0x2e8c7e00, 0x2eebf000) compacting perm gen total 9984K, used 9962K [0x319f0000, 0x323b0000, 0x359f0000) the space 9984K, 99% used [0x319f0000, 0x323aa958, 0x323aaa00, 0x323b0000) No shared spaces configured. Dynamic libraries: 08048000-08057000 r-xp 00010000 VM Arguments: java_command: SwingSet2.jar Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/local/linux-sun-jdk1.5.0 PATH=/sbin:/bin:/usr/sbin:/usr/bin LD_LIBRARY_PATH=/usr/local/linux-sun-jdk1.5.0/jre/lib/i386/client:/usr/local/linux-sun-jdk1.5.0/jre/lib/i386:/usr/local/linux-sun-jdk1.5.0/jre/../lib/i386 SHELL=/usr/local/bin/bash DISPLAY=:0.0 Signal Handlers: SIGSEGV: [libjvm.so+0x32a000], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x32a000], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x28e010], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGPIPE: [libjvm.so+0x28e010], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x28e010], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x43807efb, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x290460], sa_mask[0]=0x00000000, sa_flags=0x10000004 SIGHUP: [libjvm.so+0x28fe90], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGINT: [libjvm.so+0x28fe90], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGQUIT: [libjvm.so+0x28fe90], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 SIGTERM: [libjvm.so+0x28fe90], sa_mask[0]=0x5ffb7eff, sa_flags=0x10000004 --------------- S Y S T E M --------------- OS:Fedora Core release 4 (Stentz) uname:Linux 2.6.16 FreeBSD 7.0-CURRENT #4: Fri Mar 9 15:28:01 EST 2007 i686 libc:glibc 2.3.6 NPTL 2.3.6 rlimit: STACK 65536k, CORE infinity, NPROC 5547, NOFILE 11095, AS infinity load average:0.27 0.29 1.02 CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2 Memory: 4k page, physical 1035656k(943276k free), swap 2097152k(2097152k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for linux-x86, built on Dec 15 2006 02:25:41 by java_re with gcc 3.2.1-7a (J2SE release) Log file for failed build of ftpserver (with compat.linux.osrelease = 2.4.2): # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (4E4D4554484F440E4350500529), pid=7813, tid=9650229 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode) --------------- T H R E A D --------------- Current thread (0x08944b90): JavaThread "SocketAcceptorIoProcessor-139.0" [_thread_in_Java, id=8419] Stack: [0xb8c01000,0xb8e00000), sp=0xb8dff038, free space=2040k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x3295f3] V [libjvm.so+0x12491c] V [libjvm.so+0x27effe] V [libjvm.so+0x2c6724] V [libjvm.so+0x290e24] V [libjvm.so+0x28e034] C [libpthread.so.0+0xc5f8] C 0xbfbfffdb j org.apache.mina.filter.executor.ExecutorFilter.sessionClosed(Lorg/apache/mina/common/IoFilter$NextFilter;Lorg/apache/mina/common/IoSession;)V+7 j org.apache.mina.common.support.AbstractIoFilterChain.callNextSessionClosed(Lorg/apache/mina/common/IoFilterChain$Entry;Lorg/apache/mina/common/IoSession;)V+13 j org.apache.mina.common.support.AbstractIoFilterChain.access$900(Lorg/apache/mina/common/support/AbstractIoFilterChain;Lorg/apache/mina/common/IoFilterChain$Entry;Lorg/apache/mina/common/IoSession;)V+3 j org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.sessionClosed(Lorg/apache/mina/common/IoSession;)V+17 j org.apache.mina.common.support.AbstractIoFilterChain$HeadFilter.sessionClosed(Lorg/apache/mina/common/IoFilter$NextFilter;Lorg/apache/mina/common/IoSession;)V+2 j org.apache.mina.common.support.AbstractIoFilterChain.callNextSessionClosed(Lorg/apache/mina/common/IoFilterChain$Entry;Lorg/apache/mina/common/IoSession;)V+13 j org.apache.mina.common.support.AbstractIoFilterChain.fireSessionClosed(Lorg/apache/mina/common/IoSession;)V+29 j org.apache.mina.common.support.IoServiceListenerSupport.fireSessionDestroyed(Lorg/apache/mina/common/IoSession;)V+111 J org.apache.mina.transport.socket.nio.SocketIoProcessor.doRemove()V j org.apache.mina.transport.socket.nio.SocketIoProcessor.access$700(Lorg/apache/mina/transport/socket/nio/SocketIoProcessor;)V+1 j org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run()V+73 j org.apache.mina.util.NamePreservingRunnable.run()V+11 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.so+0x17ad8c] V [libjvm.so+0x28efd8] V [libjvm.so+0x17a5e5] V [libjvm.so+0x17a67e] V [libjvm.so+0x1f1ed5] V [libjvm.so+0x2f8523] V [libjvm.so+0x28fbe8] C [libpthread.so.0+0x5b8a] --------------- P R O C E S S --------------- Java Threads: ( => current thread ) =>0x08944b90 JavaThread "SocketAcceptorIoProcessor-139.0" [_thread_in_Java, id=8419] 0x08114670 JavaThread "Timer-139" daemon [_thread_blocked, id=8417] 0x0894f530 JavaThread "SocketAcceptorIoProcessor-138.0" [_thread_in_native, id=8415] 0x0894f0c8 JavaThread "SocketAcceptorIoProcessor-137.0" [_thread_in_native, id=8411] 0x084f47c8 JavaThread "SocketAcceptorIoProcessor-136.0" [_thread_in_native, id=8407] 0x0815be70 JavaThread "SocketAcceptorIoProcessor-135.0" [_thread_in_native, id=8403] 0x0841d648 JavaThread "SocketAcceptorIoProcessor-134.0" [_thread_in_native, id=8399] 0x084f6388 JavaThread "SocketAcceptorIoProcessor-133.0" [_thread_in_native, id=8395] 0x084808c0 JavaThread "SocketAcceptorIoProcessor-132.0" [_thread_in_native, id=8391] 0x0853b5d0 JavaThread "SocketAcceptorIoProcessor-131.0" [_thread_in_native, id=8383] 0x084a52c0 JavaThread "SocketAcceptorIoProcessor-130.0" [_thread_in_native, id=8379] 0x080eb5d0 JavaThread "SocketAcceptorIoProcessor-129.0" [_thread_in_native, id=8375] 0x083d12b8 JavaThread "SocketAcceptorIoProcessor-128.0" [_thread_in_native, id=8371] 0x085039b0 JavaThread "SocketAcceptorIoProcessor-127.0" [_thread_in_native, id=8367] 0x08583bb0 JavaThread "SocketAcceptorIoProcessor-126.0" [_thread_in_native, id=8363] 0x084ec880 JavaThread "SocketAcceptorIoProcessor-125.0" [_thread_in_native, id=8359] 0x08503c10 JavaThread "SocketAcceptorIoProcessor-123.0" [_thread_in_native, id=8351] 0x08560cc8 JavaThread "SocketAcceptorIoProcessor-122.0" [_thread_in_native, id=8347] 0x082e19c8 JavaThread "SocketAcceptorIoProcessor-121.0" [_thread_in_native, id=8343] 0x0855f9e8 JavaThread "SocketAcceptorIoProcessor-120.0" [_thread_in_native, id=8339] 0x084b3c18 JavaThread "SocketAcceptorIoProcessor-119.0" [_thread_in_native, id=8335] 0x084f3920 JavaThread "SocketAcceptorIoProcessor-117.0" [_thread_in_native, id=8327] 0x088581b8 JavaThread "SocketAcceptorIoProcessor-116.0" [_thread_in_native, id=8323] 0x086e3150 JavaThread "SocketAcceptorIoProcessor-115.0" [_thread_in_native, id=8319] 0x0831b328 JavaThread "SocketAcceptorIoProcessor-114.0" [_thread_in_native, id=8315] 0x0859f178 JavaThread "SocketAcceptorIoProcessor-113.0" [_thread_in_native, id=8311] 0x085a3748 JavaThread "SocketAcceptorIoProcessor-112.0" [_thread_in_native, id=8307] 0x080f2640 JavaThread "AnonymousIoService-16" daemon [_thread_blocked, id=7867] 0x080f2d70 JavaThread "AnonymousIoService-15" daemon [_thread_blocked, id=7866] 0x084ae420 JavaThread "AnonymousIoService-14" daemon [_thread_blocked, id=7864] 0x0856d500 JavaThread "AnonymousIoService-13" daemon [_thread_blocked, id=7860] 0x08315758 JavaThread "AnonymousIoService-12" daemon [_thread_in_vm, id=7859] 0x08310508 JavaThread "AnonymousIoService-11" daemon [_thread_blocked, id=7858] 0x0830f658 JavaThread "AnonymousIoService-10" daemon [_thread_blocked, id=7857] 0x08570398 JavaThread "AnonymousIoService-9" daemon [_thread_blocked, id=7856] 0x0856a390 JavaThread "AnonymousIoService-8" daemon [_thread_blocked, id=7854] 0x080f4ae8 JavaThread "AnonymousIoService-7" daemon [_thread_blocked, id=7853] 0x084af528 JavaThread "AnonymousIoService-6" daemon [_thread_blocked, id=7849] 0x0856b058 JavaThread "AnonymousIoService-5" daemon [_thread_blocked, id=7848] 0x084b1240 JavaThread "AnonymousIoService-4" daemon [_thread_blocked, id=7847] 0x084b19c0 JavaThread "AnonymousIoService-3" daemon [_thread_blocked, id=7846] 0x084ab2d0 JavaThread "AnonymousIoService-2" daemon [_thread_blocked, id=7844] 0x085379b8 JavaThread "AnonymousIoService-1" daemon [_thread_blocked, id=7843] 0x08531fa8 JavaThread "PooledByteBufferExpirer-0" daemon [_thread_blocked, id=7840] 0x080ca620 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7833] 0x080c90e8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7832] 0x080c82d0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7831] 0x080bdeb0 JavaThread "Finalizer" daemon [_thread_blocked, id=7830] 0x080bd278 JavaThread "Reference Handler" daemon [_thread_blocked, id=7829] 0x0805cc80 JavaThread "main" [_thread_in_vm, id=7813] Other Threads: 0x080b8640 VMThread [id=7828] 0x080cbac0 WatcherThread [id=7834] VM state:synchronizing (normal execution) VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) [0x0805c098/0x0805c0c0] Safepoint_lock - owner thread: 0x080b8640 [0x0805c118/0x0805c140] Threads_lock - owner thread: 0x080b8640 [0x0805c568/0x0805c580] Heap_lock - owner thread: 0x08315758 Heap def new generation total 2688K, used 2688K [0x2da30000, 0x2dd10000, 0x2df10000) eden space 2432K, 100% used [0x2da30000, 0x2dc90000, 0x2dc90000) from space 256K, 100% used [0x2dcd0000, 0x2dd10000, 0x2dd10000) to space 256K, 0% used [0x2dc90000, 0x2dc90000, 0x2dcd0000) tenured generation total 34708K, used 28609K [0x2df10000, 0x300f5000, 0x31a30000) the space 34708K, 82% used [0x2df10000, 0x2fb00678, 0x2fb00800, 0x300f5000) compacting perm gen total 14592K, used 14337K [0x31a30000, 0x32870000, 0x35a30000) the space 14592K, 98% used [0x31a30000, 0x32830580, 0x32830600, 0x32870000) No shared spaces configured. Dynamic libraries: 08048000-08057000 r-xp 00010000 VM Arguments: jvm_args: -Dclassworlds.conf=/usr/local/share/java/maven2/bin/m2.conf -Dmaven.home=/usr/local/share/java/maven2 java_command: org.codehaus.classworlds.Launcher test Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/local/linux-sun-jdk1.5.0 PATH=/sbin:/bin:/usr/sbin:/usr/bin LD_LIBRARY_PATH=/usr/local/linux-sun-jdk1.5.0/jre/lib/i386/client:/usr/local/linux-sun-jdk1.5.0/jre/lib/i386:/usr/local/linux-sun-jdk1.5.0/jre/../lib/i386 SHELL=/usr/local/bin/bash DISPLAY=:0.0 Signal Handlers: SIGSEGV: [libjvm.so+0x32a000], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x32a000], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x28e010], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGPIPE: [libjvm.so+0x28e010], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x28e010], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x43807efb, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x290460], sa_mask[0]=0x80000000, sa_flags=0x10000004 SIGHUP: [libjvm.so+0x28fe90], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGINT: [libjvm.so+0x28fe90], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGQUIT: [libjvm.so+0x28fe90], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 SIGTERM: [libjvm.so+0x28fe90], sa_mask[0]=0xdffb7eff, sa_flags=0x10000004 --------------- S Y S T E M --------------- OS:Fedora Core release 4 (Stentz) uname:Linux 2.4.2 FreeBSD 7.0-CURRENT #4: Fri Mar 9 15:28:01 EST 2007 i686 libc:glibc 2.3.6 linuxthreads-0.10 (fixed stack) rlimit: STACK 2044k, CORE infinity, NPROC 5547, NOFILE 11095, AS infinity load average:0.54 0.24 0.16 CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 2 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2 Memory: 4k page, physical 1035656k(919568k free), swap 2097152k(2097152k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for linux-x86, built on Dec 15 2006 02:25:41 by java_re with gcc 3.2.1-7a (J2SE release) -- Regards Peter As always the organisation disavows knowledge of this email From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 10 09:38:41 2007 Return-Path: X-Original-To: freebsd-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 D5FD316A406; Sat, 10 Mar 2007 09:38:41 +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 77EE313C441; Sat, 10 Mar 2007 09:38:41 +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 l2A9ceog046074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Mar 2007 10:38:40 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l2A9ced2046073; Sat, 10 Mar 2007 10:38:40 +0100 (CET) Date: Sat, 10 Mar 2007 10:38:40 +0100 From: Divacky Roman To: Jung-uk Kim Message-ID: <20070310093840.GA45813@stud.fit.vutbr.cz> References: <790a9fff0610132255k5c3b08fcrb550fa308d31752d@mail.gmail.com> <200703092024.23577.tijl@ulyssis.org> <790a9fff0703091251w6b664efbs55a0d608b7c2f441@mail.gmail.com> <200703091746.06515.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703091746.06515.jkim@FreeBSD.org> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: Alexander Leidinger , freebsd-emulation@freebsd.org, Scot Hetzel , gerald@freebsd.org Subject: Re: emulators/linux-wine: Help in porting to FreeBSD 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: Sat, 10 Mar 2007 09:38:41 -0000 On Fri, Mar 09, 2007 at 05:46:04PM -0500, Jung-uk Kim wrote: > On Friday 09 March 2007 03:51 pm, Scot Hetzel wrote: > > On 3/9/07, Tijl Coosemans wrote: > > > This is a problem with the FreeBSD mmap. > > > > > > * The wine executable is loaded at 0x7bf00000. > > > * It reserves 0x00000000-0x60000000 and 0x80000000-(stack). > > > * Then a couple dlls are dlopen'ed (ntdll,kernel32,...). > > > * This fails because the freebsd mmap, when called without > > > MAP_FIXED and NULL for the addr argument, looks for free space > > > after the executable + maximum possible data segment (to preserve > > > space for brk(2) style allocations). The default maximum data > > > segment size is 512MiB, so mmap is looking for free space well > > > beyond 0x80000000 which isn't there. > > > > > > In current you could work around this by setting > > > kern.maxdsiz="8M" or so in /boot/loader.conf, but that probably > > > causes problems for programs that use brk(2). A better solutions > > > would be to create a wrapper program that reduces the data > > > segment size with setrlimit(2) and then runs wine with execv(3). > > > > Thanks for the hint, I didn't find kern.maxdsiz in the sysctl tree, > > but I did find 2 other maxdsiz settings. > > > > hp010# sysctl -a | grep maxdsiz > > compat.ia32.maxdsiz: 536870912 > > compat.linux32.maxdsiz: 536870912 > > > > hp010# /compat/linux/usr/bin/wineprefixcreate > > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to > > map segment from shared object: Cannot allocate memory > > > > hp010# /compat/linux/usr/bin/wine --version > > wine: failed to initialize: /usr/lib/wine/ntdll.dll.so: failed to > > map segment from shared object: Cannot allocate memory > > > > Changing only compat.linux32.maxdsiz to 8M, allowed > > wineprefixcreate to run without giving the above error, but instead > > resulted in a core dump. > > ---- CUT!!! --- > > Segmentation. Wine seems to (ab)use set_thread_area() (to set up > special GDT entry), %fs, and %gs to emulate Windows kernel. I am > sorry to tell you this but there is no way that we can get that fixed > unless we give up performance, i.e., for every context switch, we > have to save and restore three segment registers, their corresponding > base addresses and GDT entries. I have implemented set_thread_area() > for amd64 but that is just not enough to support Wine. yes... linux supports 3 GDT entries for TLS we support just 1. And I dont think we will ever be willing to pay the performance price for the ability to run just 1 (one!!!) program more... but as there is native fbsd version of wine I think we'd better spend our time on fixing/improving the native version my two cents roman