From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzR6j-0005FM-2V for qemu-devel@nongnu.org; Tue, 04 Dec 2007 01:18:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzR6g-0005C7-59 for qemu-devel@nongnu.org; Tue, 04 Dec 2007 01:18:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzR6f-0005Be-Ht for qemu-devel@nongnu.org; Tue, 04 Dec 2007 01:18:09 -0500 Received: from eth6155.nsw.adsl.internode.on.net ([59.167.247.10] helo=sac.g2microsystems.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IzR6e-0007IG-Gy for qemu-devel@nongnu.org; Tue, 04 Dec 2007 01:18:09 -0500 Received: from [10.1.2.66] (badge.au.g2.internal [10.1.2.66]) by sac.g2microsystems.com (8.12.11.20060308/8.12.11) with ESMTP id lB44LJD1031098 for ; Tue, 4 Dec 2007 15:21:20 +1100 Message-ID: <4754D5C4.4050408@g2microsystems.com> Date: Tue, 04 Dec 2007 15:21:24 +1100 From: Shaddy Baddah MIME-Version: 1.0 Subject: Re: [Qemu-devel] and now bus error for i386 guest References: <473A9DED.6020308@shaddybaddah.name> <473AAD7F.30709@shaddybaddah.name> <473AF480.6030802@shaddybaddah.name> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 HI, Blue Swirl wrote: > On 11/14/07, Shaddy Baddah wrote: >> Hi again, >> >> After further culling the target list, I was able to install qemu on my >> sun4u host. >> >> However, running it, I get a bus error. See below for details: >> >> $ /opt/qemu-cvs/bin/qemu -m 128 -cdrom >> ~/KNOPPIX_V5.1.1CD-2007-01-04-EN.iso -vnc :1 >> Bus error > > For some reason, Sparc Linux host is not working. I think Sparc Solaris is OK. Yes, I do recall that I was able to get this working on Sparc Solaris. Anyway, when I get more time, I will have a better stab at debugging this. I got a start on this today, and here is a bit of cut and paste that may or may not be insightful. The address for env1 looks questionable: shaddy@localhost:~/qemu-cvs/qemu-build$ gdb --args ./i386-softmmu/qemu -hda ../../KNOPPIX_V5.1.1CD-2007-01-04-EN.iso -L ../qemu/pc-bios GNU gdb 6.6.90.20070912-debian Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /home/shaddy/qemu-cvs/qemu-build/i386-softmmu/qemu -hda ../../KNOPPIX_V5.1.1CD-2007-01-04-EN.iso -L ../qemu/pc-bios [Thread debugging using libthread_db enabled] [New Thread 0xf7f7b550 (LWP 9363)] Program received signal SIGBUS, Bus error. [Switching to Thread 0xf7f7b550 (LWP 9363)] cpu_x86_exec (env1=0x2) at /home/shaddy/qemu-cvs/qemu/cpu-exec.c:307 307 if (env->exception_index >= 0) { (gdb) info threads * 1 Thread 0xf7f7b550 (LWP 9363) cpu_x86_exec (env1=0x2) at /home/shaddy/qemu-cvs/qemu/cpu-exec.c:307 (gdb) HTH, Shaddy PS: couldn't this also be debugged from within qemu VM running Debian Sparc, for those that don't have access to a real machine? I got a start on this today as well (because I don't always have access to the Sun Ultra box). Seems stable, and I was able to get a start on a compile, that is currently still going.