Red Hat Bugzilla – Bug 837943
Assertion `c->entries[i].ref == 0' failed, also random segfaults, when qemu calls bdrv_close_all
Last modified: 2014-06-17 23:17:14 EDT
+++ This bug was initially created as a clone of Bug #836913 +++
To read a long description of the bug(s) involved:
Here is a simple reproducer:
$ cd /tmp
$ ulimit -Hc unlimited
$ ulimit -Sc unlimited
$ rm -f test.img
$ qemu-img create -f qcow2 test.img 100M
$ guestfish -a test.img run : part-disk /dev/sda gpt : copy-device-to-device /dev/zero /dev/sda1 size:98M
The core file isn't produced every time, but it's produced
pretty often, maybe 1 in 3 runs. Simply repeat the qemu-img +
guestfish commands until it happens.
To get full debug information about what libguestfs is doing
add the -v and/or -x options to guestfish. But basically it
appears to happen when we send SIGTERM to qemu.
--- Additional comment from firstname.lastname@example.org on 2012-07-04 11:04:03 EDT ---
The underlying issue is fixed in qemu-kvm >= 1.1.0
which is being rolled out to Fedora Rawhide today.
This would be fixed if qemu-kvm 1.1.0 went into RHEL 7.
I'm guessing (hoping perhaps?!?) that we'll try to put the
most recent qemu into RHEL 7 as late as we can get away with?
Fixed in upstream commit 7094f12f868fc1b75b105bcc676e15964dab77af, which is part of QEMU 1.1.
Verified on qemu-kvm-rhev-1.5.3-31.el7.x86_64:
[root@localhost tmp]# guestfish -a test.img run : part-disk /dev/sda gpt : copy-device-to-device /dev/zero /dev/sda1 size:98M
libguestfs: error: could not create appliance through libvirt: internal error: early end of file from monitor: possible problem:
qemu-kvm: /builddir/build/BUILD/qemu-1.5.3/hw/i386/acpi-build.c:135: acpi_get_pm_info: Assertion `obj' failed.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.