qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: QEMU Developers <qemu-devel@nongnu.org>,
	Aleksandr Bezzubikov <zuban32s@gmail.com>,
	Marcel Apfelbaum <marcel@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: [Qemu-devel] Problem in pcie_pci_bridge_realize()
Date: Wed, 27 Sep 2017 17:50:17 +0200	[thread overview]
Message-ID: <b5786d73-10f9-bba8-28c6-275cdf623004@redhat.com> (raw)

 Hi,

QEMU currently aborts with an assertion when plugging of the
pcie-pci-bridge fails, e.g.:

$ mips64el-softmmu/qemu-system-mips64el -M malta -nographic -S \
                -device pcie-pci-bridge -bios pc-bios/bios.bin 
qemu-system-mips64el: memory.c:1699: memory_region_finalize:
 Assertion `!mr->container' failed.
Aborted (core dumped)

The backtrace points to the pcie_pci_bridge_realize() function:

#0  0x00007ffff150f1f7 in raise () at /lib64/libc.so.6
#1  0x00007ffff15108e8 in abort () at /lib64/libc.so.6
#2  0x00007ffff1508266 in __assert_fail_base () at /lib64/libc.so.6
#3  0x00007ffff1508312 in  () at /lib64/libc.so.6
#4  0x00005555557cedaf in memory_region_finalize (obj=<optimized out>)
    at /home/thuth/devel/qemu/memory.c:1699
#5  0x0000555555a49852 in object_unref (type=<optimized out>, obj=0x555556e68580)
    at /home/thuth/devel/qemu/qom/object.c:453
#6  0x0000555555a49852 in object_unref (data=0x555556e68580) at /home/thuth/devel/qemu/qom/object.c:467
#7  0x0000555555a49852 in object_unref (obj=0x555556e68580) at /home/thuth/devel/qemu/qom/object.c:902
#8  0x0000555555a48887 in object_property_del_child (obj=0x555556dc7760, child=child@entry=0x555556e68580, errp=0x0) at /home/thuth/devel/qemu/qom/object.c:427
#9  0x0000555555a490a4 in object_unparent (obj=obj@entry=0x555556e68580)
    at /home/thuth/devel/qemu/qom/object.c:446
#10 0x00005555559906ae in shpc_free (d=d@entry=0x555556dc7760)
    at /home/thuth/devel/qemu/hw/pci/shpc.c:676
#11 0x0000555555987470 in pcie_pci_bridge_realize (d=0x555556dc7760, errp=0x7fffffffd710)
    at /home/thuth/devel/qemu/hw/pci-bridge/pcie_pci_bridge.c:84
#12 0x000055555598ca67 in pci_qdev_realize (qdev=0x555556dc7760, errp=0x7fffffffd7b0)
    at /home/thuth/devel/qemu/hw/pci/pci.c:2024
#13 0x000055555590ee4a in device_set_realized (obj=<optimized out>, value=<optimized out>, errp=0x7fffffffd8e8) at /home/thuth/devel/qemu/hw/core/qdev.c:914

Any clue what might be wrong here?

 Thomas

             reply	other threads:[~2017-09-27 15:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-27 15:50 Thomas Huth [this message]
2017-09-27 16:22 ` [Qemu-devel] Problem in pcie_pci_bridge_realize() Aleksandr Bezzubikov
2017-09-27 16:48   ` Thomas Huth

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=b5786d73-10f9-bba8-28c6-275cdf623004@redhat.com \
    --to=thuth@redhat.com \
    --cc=marcel@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zuban32s@gmail.com \
    /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).