From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 07:19:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A52F71065670 for ; Thu, 19 Nov 2009 07:19:15 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outL.internet-mail-service.net (outl.internet-mail-service.net [216.240.47.235]) by mx1.freebsd.org (Postfix) with ESMTP id 8DC208FC0A for ; Thu, 19 Nov 2009 07:19:15 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id AA5A714DD6C; Wed, 18 Nov 2009 23:19:15 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id C25912D6011; Wed, 18 Nov 2009 23:19:14 -0800 (PST) Message-ID: <4B04F172.7070803@elischer.org> Date: Wed, 18 Nov 2009 23:19:14 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: xorquewasp@googlemail.com References: <20091119065742.GA28159@logik.internal.network> In-Reply-To: <20091119065742.GA28159@logik.internal.network> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 07:19:15 -0000 xorquewasp@googlemail.com wrote: > Hello. > > I've done a lot of reading on this problem and don't understand why what I have > doesn't work. > > http://wiki.freebsd.org/Wine > > I have an entirely 32 bit jail, created by cross-compiling the world with > TARGET=i386 and creating a jail from DESTDIR. > > The jail appears to be fully functional - all programs appear to work and > the compiler produces i386 binaries. > > 'uname' has been configured to identify itself as 'i386', so even compiling > programs from source works (autoconf correctly recognises the jail system > as i386, etc). > > However, installing the wine port and attempting to do anything with it > results in: > > $ wine hello.exe > Bus error: 10 (core dumped) > > The program will immediately crash in all cases. > > $ winecfg > Bus error: 10 (core dumped) > > According to every bit of documentation I can find online, this should > work fine. Any idea what's gone wrong here? Wine is an exceptional bit of software, in many ways. One way it is exceptional is that it uses the system in a number of ways that nothing else does. For example it sets various special segment register settings and defines several different segments on the LDT. This is something that is different to some extent between i386 and amd64 and it is possible that the code for 386 LDT syscalls under amd64 may not work correctly. nothing else would test this. > > xw > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"