RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 837943 - Assertion `c->entries[i].ref == 0' failed, also random segfaults, when qemu calls bdrv_close_all
Summary: Assertion `c->entries[i].ref == 0' failed, also random segfaults, when qemu c...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Kevin Wolf
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 836913
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-05 21:20 UTC by Richard W.M. Jones
Modified: 2014-06-18 03:17 UTC (History)
14 users (show)

Fixed In Version: 1.1
Doc Type: Bug Fix
Doc Text:
Clone Of: 836913
Environment:
Last Closed: 2014-06-13 11:14:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2012-07-05 21:20:53 UTC
+++ This bug was initially created as a clone of Bug #836913 +++

To read a long description of the bug(s) involved:
https://www.redhat.com/archives/libguestfs/2012-July/msg00020.html

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
$ ls
core.23671  test.img

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

Comment 1 Richard W.M. Jones 2012-07-08 10:16:40 UTC
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?

Comment 5 Paolo Bonzini 2012-10-25 12:08:59 UTC
Fixed in upstream commit 7094f12f868fc1b75b105bcc676e15964dab77af, which is part of QEMU 1.1.

Comment 7 Shaolong Hu 2014-01-17 09:07:07 UTC
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.
 [code=1 domain=10]

Comment 8 Ludek Smid 2014-06-13 11:14:27 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.