[Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-12-11 Thread Nigel Horne
Found out how to change the bug's status.  I've marked it as fixed.
Thanks again.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/671831

Title:
  Sparc guest assert error

Status in QEMU:
  Fix Released

Bug description:
  The latest version in git (d33ea50a958b2e050d2b28e5f17e3b55e91c6d74) crashes 
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 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/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: 
Assertion `r-req.aiocb == ((void *)0)' failed.


It crashes in the same place every time.

(gdb) thread apply all bt:

Thread 3 (Thread 17643):
#0  0x7f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x004d02c4 in main_loop_wait (nonblocking=value optimized out)
at /home/njh/src/qemu/vl.c:1246
#2  0x004d0e57 in main_loop (argc=value optimized out, 
argv=value optimized out, envp=value optimized out)
at /home/njh/src/qemu/vl.c:1309
#3  main (argc=value optimized out, argv=value optimized out, 
envp=value optimized out) 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  0x0042450b in cond_timedwait (unused=value optimized out)
at posix-aio-compat.c:104
#2  aio_thread (unused=value optimized out) at posix-aio-compat.c:325
#3  0x7f4db3b818ba in start_thread (arg=value optimized out)
at pthread_create.c:300
#4  0x7f4db21c302d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x in ?? ()
Current language:  auto
The current source language is auto; currently asm.

Thread 1 (Thread 17644):
#0  0x7f4db2126165 in *__GI_raise (sig=value optimized out)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f4db2128f70 in *__GI_abort () at abort.c:92
#2  0x7f4db211f2b1 in *__GI___assert_fail (
assertion=0x52690a r-req.aiocb == ((void *)0), 
file=value optimized out, line=201, function=0x527480 scsi_read_data)
at assert.c:81
#3  0x0044f363 in scsi_read_data (d=value optimized out, tag=0)
at /home/njh/src/qemu/hw/scsi-disk.c:201
#4  0x004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/src/qemu/hw/esp.c:377
#5  0x004ec781 in handle_ti (opaque=0x20679d0, 
addr=value optimized out, val=value optimized out)
at /home/njh/src/qemu/hw/esp.c:443
#6  esp_mem_writeb (opaque=0x20679d0, addr=value optimized out, 
val=value optimized out) at /home/njh/src/qemu/hw/esp.c:595
#7  0x41b2d971 in ?? ()
#8  0x in ?? ()
#9  0x031ad000 in ?? ()
#10 0x000301adfa20 in ?? ()
#11 0x1007 in ?? ()
#12 0x7f4daf80e8a0 in ?? ()
#13 0x0001 in ?? ()
#14 0x in ?? ()





[Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-12-11 Thread Nigel Horne
It's been fixed now, thanks.  There seems to be no way to close this
bug, but you can assume, now, that it is closed.

Thanks for your help in tracking it down and fixing it quickly.

** Changed in: qemu
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/671831

Title:
  Sparc guest assert error

Status in QEMU:
  Fix Released

Bug description:
  The latest version in git (d33ea50a958b2e050d2b28e5f17e3b55e91c6d74) crashes 
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 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/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: 
Assertion `r-req.aiocb == ((void *)0)' failed.


It crashes in the same place every time.

(gdb) thread apply all bt:

Thread 3 (Thread 17643):
#0  0x7f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x004d02c4 in main_loop_wait (nonblocking=value optimized out)
at /home/njh/src/qemu/vl.c:1246
#2  0x004d0e57 in main_loop (argc=value optimized out, 
argv=value optimized out, envp=value optimized out)
at /home/njh/src/qemu/vl.c:1309
#3  main (argc=value optimized out, argv=value optimized out, 
envp=value optimized out) 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  0x0042450b in cond_timedwait (unused=value optimized out)
at posix-aio-compat.c:104
#2  aio_thread (unused=value optimized out) at posix-aio-compat.c:325
#3  0x7f4db3b818ba in start_thread (arg=value optimized out)
at pthread_create.c:300
#4  0x7f4db21c302d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x in ?? ()
Current language:  auto
The current source language is auto; currently asm.

Thread 1 (Thread 17644):
#0  0x7f4db2126165 in *__GI_raise (sig=value optimized out)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f4db2128f70 in *__GI_abort () at abort.c:92
#2  0x7f4db211f2b1 in *__GI___assert_fail (
assertion=0x52690a r-req.aiocb == ((void *)0), 
file=value optimized out, line=201, function=0x527480 scsi_read_data)
at assert.c:81
#3  0x0044f363 in scsi_read_data (d=value optimized out, tag=0)
at /home/njh/src/qemu/hw/scsi-disk.c:201
#4  0x004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/src/qemu/hw/esp.c:377
#5  0x004ec781 in handle_ti (opaque=0x20679d0, 
addr=value optimized out, val=value optimized out)
at /home/njh/src/qemu/hw/esp.c:443
#6  esp_mem_writeb (opaque=0x20679d0, addr=value optimized out, 
val=value optimized out) at /home/njh/src/qemu/hw/esp.c:595
#7  0x41b2d971 in ?? ()
#8  0x in ?? ()
#9  0x031ad000 in ?? ()
#10 0x000301adfa20 in ?? ()
#11 0x1007 in ?? ()
#12 0x7f4daf80e8a0 in ?? ()
#13 0x0001 in ?? ()
#14 0x in ?? ()





[Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-12 Thread Stefan Hajnoczi
** Changed in: qemu
   Status: New = In Progress

** Changed in: qemu
 Assignee: (unassigned) = Stefan Hajnoczi (stefanha)

-- 
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: In Progress

Bug description:
The latest version in git (d33ea50a958b2e050d2b28e5f17e3b55e91c6d74) crashes 
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 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/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: 
Assertion `r-req.aiocb == ((void *)0)' failed.


It crashes in the same place every time.

(gdb) thread apply all bt:

Thread 3 (Thread 17643):
#0  0x7f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x004d02c4 in main_loop_wait (nonblocking=value optimized out)
at /home/njh/src/qemu/vl.c:1246
#2  0x004d0e57 in main_loop (argc=value optimized out, 
argv=value optimized out, envp=value optimized out)
at /home/njh/src/qemu/vl.c:1309
#3  main (argc=value optimized out, argv=value optimized out, 
envp=value optimized out) 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  0x0042450b in cond_timedwait (unused=value optimized out)
at posix-aio-compat.c:104
#2  aio_thread (unused=value optimized out) at posix-aio-compat.c:325
#3  0x7f4db3b818ba in start_thread (arg=value optimized out)
at pthread_create.c:300
#4  0x7f4db21c302d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x in ?? ()
Current language:  auto
The current source language is auto; currently asm.

Thread 1 (Thread 17644):
#0  0x7f4db2126165 in *__GI_raise (sig=value optimized out)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f4db2128f70 in *__GI_abort () at abort.c:92
#2  0x7f4db211f2b1 in *__GI___assert_fail (
assertion=0x52690a r-req.aiocb == ((void *)0), 
file=value optimized out, line=201, function=0x527480 scsi_read_data)
at assert.c:81
#3  0x0044f363 in scsi_read_data (d=value optimized out, tag=0)
at /home/njh/src/qemu/hw/scsi-disk.c:201
#4  0x004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/src/qemu/hw/esp.c:377
#5  0x004ec781 in handle_ti (opaque=0x20679d0, 
addr=value optimized out, val=value optimized out)
at /home/njh/src/qemu/hw/esp.c:443
#6  esp_mem_writeb (opaque=0x20679d0, addr=value optimized out, 
val=value optimized out) at /home/njh/src/qemu/hw/esp.c:595
#7  0x41b2d971 in ?? ()
#8  0x in ?? ()
#9  0x031ad000 in ?? ()
#10 0x000301adfa20 in ?? ()
#11 0x1007 in ?? ()
#12 0x7f4daf80e8a0 in ?? ()
#13 0x0001 in ?? ()
#14 0x in ?? ()





Re: [Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-11 Thread Stefan Hajnoczi
Thanks for providing the kernel and initrd.  Unfortunately I wasn't
able to get them far enough to trigger the assert.  More on that at
the bottom of this message but in the meantime I looked over the
relevant commits and spotted an issue with the assert.

Please try this branch:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/scsi_assert_moved

That branch contains a small code change that moves the assert later
into the read code because we're doing the assert too early.
Hopefully this fixes the issue for you.

Regarding the kernel and initrd, I'm unable to get it far enough to
fsck, which is where you hit
the assertion.  Either kernel parameters need to be set or the image depends on
a root filesystem (which I don't have).

$ sparc-softmmu/qemu-system-sparc -m 128 -hda test.raw -kernel
~/sparc-images/nigel/vmlinuz -initrd ~/sparc-images/nigel/initrd.img
-nographic

Configuration device id QEMU version 1 machine id 32
CPUs: 1 x FMI,MB86904
UUID: ----
Welcome to OpenBIOS v1.0 built on Aug 26 2010 17:52
  Type 'help' for detailed information
[sparc] Kernel already loaded
switching to new context:
PROMLIB: obio_ranges 1
bootmem_init: Scan sp_banks,  init_bootmem(spfn[20b],bpfn[20b],mlpfn[7f18])
free_bootmem: base[0] size[7f18000]
reserve_bootmem: base[80] size[244000]
reserve_bootmem: base[0] size[20b000]
reserve_bootmem: base[20b000] size[fe4]
Booting Linux...
mem_init: Calling free_all_bootmem().
PROMLIB: Sun Boot Prom Version 3 Revision 2
Linux version 2.4.27-4-sparc32 (pbuil...@sparc) (gcc version 3.3.5
(Debian 1:3.3.5-13)) #1 Tue Mar 4 08:22:06 UTC 2008
ARCH: SUN4M
TYPE: SPARCstation 5
Ethernet address: 52:54:0:12:34:56
Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek (j...@ultra.linux.cz).
Patching kernel for srmmu[Fujitsu TurboSparc]/iommu
On node 0 totalpages: 31432
zone(0): 32536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Found CPU 0 node=ffd73e14,mid=0
Found 1 CPU prom device tree node(s).
Power off control detected.
Kernel command line:
Calibrating delay loop... 222.82 BogoMIPS
Memory: 122120k available (1436k kernel code, 220k data, 128k init, 0k
highmem) [f000,07f18000]
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
IOMMU: impl 0 vers 5 page table at f05c of size 262144 bytes
sbus0: Clock 21.1250 MHz
dma0: Revision 2
dma1: Revision 2
Sparc Zilog8530 serial driver version 1.68.2.2
Sun Mouse-Systems mouse driver version 1.00
tty00 at 0xffeab004 (irq = 44) is a Zilog8530
tty01 at 0xffeab000 (irq = 44) is a Zilog8530
tty02 at 0xffeac004 (irq = 44) is a Zilog8530
tty03 at 0xffeac000 (irq = 44) is a Zilog8530
keyboard: not present
Console: ttyS0 (Zilog8530)
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
ioremap: done with statics, switching to malloc
apc: power management initialized
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
devfs: v1.12c (20020818) Richard Gooch (rgo...@atnf.csiro.au)
devfs: boot_options: 0x0
pty: 256 Unix98 ptys configured
Floppy drive(s): fd0 is 1.44M
reset set in interrupt, calling f00d3fb8
floppy0: no floppy controllers found
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 2320 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 2320k freed
VFS: Mounted root (cramfs filesystem).
mount[8]: Unimplemented SPARC system call 188
cat[9]: Unimplemented SPARC system call 188
mount[10]: Unimplemented SPARC system call 188
linuxrc[7]: Unimplemented SPARC system call 188
Freeing unused kernel memory: 128k freed
initrd-tools: 0.1.84.2
umount[11]: Unimplemented SPARC system call 188
cat[12]: Unimplemented SPARC system call 188
SCSI subsystem driver Revision: 1.00
esp0: IRQ 36 SCSI ID 7 Clk 40MHz CCYC=25000 CCF=8 TOut 167 NCR53C9XF(espfast)
ESP: Total of 1 ESP hosts found, 1 actually in use.
scsi0 : Sparc ESP100A-FAST
  Vendor: QEMU  Model: QEMU HARDDISK Rev: 0.13
  Type:   Direct-Access  ANSI SCSI revision: 05
  Vendor: QEMU  Model: QEMU CD-ROM   Rev: 0.13
  Type:   CD-ROM ANSI SCSI revision: 05
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 20971520 512-byte hdwr sectors (10737 MB)
Partition check:
 /dev/scsi/host0/bus0/target0/lun0: p1 p3
Journalled Block Device driver loaded
pivot_root: No such file or directory
/sbin/init: 432: cannot open dev/console: No such file
Kernel 

Re: [Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-11 Thread Nigel Horne
On 11/11/2010 09:17 AM, Stefan Hajnoczi wrote:
 Thanks for providing the kernel and initrd.  Unfortunately I wasn't
 able to get them far enough to trigger the assert.  More on that at
 the bottom of this message but in the meantime I looked over the
 relevant commits and spotted an issue with the assert.

 Please try this branch:
 http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/scsi_assert_moved


I tried lots of different ways to get your code, but failed.  The one 
closest to the instructions that you gave me last time failed with this:

n...@compaq:~/tmp/foo2$ git clone -b scsi_assert_moved 
http://repo.or.cz/w/qemu/stefanha.git/
Cloning into stefanha...
warning: Remote branch scsi_assert_moved not found in upstream origin, 
using HEAD instead
warning: remote HEAD refers to nonexistent ref, unable to checkout.

Regards,

-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) crashes 
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 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/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: 
Assertion `r-req.aiocb == ((void *)0)' failed.


It crashes in the same place every time.

(gdb) thread apply all bt:

Thread 3 (Thread 17643):
#0  0x7f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x004d02c4 in main_loop_wait (nonblocking=value optimized out)
at /home/njh/src/qemu/vl.c:1246
#2  0x004d0e57 in main_loop (argc=value optimized out, 
argv=value optimized out, envp=value optimized out)
at /home/njh/src/qemu/vl.c:1309
#3  main (argc=value optimized out, argv=value optimized out, 
envp=value optimized out) 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  0x0042450b in cond_timedwait (unused=value optimized out)
at posix-aio-compat.c:104
#2  aio_thread (unused=value optimized out) at posix-aio-compat.c:325
#3  0x7f4db3b818ba in start_thread (arg=value optimized out)
at pthread_create.c:300
#4  0x7f4db21c302d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x in ?? ()
Current language:  auto
The current source language is auto; currently asm.

Thread 1 (Thread 17644):
#0  0x7f4db2126165 in *__GI_raise (sig=value optimized out)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f4db2128f70 in *__GI_abort () at abort.c:92
#2  0x7f4db211f2b1 in *__GI___assert_fail (
assertion=0x52690a r-req.aiocb == ((void *)0), 
file=value optimized out, line=201, function=0x527480 scsi_read_data)
at assert.c:81
#3  0x0044f363 in scsi_read_data (d=value optimized out, tag=0)
at /home/njh/src/qemu/hw/scsi-disk.c:201
#4  0x004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/src/qemu/hw/esp.c:377
#5  0x004ec781 in handle_ti (opaque=0x20679d0, 
addr=value optimized out, val=value optimized out)
at /home/njh/src/qemu/hw/esp.c:443
#6  esp_mem_writeb (opaque=0x20679d0, addr=value optimized out, 
val=value optimized out) at /home/njh/src/qemu/hw/esp.c:595
#7  0x41b2d971 in ?? ()
#8  0x in ?? ()
#9  0x031ad000 in ?? ()
#10 0x000301adfa20 in ?? ()
#11 0x1007 in ?? ()
#12 0x7f4daf80e8a0 in ?? ()
#13 0x0001 in ?? ()
#14 0x in ?? ()





Re: [Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-11 Thread Stefan Hajnoczi
On Thu, Nov 11, 2010 at 5:00 PM, Nigel Horne 671...@bugs.launchpad.net wrote:
 On 11/11/2010 09:17 AM, Stefan Hajnoczi wrote:
 Thanks for providing the kernel and initrd.  Unfortunately I wasn't
 able to get them far enough to trigger the assert.  More on that at
 the bottom of this message but in the meantime I looked over the
 relevant commits and spotted an issue with the assert.

 Please try this branch:
 http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/scsi_assert_moved


 I tried lots of different ways to get your code, but failed.  The one
 closest to the instructions that you gave me last time failed with this:

 n...@compaq:~/tmp/foo2$ git clone -b scsi_assert_moved
 http://repo.or.cz/w/qemu/stefanha.git/
 Cloning into stefanha...
 warning: Remote branch scsi_assert_moved not found in upstream origin,
 using HEAD instead
 warning: remote HEAD refers to nonexistent ref, unable to checkout.

Try:
git clone -b scsi_assert_moved git://repo.or.cz/qemu/stefanha.git

Sorry for that.  You can get the repo clone info by clicking
qemu/stefanha.git at the top of the
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/scsi_assert_moved
page, the git:// URI is usually the best one to use.

Stefan



Re: [Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-11 Thread Nigel Horne
Stefan,

 Try:
 git clone -b scsi_assert_moved git://repo.or.cz/qemu/stefanha.git


I have tried that branch.  I get no assertion failure with it.

Thanks,

-Nigel Horne

-- 
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) crashes 
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 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/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: 
Assertion `r-req.aiocb == ((void *)0)' failed.


It crashes in the same place every time.

(gdb) thread apply all bt:

Thread 3 (Thread 17643):
#0  0x7f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x004d02c4 in main_loop_wait (nonblocking=value optimized out)
at /home/njh/src/qemu/vl.c:1246
#2  0x004d0e57 in main_loop (argc=value optimized out, 
argv=value optimized out, envp=value optimized out)
at /home/njh/src/qemu/vl.c:1309
#3  main (argc=value optimized out, argv=value optimized out, 
envp=value optimized out) 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  0x0042450b in cond_timedwait (unused=value optimized out)
at posix-aio-compat.c:104
#2  aio_thread (unused=value optimized out) at posix-aio-compat.c:325
#3  0x7f4db3b818ba in start_thread (arg=value optimized out)
at pthread_create.c:300
#4  0x7f4db21c302d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x in ?? ()
Current language:  auto
The current source language is auto; currently asm.

Thread 1 (Thread 17644):
#0  0x7f4db2126165 in *__GI_raise (sig=value optimized out)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f4db2128f70 in *__GI_abort () at abort.c:92
#2  0x7f4db211f2b1 in *__GI___assert_fail (
assertion=0x52690a r-req.aiocb == ((void *)0), 
file=value optimized out, line=201, function=0x527480 scsi_read_data)
at assert.c:81
#3  0x0044f363 in scsi_read_data (d=value optimized out, tag=0)
at /home/njh/src/qemu/hw/scsi-disk.c:201
#4  0x004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/src/qemu/hw/esp.c:377
#5  0x004ec781 in handle_ti (opaque=0x20679d0, 
addr=value optimized out, val=value optimized out)
at /home/njh/src/qemu/hw/esp.c:443
#6  esp_mem_writeb (opaque=0x20679d0, addr=value optimized out, 
val=value optimized out) at /home/njh/src/qemu/hw/esp.c:595
#7  0x41b2d971 in ?? ()
#8  0x in ?? ()
#9  0x031ad000 in ?? ()
#10 0x000301adfa20 in ?? ()
#11 0x1007 in ?? ()
#12 0x7f4daf80e8a0 in ?? ()
#13 0x0001 in ?? ()
#14 0x in ?? ()





Re: [Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-11 Thread Stefan Hajnoczi
On Thu, Nov 11, 2010 at 10:45 PM, Nigel Horne 671...@bugs.launchpad.net wrote:
 Stefan,

 Try:
 git clone -b scsi_assert_moved git://repo.or.cz/qemu/stefanha.git


 I have tried that branch.  I get no assertion failure with it.

Great, thank you.  I will submit the patch for qemu.git.

Stefan



[Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-10 Thread Nigel Horne
initrd

** Attachment added: initrd
   
https://bugs.launchpad.net/qemu/+bug/671831/+attachment/1729095/+files/initrd.img

-- 
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) crashes 
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 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/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: 
Assertion `r-req.aiocb == ((void *)0)' failed.


It crashes in the same place every time.

(gdb) thread apply all bt:

Thread 3 (Thread 17643):
#0  0x7f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x004d02c4 in main_loop_wait (nonblocking=value optimized out)
at /home/njh/src/qemu/vl.c:1246
#2  0x004d0e57 in main_loop (argc=value optimized out, 
argv=value optimized out, envp=value optimized out)
at /home/njh/src/qemu/vl.c:1309
#3  main (argc=value optimized out, argv=value optimized out, 
envp=value optimized out) 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  0x0042450b in cond_timedwait (unused=value optimized out)
at posix-aio-compat.c:104
#2  aio_thread (unused=value optimized out) at posix-aio-compat.c:325
#3  0x7f4db3b818ba in start_thread (arg=value optimized out)
at pthread_create.c:300
#4  0x7f4db21c302d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x in ?? ()
Current language:  auto
The current source language is auto; currently asm.

Thread 1 (Thread 17644):
#0  0x7f4db2126165 in *__GI_raise (sig=value optimized out)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f4db2128f70 in *__GI_abort () at abort.c:92
#2  0x7f4db211f2b1 in *__GI___assert_fail (
assertion=0x52690a r-req.aiocb == ((void *)0), 
file=value optimized out, line=201, function=0x527480 scsi_read_data)
at assert.c:81
#3  0x0044f363 in scsi_read_data (d=value optimized out, tag=0)
at /home/njh/src/qemu/hw/scsi-disk.c:201
#4  0x004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/src/qemu/hw/esp.c:377
#5  0x004ec781 in handle_ti (opaque=0x20679d0, 
addr=value optimized out, val=value optimized out)
at /home/njh/src/qemu/hw/esp.c:443
#6  esp_mem_writeb (opaque=0x20679d0, addr=value optimized out, 
val=value optimized out) at /home/njh/src/qemu/hw/esp.c:595
#7  0x41b2d971 in ?? ()
#8  0x in ?? ()
#9  0x031ad000 in ?? ()
#10 0x000301adfa20 in ?? ()
#11 0x1007 in ?? ()
#12 0x7f4daf80e8a0 in ?? ()
#13 0x0001 in ?? ()
#14 0x in ?? ()





[Qemu-devel] [Bug 671831] Re: Sparc guest assert error

2010-11-10 Thread Nigel Horne
vmlinuz

** Attachment added: vmlinuz
   
https://bugs.launchpad.net/qemu/+bug/671831/+attachment/1729096/+files/vmlinuz

-- 
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) crashes 
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 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/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: 
Assertion `r-req.aiocb == ((void *)0)' failed.


It crashes in the same place every time.

(gdb) thread apply all bt:

Thread 3 (Thread 17643):
#0  0x7f4db21bc8d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x004d02c4 in main_loop_wait (nonblocking=value optimized out)
at /home/njh/src/qemu/vl.c:1246
#2  0x004d0e57 in main_loop (argc=value optimized out, 
argv=value optimized out, envp=value optimized out)
at /home/njh/src/qemu/vl.c:1309
#3  main (argc=value optimized out, argv=value optimized out, 
envp=value optimized out) 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  0x0042450b in cond_timedwait (unused=value optimized out)
at posix-aio-compat.c:104
#2  aio_thread (unused=value optimized out) at posix-aio-compat.c:325
#3  0x7f4db3b818ba in start_thread (arg=value optimized out)
at pthread_create.c:300
#4  0x7f4db21c302d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x in ?? ()
Current language:  auto
The current source language is auto; currently asm.

Thread 1 (Thread 17644):
#0  0x7f4db2126165 in *__GI_raise (sig=value optimized out)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f4db2128f70 in *__GI_abort () at abort.c:92
#2  0x7f4db211f2b1 in *__GI___assert_fail (
assertion=0x52690a r-req.aiocb == ((void *)0), 
file=value optimized out, line=201, function=0x527480 scsi_read_data)
at assert.c:81
#3  0x0044f363 in scsi_read_data (d=value optimized out, tag=0)
at /home/njh/src/qemu/hw/scsi-disk.c:201
#4  0x004ebd6c in esp_do_dma (s=0x20679d0)
at /home/njh/src/qemu/hw/esp.c:377
#5  0x004ec781 in handle_ti (opaque=0x20679d0, 
addr=value optimized out, val=value optimized out)
at /home/njh/src/qemu/hw/esp.c:443
#6  esp_mem_writeb (opaque=0x20679d0, addr=value optimized out, 
val=value optimized out) at /home/njh/src/qemu/hw/esp.c:595
#7  0x41b2d971 in ?? ()
#8  0x in ?? ()
#9  0x031ad000 in ?? ()
#10 0x000301adfa20 in ?? ()
#11 0x1007 in ?? ()
#12 0x7f4daf80e8a0 in ?? ()
#13 0x0001 in ?? ()
#14 0x in ?? ()