Sparc guest assert error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Stefan Hajnoczi |
Bug Description
The latest version in git (d33ea50a958b2e
The last time I tried it (about a week ago) it worked fine. Yesterdai, I did 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/
Build Configure: ./configure --enable-linux-aio --enable-io-thread --enable-kvm
GIT commit: d33ea50a958b2e0
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/
It crashes in the same place every time.
(gdb) thread apply all bt:
Thread 3 (Thread 17643):
#0 0x00007f4db21bc8d3 in select () at ../sysdeps/
#1 0x00000000004d02c4 in main_loop_wait (nonblocking=<value optimized out>)
at /home/njh/
#2 0x00000000004d0e57 in main_loop (argc=<value optimized out>,
argv=<value optimized out>, envp=<value optimized out>)
at /home/njh/
#3 main (argc=<value optimized out>, argv=<value optimized out>,
envp=<value optimized out>) at /home/njh/
Thread 2 (Thread 17645):
#0 pthread_
at ../nptl/
#1 0x000000000042450b in cond_timedwait (unused=<value optimized out>)
at posix-aio-
#2 aio_thread (unused=<value optimized out>) at posix-aio-
#3 0x00007f4db3b818ba in start_thread (arg=<value optimized out>)
at pthread_
#4 0x00007f4db21c302d in clone ()
at ../sysdeps/
#5 0x0000000000000000 in ?? ()
Current language: auto
The current source language is "auto; currently asm".
Thread 1 (Thread 17644):
#0 0x00007f4db2126165 in *__GI_raise (sig=<value optimized out>)
at ../nptl/
#1 0x00007f4db2128f70 in *__GI_abort () at abort.c:92
#2 0x00007f4db211f2b1 in *__GI___assert_fail (
assertion=
file=<value optimized out>, line=201, function=0x527480 "scsi_read_data")
at assert.c:81
#3 0x000000000044f363 in scsi_read_data (d=<value optimized out>, tag=0)
at /home/njh/
#4 0x00000000004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/
#5 0x00000000004ec781 in handle_ti (opaque=0x20679d0,
addr=<value optimized out>, val=<value optimized out>)
at /home/njh/
#6 esp_mem_writeb (opaque=0x20679d0, addr=<value optimized out>,
val=<value optimized out>) at /home/njh/
#7 0x0000000041b2d971 in ?? ()
#8 0xffffffffffffffff in ?? ()
#9 0x00000000031ad000 in ?? ()
#10 0x0000000301adfa20 in ?? ()
#11 0x0000100000000007 in ?? ()
#12 0x00007f4daf80e8a0 in ?? ()
#13 0x0000000000000001 in ?? ()
#14 0x0000000000000000 in ?? ()
Changed in qemu: | |
status: | New → In Progress |
assignee: | nobody → Stefan Hajnoczi (stefanha) |
On Sat, Nov 6, 2010 at 1:24 PM, Nigel Horne <email address hidden> wrote: 050d2b28e5f17e3 b55e91c6d74) src/qemu/ hw/scsi- disk.c: 201: scsi_read_data: Assertion `r->req.aiocb == ((void *)0)' failed.
> Public bug reported:
>
> The latest version in git (d33ea50a958b2e
> crashes with an assert error when booting a Sparc/Linux guest.
[...]
> 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/
Kevin,
The assert I suggested in your recent scsi-disk patch series has
triggered. I need to study the scsi-disk.c code more to understand
how to solve this.
Stefan