From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHPAu-0006Zf-09 for qemu-devel@nongnu.org; Sat, 24 Apr 2004 11:34:40 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHP9s-0004ki-R9 for qemu-devel@nongnu.org; Sat, 24 Apr 2004 11:34:09 -0400 Received: from [195.149.39.210] (helo=ixion.tartarus.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHP9r-0004h9-BA for qemu-devel@nongnu.org; Sat, 24 Apr 2004 11:33:35 -0400 Received: from chris by ixion.tartarus.org with local (Exim 3.35 #1 (Debian)) for qemu-devel@nongnu.org id 1BHP9q-0004sv-00; Sat, 24 Apr 2004 16:33:34 +0100 Date: Sat, 24 Apr 2004 16:33:34 +0100 From: Chris Emerson Subject: Re: [Qemu-devel] Segmentation fault running i386 Linux binary Message-ID: <20040424153334.GA18646@ixion.tartarus.org> References: <20040424131835.GA29141@ixion.tartarus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040424131835.GA29141@ixion.tartarus.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sat, Apr 24, 2004 at 02:18:35PM +0100, Chris Emerson wrote: > I'm getting a crash running "zayit", a Linux/i386 ELF binary which comes > with Sun's Wireless Toolkit on my PowerPC Linux box, using qemu 0.5.3 > and also CVS updated this morning. The source to this binary doesn't > seem to be available. It crashes quite early, before it gets as far as > complaining about bad arguments. I've poked around a bit more. qemu-i386 running on an i386 host[1] seems to be fine, so that would point to a ppc-specific problem. The address causing the fault is within the 32MB originally mmap()ed for the ELF interpreter, but never used (so it's still PROT_NONE). In case it's relevant, this is with GNU libc 2.2.5 (identical library and ELF interpreter on the PPC and i386 hosts). [1] with USE_CODE_COPY disabled, as otherwise gcc-3.0 complains at assembler arguments [snip] Chris