From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EvwHZ-000202-FN for qemu-devel@nongnu.org; Mon, 09 Jan 2006 07:37:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EvvJg-0008Pv-BF for qemu-devel@nongnu.org; Mon, 09 Jan 2006 06:37:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvuSo-00068W-4l for qemu-devel@nongnu.org; Mon, 09 Jan 2006 05:41:22 -0500 Received: from [64.233.162.205] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EvuV4-00083H-9g for qemu-devel@nongnu.org; Mon, 09 Jan 2006 05:43:42 -0500 Received: by zproxy.gmail.com with SMTP id 9so99759nzo for ; Mon, 09 Jan 2006 02:39:21 -0800 (PST) Message-ID: <833ca2390601090239o3208bb5ha099e3560efe47f5@mail.gmail.com> Date: Mon, 9 Jan 2006 19:39:21 +0900 From: Ashuaria Lee MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [Qemu-devel] I'm using Alpha EV6 core for the host. 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, everyone! I'm new to this QEMU project, so may not know the historical thing. I've already searched the mailinglist archive but didn't find any hints so I'm asking. As you see the subject, I'm using alpha system. I'm experiencing two problem. 1. Full system emulation. none of them are working. The only thing I get is Segfault. >> [root@localhost linux-test]# qemu -nographic -hda linux.img -kernel bzImage-2.4.21 -append "console=3DttyS0 root=3D/dev/hda sb=3D0x220,5,1,5 ide2=3Dnoprobe ide3=3Dnoprobe ide4=3Dnoprobe ide5=3Dnoprobe" >> (qemu) Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal error, but for better emulation accuracy either use a 2.6 host Linux kernel= or type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root. >> Segmentation fault I've dumped the core file and tried to gdb it, but couldn't. >> [root@localhost linux-test]# gdb qemu core.10898 >> GNU gdb Red Hat Linux (6.3.0.0-1.63rh) >> Copyright 2004 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and you= are >> welcome to change it and/or distribute copies of it under certain condit= ions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for detai= ls. >> This GDB was configured as "alpha-redhat-linux-gnu"... >> (no debugging symbols found) >> Using host libthread_db library "/lib/tls/libthread_db.so.1". >> >> Core was generated by `/usr/local/bin/qemu linux.img'. >> Program terminated with signal 11, Segmentation fault. >> Reading symbols from /usr/lib/libots.so...done. >> Loaded symbols for //usr/lib/libots.so >> Reading symbols from /lib/tls/libm.so.6.1...done. >> Loaded symbols for /lib/tls/libm.so.6.1 >> Reading symbols from /usr/lib/libz.so...done. >> Loaded symbols for /usr/lib/libz.so >> Reading symbols from /lib/libasound.so.2...done. >> Loaded symbols for /lib/libasound.so.2 >> Reading symbols from /usr/lib/libSDL-1.2.so.0...done. >> Loaded symbols for /usr/lib/libSDL-1.2.so.0 >> Reading symbols from /lib/tls/libpthread.so.0...done. >> Loaded symbols for /lib/tls/libpthread.so.0 >> Reading symbols from /lib/libutil.so.1.1...done. >> Loaded symbols for /lib/libutil.so.1.1 >> Reading symbols from /lib/tls/libc.so.6.1...done. >> Loaded symbols for /lib/tls/libc.so.6.1 >> Reading symbols from /lib/libdl.so.2.1...done. >> Loaded symbols for /lib/libdl.so.2.1 >> Reading symbols from /usr/X11R6/lib/libX11.so.6...done. >> Loaded symbols for /usr/X11R6/lib/libX11.so.6 >> Reading symbols from /usr/X11R6/lib/libXext.so.6...done. >> Loaded symbols for /usr/X11R6/lib/libXext.so.6 >> Reading symbols from /lib/ld-linux.so.2...done. >> Loaded symbols for /lib/ld-linux.so.2 >> Reading symbols from /lib/libnss_files.so.2...done. >> Loaded symbols for /lib/libnss_files.so.2 >> Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done. >> Loaded symbols for /usr/X11R6/lib/libXcursor.so.1 >> Reading symbols from /usr/X11R6/lib/libXrender.so.1...done. >> Loaded symbols for /usr/X11R6/lib/libXrender.so.1 >> Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...= done. >> Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 >> #0 0x00000001206d7b8c in ?? () >> (gdb) bt >> #0 0x00000001206d7b8c in ?? () >> warning: Hit heuristic-fence-post without finding >> warning: enclosing function for address 0x1206d7b8c >> This warning occurs if you are debugging a function without any symbols >> (for example, in a stripped executable). In that case, you may wish to >> increase the size of the search with the `set heuristic-fence-post' comm= and. >> >> Otherwise, you told GDB there was a function where there isn't one, or >> (more likely) you have encountered a bug in GDB. >> #1 0x00000001200a229c in ?? () >> #2 0x0000000120557b40 in ?? () >> warning: Hit heuristic-fence-post without finding >> warning: enclosing function for address 0x120557b40 >> Previous frame identical to this frame (corrupt stack?) >> (gdb) 2. User mode emulation none of them working. Have a look on the following result. >> [root@localhost i386]# ./ls >> qemu: uncaught target signal 4 (Illegal instruction) - exiting >> [root@localhost i386]# file ls >> ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped >> [root@localhost i386]# ls /proc/sys/fs/binfmt_misc/ >> arm armeb i386 i486 mips mipsel ppc register sparc status >> [root@localhost qemu-0.8.0]# cat /proc/sys/fs/binfmt_misc/status >> enabled Can someone tell me how to debug? -- Regards, Ashuaria Lee