qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Avi Kivity <avi@redhat.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] PPC* and Sparc32 crash
Date: Wed, 24 Aug 2011 20:16:41 +0200	[thread overview]
Message-ID: <20110824181641.GB17167@zapo> (raw)
In-Reply-To: <CAAu8pHtMyZ=SuZGmZw_tX=FkUKL7JoHcqCzjvoBdUztfLOHBUw@mail.gmail.com>

On Wed, Aug 24, 2011 at 05:49:42PM +0000, Blue Swirl wrote:
> On Tue, Aug 23, 2011 at 7:19 PM, Edgar E. Iglesias
> <edgar.iglesias@gmail.com> wrote:
> > On Tue, Aug 23, 2011 at 06:59:01PM +0100, Peter Maydell wrote:
> >> On 23 August 2011 18:55, Blue Swirl <blauwirbel@gmail.com> wrote:
> >> > qemu-system-ppc: /src/qemu/memory.c:1183:
> >> > memory_region_add_subregion_common: Assertion `!subregion->parent'
> >> > failed.
> >> > Aborted
> >> > qemu-system-ppc64: /src/qemu/memory.c:1183:
> >> > memory_region_add_subregion_common: Assertion `!subregion->parent'
> >> > failed.
> >> > Aborted
> >> > qemu-system-sparc: /src/qemu/hw/sysbus.c:156:
> >> > sysbus_register_withprop: Assertion `info->qdev.size >=
> >> > sizeof(SysBusDevice)' failed.
> >> > Aborted
> >> >
> >> > This is with b861b7419c49ad53e786062b4fbf6da53468f130. Other targets
> >> > seem to work.
> >>
> >> n810 is also broken with a similar assertion to ppc, which I have a
> >> patch in progress to fix.
> >
> > MIPS malta is broken in the same way.
> 
> Doesn't crash with these command lines:
> $ ./obj-amd64/mips-softmmu/qemu-system-mips -bios /dev/null -machine malta
> $ ./obj-amd64/mipsel-softmmu/qemu-system-mipsel -bios /dev/null -machine malta
> $ ./obj-amd64/mips64el-softmmu/qemu-system-mips64el -bios /dev/null
> -machine malta
> $ ./obj-amd64/mips64-softmmu/qemu-system-mips64 -bios /dev/null -machine malta


Sorry, forgot the backtrace:

Starting program: /home/edgar/src/c/qemu/build-qemu/mipsel-softmmu/qemu-system-mipsel -M malta -kernel vmlinux -hda /home/edgar/Downloads/debian_squeeze_mipsel_standard.qcow2 -append root=/dev/hda1\ console=ttyS0 -nographic
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffeef43700 (LWP 18091)]
[New Thread 0x7fffe5a76700 (LWP 18092)]
QEMU 0.15.50 monitor - type 'help' for more information
(qemu) QEMU 0.15.50 monitor - type 'help' for more information
(qemu) 
Program received signal SIGUSR2, User defined signal 2.
0x00007ffff5be6913 in select () at ../sysdeps/unix/syscall-template.S:82
82      ../sysdeps/unix/syscall-template.S: No such file or directory.
        in ../sysdeps/unix/syscall-template.S
(gdb) bt
#0  0x00007ffff5be6913 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x0000000000430627 in qemu_aio_wait ()
    at /home/edgar/src/c/qemu/qemu/aio.c:193
#2  0x000000000042e6dd in bdrv_read_em (bs=0x116a310, sector_num=0, 
    buf=<optimized out>, nb_sectors=1)
    at /home/edgar/src/c/qemu/qemu/block.c:2833
#3  0x000000000042bfd8 in bdrv_read (bs=0x116a310, sector_num=0, 
    buf=0x7fffffffdaa0 "", nb_sectors=1)
    at /home/edgar/src/c/qemu/qemu/block.c:984
#4  0x000000000042c988 in guess_disk_lchs (bs=0x116a310, 
    pcylinders=0x7fffffffdcec, pheads=0x7fffffffdcf0, psectors=0x7fffffffdcf4)
    at /home/edgar/src/c/qemu/qemu/block.c:1317
#5  0x000000000042cb27 in bdrv_guess_geometry (bs=0x116a310, 
    pcyls=0x7fffffffdd3c, pheads=0x7fffffffdd40, psecs=0x7fffffffdd44)
    at /home/edgar/src/c/qemu/qemu/block.c:1364
#6  0x0000000000587638 in ide_init_drive (s=0x1395b80, bs=0x116a310, 
    kind=IDE_HD, version=0x0, serial=0x0)
    at /home/edgar/src/c/qemu/qemu/hw/ide/core.c:1730
#7  0x000000000058981d in ide_dev_initfn (dev=0x1397e10, kind=<optimized out>)
    at /home/edgar/src/c/qemu/qemu/hw/ide/qdev.c:146
#8  0x0000000000493b0c in qdev_init (dev=0x1397e10)
    at /home/edgar/src/c/qemu/qemu/hw/qdev.c:287
#9  0x0000000000493bce in qdev_init_nofail (dev=<optimized out>)
    at /home/edgar/src/c/qemu/qemu/hw/qdev.c:381
#10 0x0000000000589bca in ide_create_drive (bus=<optimized out>, unit=0, 
    drive=0x116a270) at /home/edgar/src/c/qemu/qemu/hw/ide/qdev.c:108
#11 0x000000000058a85b in pci_ide_create_devs (dev=0x13956e0, 
    hd_table=0x7fffffffdf00) at /home/edgar/src/c/qemu/qemu/hw/ide/pci.c:503
#12 0x000000000058b23b in pci_piix4_ide_init (bus=<optimized out>, 
    hd_table=0x7fffffffdf00, devfn=<optimized out>)
    at /home/edgar/src/c/qemu/qemu/hw/ide/piix.c:237
#13 0x00000000005a2d03 in mips_malta_init (ram_size=<optimized out>, 
    boot_device=<optimized out>, kernel_filename=<optimized out>, 
    kernel_cmdline=0x7fffffffe658 "root=/dev/hda1 console=ttyS0", 
    initrd_filename=0x0, cpu_model=<optimized out>)
    at /home/edgar/src/c/qemu/qemu/hw/mips_malta.c:911
#14 0x0000000000409e1d in main (argc=<optimized out>, argv=<optimized out>, 
    envp=<optimized out>) at /home/edgar/src/c/qemu/qemu/vl.c:3257
(gdb) q
A debugging session is active.

        Inferior 1 [process 18088] will be killed.

Quit anyway? (y or n) y

  parent reply	other threads:[~2011-08-24 18:16 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23 17:55 [Qemu-devel] PPC* and Sparc32 crash Blue Swirl
2011-08-23 17:59 ` Peter Maydell
2011-08-23 19:19   ` Edgar E. Iglesias
2011-08-24 17:49     ` Blue Swirl
2011-08-24 18:14       ` Edgar E. Iglesias
2011-08-24 18:16       ` Edgar E. Iglesias [this message]
2011-08-24 18:39         ` Edgar E. Iglesias
2011-08-24 19:09           ` [Qemu-devel] [PATCH] gt64xxx: fix crash in gt64120_pci_mapping() Avi Kivity
2011-08-24 19:17             ` Edgar E. Iglesias
2011-08-24 17:54   ` [Qemu-devel] PPC* and Sparc32 crash Blue Swirl
2011-08-24 18:05     ` Peter Maydell
2011-08-24  9:41 ` Avi Kivity
2011-08-24 17:48   ` Blue Swirl
2011-08-24 18:20     ` Avi Kivity
2011-08-24 18:40     ` [Qemu-devel] [PATCH] ppc_oldworld, ppc_newworld: fix escc BAR related crash Avi Kivity
2011-08-24 18:43     ` [Qemu-devel] PPC* and Sparc32 crash Avi Kivity
2011-08-24 19:43       ` Blue Swirl
2011-08-24 19:59         ` Avi Kivity
2011-08-24 20:02           ` Blue Swirl
2011-08-25  4:43             ` Avi Kivity
2011-08-25 17:33               ` Blue Swirl
2011-08-25 19:31                 ` Avi Kivity
2011-08-25 20:17                   ` Blue Swirl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110824181641.GB17167@zapo \
    --to=edgar.iglesias@gmail.com \
    --cc=avi@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).