From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 1 09:06:50 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E961016A412; Wed, 1 Nov 2006 09:06:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (fw.zoral.com.ua [213.186.206.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCE5943D55; Wed, 1 Nov 2006 09:06:48 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id kA18hV8Y053728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Nov 2006 10:43:31 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8) with ESMTP id kA196fdL086614; Wed, 1 Nov 2006 11:06:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.8/8.13.8/Submit) id kA196eSK086613; Wed, 1 Nov 2006 11:06:40 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 1 Nov 2006 11:06:40 +0200 From: Kostik Belousov To: Scot Hetzel Message-ID: <20061101090640.GQ1627@deviant.kiev.zoral.com.ua> References: <20061031182625.GM1627@deviant.kiev.zoral.com.ua> <200610311436.53134.jkim@FreeBSD.org> <790a9fff0610312356h44a7fd1bj7aafaae6646f0cc6@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K8zN2sh9fO5jmbe4" Content-Disposition: inline In-Reply-To: <790a9fff0610312356h44a7fd1bj7aafaae6646f0cc6@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=1.9 required=5.0 tests=DNS_FROM_RFC_ABUSE, SPF_NEUTRAL,UNPARSEABLE_RELAY autolearn=no version=3.1.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on fw.zoral.com.ua Cc: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: [kib@freebsd.org: [src] cvs commit: src/sys/amd64/linux32 linux32_sysvec.c] 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, 01 Nov 2006 09:06:50 -0000 --K8zN2sh9fO5jmbe4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 01, 2006 at 01:56:55AM -0600, Scot Hetzel wrote: > On 10/31/06, Jung-uk Kim wrote: > >On Tuesday 31 October 2006 01:26 pm, Kostik Belousov wrote: > >> kib 2006-10-31 17:53:02 UTC > >> > >> FreeBSD src repository > >> > >> Modified files: > >> sys/amd64/linux32 linux32_sysvec.c > >> Log: > >> Fix a typo resulting in truncated linux32 signal trampoline code > >> copied to the usermode. Usually, signal handler segfaulted on > >> return. > >> > >> Reviewed by: jhb > >> MFC after: 3 days > >> > >> Revision Changes Path > >> 1.25 +1 -1 src/sys/amd64/linux32/linux32_sysvec.c > >> > >> This change is supposed to fix the handling of signals for linux > >> binaries on amd64 (at least, it did so for me). Please, inform me > >> whether it works for you. > > > >Bash no longer segfaults with this fix. I am running full LTP and it > >seems very promising so far. > > > linux-wine used to segfault with: >=20 > $ /compat/linux/usr/bin/wineprefixcreate > fatal process exception: general protection fault, fault VA =3D 0x0 <- pi= d=20 > 1717? > fatal process exception: general protection fault, fault VA =3D 0x0 <- pi= d=20 > 1718? > Segmentation fault (core dumped) >=20 > under compat.linux.osrelease: 2.4.2, now linux-wine exits with: >=20 > $ /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 >=20 > Doesn't help the compat.linux.osrelease: 2.6.16 case, as it is a > different problem involving thread-local storage. Does wine have a chance to run on amd64 ? I vaguely remember that wine wants allocation of segments in LDT, that is not implemented on amd64. --K8zN2sh9fO5jmbe4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFSGOgC3+MBN1Mb4gRAtjQAJ9tncn2eWXPf11BrjXk1709j5rgEgCgwV4W NM2jLzt5o6jD1TEsxxV/dX0= =tjTb -----END PGP SIGNATURE----- --K8zN2sh9fO5jmbe4--