Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 23:19:14 -0800
From:      Julian Elischer <julian@elischer.org>
To:        xorquewasp@googlemail.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Wine on amd64 in 32 bit jail
Message-ID:  <4B04F172.7070803@elischer.org>
In-Reply-To: <20091119065742.GA28159@logik.internal.network>
References:  <20091119065742.GA28159@logik.internal.network>

next in thread | previous in thread | raw e-mail | index | archive | help
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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B04F172.7070803>