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:
Version-Release number of selected component (if applicable):
# uname -r
2.6.32-128.el6.x86_64
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.156.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1.start VM with -m 4G -device virtio-balloon-pci,id=balloon0
2.after guest booing up ,in the qemu-monitor (qemu)balloon 0
Actual results:
qemu-kvm quit with core dump
Expected results:
no core dump occurs ,better prompts it is not allowed in qemu-monitor
Additional info:
(gdb)bt
#0 monitor_resume (mon=0x0) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4955
#1 0x0000000000411927 in user_monitor_complete (opaque=0x2543750,
ret_data=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:622
#2 0x0000000000412e25 in do_balloon (mon=<value optimized out>,
params=0x310dee0, cb=0x411910 <user_monitor_complete>, opaque=0x2543750)
at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:2684
#3 0x0000000000418ffa in user_async_cmd_handler (mon=0x13fc280,
cmdline=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:651
#4 handle_user_command (mon=0x13fc280, cmdline=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4384
#5 0x000000000041907a in monitor_command_cb (mon=0x13fc280,
cmdline=<value optimized out>, opaque=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4941
#6 0x00000000004a49ab in readline_handle_byte (rs=0x28560f0,
ch=<value optimized out>) at readline.c:369
#7 0x000000000041929c in monitor_read (opaque=<value optimized out>,
buf=0x7fffe79d9200 "\r", size=1)
at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4927
#8 0x00000000004bd5cb in qemu_chr_read (opaque=0x11d9790) at qemu-char.c:171
#9 fd_chr_read (opaque=0x11d9790) at qemu-char.c:661
#10 0x000000000040ba2f in main_loop_wait (timeout=1000)
at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4428
#11 0x000000000042b4fa in kvm_main_loop ()
at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2164
#12 0x000000000040ef35 in main_loop (argc=<value optimized out>,
argv=<value optimized out>, envp=<value optimized out>)
at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4638
#13 main (argc=<value optimized out>, argv=<value optimized out>,
envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6843
Comment 2RHEL Program Management
2011-04-07 07:43:43 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
(In reply to comment #4)
> Hello Mike,
>
> I have two questions:
> - who is the guest,
RHEL5.7 64 bit guest
I think all the linux guest with -device virtio-balloon-pci,id=balloon0 will hit the issue
> - what is the entire command line?
/usr/libexec/qemu-kvm -M rhel6.1.0 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name RHEL5u7 -uuid d1356948-d6b2-c328-75c0-5746606f5f34 -rtc base=utc -boot c -drive file=/home/RHEL-Server-5.7-64-virtio.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,aio=threads -device virtio-blk-pci,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:62:64:55 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 0:0 -vga cirrus -device virtio-balloon-pci,id=balloon0 -monitor stdio
>
> Best regards,
> Vadim.
(In reply to comment #5)
> (In reply to comment #4)
> > Hello Mike,
> >
> > I have two questions:
> > - who is the guest,
> RHEL5.7 64 bit guest
> I think all the linux guest with -device virtio-balloon-pci,id=balloon0 will
> hit the issue
>
Will check it.
Thank you,
Vadim.
> 2. (qemu) balloon 0
>
> actual results:
> on qemu-kvm-0.12.1.2-2.159.el6.x86_64
> (qemu) balloon 0
> *** glibc detected *** /usr/libexec/qemu-kvm: corrupted double-linked list:
> 0x000000000312f0b0 ***
>
> on qemu-kvm-0.12.1.2-2.182.el6.x86_64
> (qemu) balloon 0
> Parameter 'target' expects a size and guest work well
>
> Based on above ,this issue has been fixed.
Also tried "negative number" and supper max number.
result:
Parameter 'target' expects a size
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Invalid balloon values, like 0, used to crash QEMU. The fix is to validate input. After the fix, QEMU doesn't crash on invalid input.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHSA-2011-1531.html
Description of problem: Version-Release number of selected component (if applicable): # uname -r 2.6.32-128.el6.x86_64 # rpm -q qemu-kvm qemu-kvm-0.12.1.2-2.156.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.start VM with -m 4G -device virtio-balloon-pci,id=balloon0 2.after guest booing up ,in the qemu-monitor (qemu)balloon 0 Actual results: qemu-kvm quit with core dump Expected results: no core dump occurs ,better prompts it is not allowed in qemu-monitor Additional info: (gdb)bt #0 monitor_resume (mon=0x0) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4955 #1 0x0000000000411927 in user_monitor_complete (opaque=0x2543750, ret_data=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:622 #2 0x0000000000412e25 in do_balloon (mon=<value optimized out>, params=0x310dee0, cb=0x411910 <user_monitor_complete>, opaque=0x2543750) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:2684 #3 0x0000000000418ffa in user_async_cmd_handler (mon=0x13fc280, cmdline=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:651 #4 handle_user_command (mon=0x13fc280, cmdline=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4384 #5 0x000000000041907a in monitor_command_cb (mon=0x13fc280, cmdline=<value optimized out>, opaque=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4941 #6 0x00000000004a49ab in readline_handle_byte (rs=0x28560f0, ch=<value optimized out>) at readline.c:369 #7 0x000000000041929c in monitor_read (opaque=<value optimized out>, buf=0x7fffe79d9200 "\r", size=1) at /usr/src/debug/qemu-kvm-0.12.1.2/monitor.c:4927 #8 0x00000000004bd5cb in qemu_chr_read (opaque=0x11d9790) at qemu-char.c:171 #9 fd_chr_read (opaque=0x11d9790) at qemu-char.c:661 #10 0x000000000040ba2f in main_loop_wait (timeout=1000) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4428 #11 0x000000000042b4fa in kvm_main_loop () at /usr/src/debug/qemu-kvm-0.12.1.2/qemu-kvm.c:2164 #12 0x000000000040ef35 in main_loop (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4638 #13 main (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6843