Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
qemu aborts due to the oom check triggering
Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.91.el6.x86_64
Steps to Reproduce:
win2k8 64bit guest with virtio nic and vhost enabled.
started migration right after boot.
Actual results:
qemu aborts
Expected results:
qemu continues
Additional info:
(gdb) bt
#0 0x0000003710e329b5 in raise () from /lib64/libc.so.6
#1 0x0000003710e34195 in abort () from /lib64/libc.so.6
#2 0x00000000004755e5 in oom_check (size=<value optimized out>) at qemu-malloc.c:30
#3 qemu_malloc (size=<value optimized out>) at qemu-malloc.c:59
#4 0x00000000004756b6 in qemu_mallocz (size=562949953421312) at qemu-malloc.c:75
#5 0x0000000000422f05 in vhost_dev_start (hdev=0x11e3140, vdev=0x1741140)
at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vhost.c:665
#6 0x00000000004222a5 in vhost_net_start (net=0x11e3140, dev=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vhost_net.c:131
#7 0x000000000041fa8f in virtio_net_set_status (vdev=0x1741140, status=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio-net.c:867
#8 0x00000000004206b4 in virtio_set_status (opaque=0x1240a30, addr=<value optimized out>, val=7)
at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio.h:129
#9 virtio_ioport_write (opaque=0x1240a30, addr=<value optimized out>, val=7)
at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio-pci.c:223
#10 0x000000000042a053 in kvm_handle_io (env=0x11f9560)
at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:535
#11 kvm_run (env=0x11f9560) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:975
#12 0x000000000042a239 in kvm_cpu_exec (env=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1658
#13 0x000000000042ae5f in kvm_main_loop_cpu (_env=0x11f9560)
at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1900
#14 ap_main_loop (_env=0x11f9560) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1950
#15 0x00000037116077e1 in start_thread () from /lib64/libpthread.so.0
#16 0x0000003710ee151d in clone () from /lib64/libc.so.6
(gdb) up
#1 0x0000003710e34195 in abort () from /lib64/libc.so.6
(gdb) up
#2 0x00000000004755e5 in oom_check (size=<value optimized out>) at qemu-malloc.c:30
30 abort();
(gdb) up
#3 qemu_malloc (size=<value optimized out>) at qemu-malloc.c:59
59 return oom_check(malloc(size ? size : 1));
(gdb) up
#4 0x00000000004756b6 in qemu_mallocz (size=562949953421312) at qemu-malloc.c:75
75 ptr = qemu_malloc(size);
(gdb) up
#5 0x0000000000422f05 in vhost_dev_start (hdev=0x11e3140, vdev=0x1741140)
at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vhost.c:665
665 qemu_mallocz(hdev->log_size * sizeof *hdev->log) : NULL;
(gdb) print *hdev
$1 = {client = {set_memory = 0x423650 <vhost_client_set_memory>,
sync_dirty_bitmap = 0x422860 <vhost_client_sync_dirty_bitmap>,
migration_log = 0x422b40 <vhost_client_migration_log>, list = {le_next = 0x0,
le_prev = 0xbeb550}}, control = 10, mem = 0x11ea420, vqs = 0x11e31b8, nvqs = 2,
features = 1023410176, acked_features = 0, backend_features = 0, started = false,
log_enabled = true, log = 0x0, log_size = 70368744177664}
Comment 2RHEL Program Management
2010-07-16 09:17:40 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.
** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **
Comment 4Michael S. Tsirkin
2010-07-16 11:24:38 UTC
Reproduce this bug in qemu-kvm-0.12.1.2-2.91.el6, this bug happens when do migration as windows entering into "start windows normally" stage.
Verify this bug in qemu-kvm-0.12.1.2-2.104.el6, this bug does not exist.
Change bug status to verified.
Comment 18releng-rhel@redhat.com
2010-11-10 21:26:39 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.
Description of problem: qemu aborts due to the oom check triggering Version-Release number of selected component (if applicable): qemu-kvm-0.12.1.2-2.91.el6.x86_64 Steps to Reproduce: win2k8 64bit guest with virtio nic and vhost enabled. started migration right after boot. Actual results: qemu aborts Expected results: qemu continues Additional info: (gdb) bt #0 0x0000003710e329b5 in raise () from /lib64/libc.so.6 #1 0x0000003710e34195 in abort () from /lib64/libc.so.6 #2 0x00000000004755e5 in oom_check (size=<value optimized out>) at qemu-malloc.c:30 #3 qemu_malloc (size=<value optimized out>) at qemu-malloc.c:59 #4 0x00000000004756b6 in qemu_mallocz (size=562949953421312) at qemu-malloc.c:75 #5 0x0000000000422f05 in vhost_dev_start (hdev=0x11e3140, vdev=0x1741140) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vhost.c:665 #6 0x00000000004222a5 in vhost_net_start (net=0x11e3140, dev=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vhost_net.c:131 #7 0x000000000041fa8f in virtio_net_set_status (vdev=0x1741140, status=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio-net.c:867 #8 0x00000000004206b4 in virtio_set_status (opaque=0x1240a30, addr=<value optimized out>, val=7) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio.h:129 #9 virtio_ioport_write (opaque=0x1240a30, addr=<value optimized out>, val=7) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio-pci.c:223 #10 0x000000000042a053 in kvm_handle_io (env=0x11f9560) at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:535 #11 kvm_run (env=0x11f9560) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:975 #12 0x000000000042a239 in kvm_cpu_exec (env=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1658 #13 0x000000000042ae5f in kvm_main_loop_cpu (_env=0x11f9560) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1900 #14 ap_main_loop (_env=0x11f9560) at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:1950 #15 0x00000037116077e1 in start_thread () from /lib64/libpthread.so.0 #16 0x0000003710ee151d in clone () from /lib64/libc.so.6 (gdb) up #1 0x0000003710e34195 in abort () from /lib64/libc.so.6 (gdb) up #2 0x00000000004755e5 in oom_check (size=<value optimized out>) at qemu-malloc.c:30 30 abort(); (gdb) up #3 qemu_malloc (size=<value optimized out>) at qemu-malloc.c:59 59 return oom_check(malloc(size ? size : 1)); (gdb) up #4 0x00000000004756b6 in qemu_mallocz (size=562949953421312) at qemu-malloc.c:75 75 ptr = qemu_malloc(size); (gdb) up #5 0x0000000000422f05 in vhost_dev_start (hdev=0x11e3140, vdev=0x1741140) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/vhost.c:665 665 qemu_mallocz(hdev->log_size * sizeof *hdev->log) : NULL; (gdb) print *hdev $1 = {client = {set_memory = 0x423650 <vhost_client_set_memory>, sync_dirty_bitmap = 0x422860 <vhost_client_sync_dirty_bitmap>, migration_log = 0x422b40 <vhost_client_migration_log>, list = {le_next = 0x0, le_prev = 0xbeb550}}, control = 10, mem = 0x11ea420, vqs = 0x11e31b8, nvqs = 2, features = 1023410176, acked_features = 0, backend_features = 0, started = false, log_enabled = true, log = 0x0, log_size = 70368744177664}