Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ae4nl-0001XP-1a for qemu-devel@nongnu.org; Tue, 06 Jan 2004 22:56:13 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ae4ms-0000U1-2p for qemu-devel@nongnu.org; Tue, 06 Jan 2004 22:55:49 -0500 Received: from [204.127.202.64] (helo=sccrmhc13.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae4mr-0000Sq-4N for qemu-devel@nongnu.org; Tue, 06 Jan 2004 22:55:17 -0500 Received: from enterprise.local.lan (enterprise.local.lan [127.0.0.1]) by enterprise.local.lan (8.12.10/8.12.8) with ESMTP id i072rjYt014154 for ; Tue, 6 Jan 2004 19:53:45 -0700 Received: (from torriem@localhost) by enterprise.local.lan (8.12.10/8.12.10/Submit) id i072riUV014152 for qemu-devel@nongnu.org; Tue, 6 Jan 2004 19:53:44 -0700 Subject: Re: [Qemu-devel] segfault in current cvs From: Michael Torrie In-Reply-To: <1073438011.4352.2.camel@isengard> References: <20040106202937.GP3483@suse.de> <1073438011.4352.2.camel@isengard> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1073444024.14117.5.camel@enterprise.local.lan> Mime-Version: 1.0 Date: Tue, 06 Jan 2004 19:53:44 -0700 Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, 2004-01-06 at 18:13, Michael L Torrie wrote: > This is the same segfault I get when running ordinary x86 linux binaries > on my ppc yellowdog box. I hope we can find a solution to this problem. I was mistaken. My segfault is in cpu-all.h, in the inline function ldub_raw. The ptr passed to the inline function is null for some reason. The call trace is: #0 disas_insn (s=0x7ffff448, pc_start=0x0) at cpu-all.h:61 #1 0x6003179c in gen_intermediate_code_internal (env=0x1, tb=0x601ab4d0, search_pc=-1) at /home/torriem/qemu-0.5.1/target-i386/translate.c:4554 #2 0x6002e5d8 in gen_intermediate_code (env=0x7ffff448, tb=0x0) at /home/torriem/qemu-0.5.1/target-i386/translate.c:4616 #3 0x60025e98 in cpu_x86_gen_code (env=0x7ffff448, tb=0x601ab4d0, max_code_size=0, gen_code_size_ptr=0x7ffff52c) at /home/torriem/qemu-0.5.1/translate-all.c:101 #4 0x60010bd8 in cpu_x86_exec (env1=0x7ffff448) at /home/torriem/qemu-0.5.1/cpu-exec.c:282 #5 0x60004cb4 in cpu_loop (env=0x601ab4d0) at /home/torriem/qemu-0.5.1/main.c:141 #6 0x60005404 in main (argc=1, argv=0x0) at /home/torriem/qemu-0.5.1/main.c:763 #7 0x0fe8c314 in __libc_start_main () from /lib/libc.so.6 This is probably an issue with the new x86 glibc which doesn't always seem to be compatible with the qemu synthetic virtual x86 processor. > > Michael > > > > which looks odd, given the !tb check just a few lines up. I'm using: > > > > axboe@apu:/home/axboe $ gcc --version > > gcc (GCC) 3.3.3 20031229 (prerelease) (Debian) -- Michael Torrie