Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXlEm-0002ar-Rd for qemu-devel@nongnu.org; Tue, 18 Sep 2007 18:08:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXlEl-0002Wu-B9 for qemu-devel@nongnu.org; Tue, 18 Sep 2007 18:08:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXlEl-0002Wm-8X for qemu-devel@nongnu.org; Tue, 18 Sep 2007 18:08:07 -0400 Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IXlEk-0001nj-SF for qemu-devel@nongnu.org; Tue, 18 Sep 2007 18:08:07 -0400 In-Reply-To: <1190152163.9564.81.camel@phantasm.home.enterpriseandprosperity.com> References: <1190118724.9564.49.camel@phantasm.home.enterpriseandprosperity.com> <46EFD842.7070207@gmail.com> <1190139947.9564.60.camel@phantasm.home.enterpriseandprosperity.com> <1190152163.9564.81.camel@phantasm.home.enterpriseandprosperity.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Alexander Graf Subject: Re: [Qemu-devel] Insta-segfault! i386-linux-user Date: Wed, 19 Sep 2007 00:07:58 +0200 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: thayne@c2.net Cc: qemu-devel@nongnu.org On Sep 18, 2007, at 11:49 PM, Thayne Harbaugh wrote: > On Tue, 2007-09-18 at 21:11 +0200, Alexander Graf wrote: >> On Sep 18, 2007, at 8:25 PM, Thayne Harbaugh wrote: >> >>> On Tue, 2007-09-18 at 15:53 +0200, Ronald wrote: >>>> Thayne Harbaugh schreef: > > > >>>>> ./i386-linux-user/qemu-i386 --help >>>>> Segmentation fault >>>>> >>>>>> From GDB: >>>>> >>>>> Program received signal SIGSEGV, Segmentation fault. >>>>> 0x0000000000000000 in ?? () >>>>> (gdb) bt >>>>> #0 0x0000000000000000 in ?? () >>>>> #1 0x00000000600575ed in __libc_csu_init () >>>>> #2 0x00002b826c660ade in __libc_start_main () from /lib/libc.so.6 >>>>> #3 0x00000000600050e9 in _start () > > > >> >> We had this on the list some months ago. > > I'll dig for that. > >> As far as I recall this >> correctly the problem is the linker script. Just take a look at the >> suse source rpm where we replace that one, so it works with x86_64. > > Thanks for the guidance. > >> Be prepared for breakage though, as linux-user on 64-Bit hosts does >> not work properly. > > What about it doesn't work properly? Do you have some links for the > list archives? Mostly syscalls that return 64-bit pointers. So for example mmap is broken. You can find a patch for x86_64 for that in the rpm or on the list as well, which does not fix the issue on ppc64 or ia64 though. Additionally there is an IPC call that does an mmap in the end, where you can not force it to return 32-bit values, so this can not be easily fixed. The IA64-IA32 emulator actually does have an approach for this, but I did not have the time to take a deeper look into that. Good luck, Alex