From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58728 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFro7-0001II-ER for qemu-devel@nongnu.org; Tue, 09 Nov 2010 12:16:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFro3-0001AP-I0 for qemu-devel@nongnu.org; Tue, 09 Nov 2010 12:16:31 -0500 Received: from adelie.canonical.com ([91.189.90.139]:42911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFro3-00019v-6Y for qemu-devel@nongnu.org; Tue, 09 Nov 2010 12:16:27 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PFrnz-0002Ej-9y for ; Tue, 09 Nov 2010 17:16:24 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D95052E8124 for ; Tue, 9 Nov 2010 17:16:00 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 09 Nov 2010 17:07:59 -0000 From: Nigel Horne <671831@bugs.launchpad.net> Sender: bounces@canonical.com References: <20101106132417.2947.85131.malonedeb@palladium.canonical.com> <4CD89C31.1070903@bandsman.co.uk> <4CD94C7D.2010102@bandsman.co.uk> Message-Id: <4CD97FEF.7070404@bandsman.co.uk> Subject: Re: [Qemu-devel] [Bug 671831] [NEW] Sparc guest assert error Errors-To: bounces@canonical.com Reply-To: Bug 671831 <671831@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Stefan, > $ /sbin/fdisk -lu ~njh/qemu/sparc/debian.img > ...hopefully this displays the slices/partitions... > Device Boot Start End Blocks > Id System > test.raw1 * 2048 1026047 512000 83 Linux > > $ mount -o loop,offset=3D$((2048 * 512)) /mnt > (The offset is calculated by taking the start block number from fdisk > and multiplying it by 512 bytes) > > $ ls /mnt/boot > ...there should be a vmlinuz and initrd, you could check the silo.conf > or other boot configuration if you don't know the exact kernel/initrd > filenames. > > $ cp /mnt/boot/{vmlinuz,initrd} /tmp > $ umount /mnt > = Sadly that doesn't work: njh@compaq:~/qemu/sparc$ /sbin/fdisk -lu debian.img Disk debian.img: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors Units =3D sectors of 1 * 512 =3D 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk debian.img doesn't contain a valid partition table But, it has occurred to me, - I boot using your code and get = /boot/vmlinuz and /boot/initrd.img that way. Would that be OK? > Stefan > > = -Nigel -- = Sparc guest assert error https://bugs.launchpad.net/bugs/671831 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: The latest version in git (d33ea50a958b2e050d2b28e5f17e3b55e91c6d74) crashe= s with an assert error when booting a Sparc/Linux guest. The last time I tried it (about a week ago) it worked fine. Yesterdai, I d= id a git pull, make clean, reran configure and compiled. Host OS: Debian Linux/x86_64 5.0 C Compiler: 4.4.5 Guest OS: Linux/Sparc (2.4) Command Line: qemu-system-sparc -hda ~njh/qemu/sparc/debian.img -nographic = -m 128 Build Configure: ./configure --enable-linux-aio --enable-io-thread --enable= -kvm GIT commit: d33ea50a958b2e050d2b28e5f17e3b55e91c6d74 Output: Adding Swap: 122532k swap-space (priority -1) . Will now check root file system:fsck 1.40-WIP (14-Nov-2006) [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a -C0 /dev/sda2 = qemu-system-sparc: /home/njh/src/qemu/hw/scsi-disk.c:201: scsi_read_data: A= ssertion `r->req.aiocb =3D=3D ((void *)0)' failed. It crashes in the same place every time. (gdb) thread apply all bt: Thread 3 (Thread 17643): #0 0x00007f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x00000000004d02c4 in main_loop_wait (nonblocking=3D) at /home/njh/src/qemu/vl.c:1246 #2 0x00000000004d0e57 in main_loop (argc=3D, = argv=3D, envp=3D) at /home/njh/src/qemu/vl.c:1309 #3 main (argc=3D, argv=3D, = envp=3D) at /home/njh/src/qemu/vl.c:2999 Thread 2 (Thread 17645): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211 #1 0x000000000042450b in cond_timedwait (unused=3D) at posix-aio-compat.c:104 #2 aio_thread (unused=3D) at posix-aio-compat.c:325 #3 0x00007f4db3b818ba in start_thread (arg=3D) at pthread_create.c:300 #4 0x00007f4db21c302d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #5 0x0000000000000000 in ?? () Current language: auto The current source language is "auto; currently asm". Thread 1 (Thread 17644): #0 0x00007f4db2126165 in *__GI_raise (sig=3D) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007f4db2128f70 in *__GI_abort () at abort.c:92 #2 0x00007f4db211f2b1 in *__GI___assert_fail ( assertion=3D0x52690a "r->req.aiocb =3D=3D ((void *)0)", = file=3D, line=3D201, function=3D0x527480 "scsi_rea= d_data") at assert.c:81 #3 0x000000000044f363 in scsi_read_data (d=3D, tag=3D= 0) at /home/njh/src/qemu/hw/scsi-disk.c:201 #4 0x00000000004ebd6c in esp_do_dma (s=3D0x20679d0) at /home/njh/src/qemu/hw/esp.c:377 #5 0x00000000004ec781 in handle_ti (opaque=3D0x20679d0, = addr=3D, val=3D) at /home/njh/src/qemu/hw/esp.c:443 #6 esp_mem_writeb (opaque=3D0x20679d0, addr=3D, = val=3D) at /home/njh/src/qemu/hw/esp.c:595 #7 0x0000000041b2d971 in ?? () #8 0xffffffffffffffff in ?? () #9 0x00000000031ad000 in ?? () #10 0x0000000301adfa20 in ?? () #11 0x0000100000000007 in ?? () #12 0x00007f4daf80e8a0 in ?? () #13 0x0000000000000001 in ?? () #14 0x0000000000000000 in ?? ()