From owner-freebsd-emulation@FreeBSD.ORG Wed Nov 1 07:57:01 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 5D4F216A417 for ; Wed, 1 Nov 2006 07:57:01 +0000 (UTC) (envelope-from swhetzel@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 AD77E43D58 for ; Wed, 1 Nov 2006 07:56:57 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so1423030uge for ; Tue, 31 Oct 2006 23:56:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Z5YSqXln/DP15QWw0mGLExrN2hx//r+rs6saYXNeXFH5dC/OBoG0Oi8ORTpeGbmIvS0I+SHPO+cZu9lS/R72WWCqFrYt3E9o+cWNZOtgskCnxlURF7yr50LMS/qLHbLON3Wrjgo2LJiHBNqS8YBEaj1i/vivREQoNi9Nlc+Dt7s= Received: by 10.67.27.3 with SMTP id e3mr7670808ugj; Tue, 31 Oct 2006 23:56:55 -0800 (PST) Received: by 10.67.86.8 with HTTP; Tue, 31 Oct 2006 23:56:55 -0800 (PST) Message-ID: <790a9fff0610312356h44a7fd1bj7aafaae6646f0cc6@mail.gmail.com> Date: Wed, 1 Nov 2006 01:56:55 -0600 From: "Scot Hetzel" To: "Kostik Belousov" In-Reply-To: <200610311436.53134.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061031182625.GM1627@deviant.kiev.zoral.com.ua> <200610311436.53134.jkim@FreeBSD.org> 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 07:57:01 -0000 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: $ /compat/linux/usr/bin/wineprefixcreate fatal process exception: general protection fault, fault VA = 0x0 <- pid 1717? fatal process exception: general protection fault, fault VA = 0x0 <- pid 1718? Segmentation fault (core dumped) under compat.linux.osrelease: 2.4.2, now linux-wine exits with: $ /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 Doesn't help the compat.linux.osrelease: 2.6.16 case, as it is a different problem involving thread-local storage. Thanks for the fix. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.