qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Problem in pcie_pci_bridge_realize()
@ 2017-09-27 15:50 Thomas Huth
  2017-09-27 16:22 ` Aleksandr Bezzubikov
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2017-09-27 15:50 UTC (permalink / raw)
  To: QEMU Developers, Aleksandr Bezzubikov, Marcel Apfelbaum,
	Michael S. Tsirkin

 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Problem in pcie_pci_bridge_realize()
  2017-09-27 15:50 [Qemu-devel] Problem in pcie_pci_bridge_realize() Thomas Huth
@ 2017-09-27 16:22 ` Aleksandr Bezzubikov
  2017-09-27 16:48   ` Thomas Huth
  0 siblings, 1 reply; 3+ messages in thread
From: Aleksandr Bezzubikov @ 2017-09-27 16:22 UTC (permalink / raw)
  To: Thomas Huth; +Cc: QEMU Developers, Marcel Apfelbaum, Michael S. Tsirkin

2017-09-27 18:50 GMT+03:00 Thomas Huth <thuth@redhat.com>:
>  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

Hi Thomas,
This bug was already reported by Eduardo with ppc64, try this patch
that is intended to fix it

http://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg06696.html

-- 
Aleksandr Bezzubikov

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Problem in pcie_pci_bridge_realize()
  2017-09-27 16:22 ` Aleksandr Bezzubikov
@ 2017-09-27 16:48   ` Thomas Huth
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2017-09-27 16:48 UTC (permalink / raw)
  To: Aleksandr Bezzubikov
  Cc: QEMU Developers, Marcel Apfelbaum, Michael S. Tsirkin

On 27.09.2017 18:22, Aleksandr Bezzubikov wrote:
> 2017-09-27 18:50 GMT+03:00 Thomas Huth <thuth@redhat.com>:
>>  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)
[...]
> Hi Thomas,
> This bug was already reported by Eduardo with ppc64, try this patch
> that is intended to fix it
> 
> http://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg06696.html

Thanks, that fixed the issue indeed!

 Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-27 16:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-27 15:50 [Qemu-devel] Problem in pcie_pci_bridge_realize() Thomas Huth
2017-09-27 16:22 ` Aleksandr Bezzubikov
2017-09-27 16:48   ` Thomas Huth

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).