Red Hat Bugzilla – Bug 616703
qemu-kvm core dump with virtio-serial-pci max-port greater than 31
Last modified: 2011-05-19 08:46:37 EDT
Description of problem: qemu-kvm got core-dump with virtio-serial-pci max-port greater than 31. Version-Release number of selected component (if applicable): qemu-kvm-0.12.1.2-2.91.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. Boot VM with "-device virtio-serial-pci,id=virtio-serial0,max_ports=32,vectors=4,bus=pci.0" Actual results: Aborted (core dumped) Expected results: no core dumps. qemu-kvm should prompt for maximum supported ports, then exit normally. Additional info: (gdb) bt #0 0x00000033da4329b5 in raise () from /lib64/libc.so.6 #1 0x00000033da434195 in abort () from /lib64/libc.so.6 #2 0x0000000000577b06 in virtio_add_queue (vdev=0x4c43, queue_size=19523, handle_output=0x6) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio.c:597 #3 0x0000000000420f78 in virtio_serial_init (dev=<value optimized out>, max_nr_ports=36) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio-serial-bus.c:772 #4 0x0000000000420d5b in virtio_serial_init_pci (pci_dev=0x12608d0) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/virtio-pci.c:616 #5 0x0000000000419663 in pci_qdev_init (qdev=0x12608d0, base=0x844bd0) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/pci.c:1486 #6 0x00000000004c04b8 in qdev_init (dev=0x12608d0) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:275 #7 0x00000000004c0839 in qdev_device_add (opts=0x11adea0) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:250 #8 0x0000000000408ec9 in device_init_func (opts=<value optimized out>, opaque=<value optimized out>) at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:4784 #9 0x000000000047588a in qemu_opts_foreach (list=<value optimized out>, func=0x408ec0 <device_init_func>, opaque=0x0, abort_on_failure=<value optimized out>) at qemu-option.c:903 #10 0x000000000040d850 in 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:6238
This issue has been proposed when we are only considering blocker issues in 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. **
Thanks, fix submitted upstream. Not a blocker for 6.0 so moving to 6.1.
Verified in qemu-kvm-0.12.1.2-2.120.el6.x86_64, this bug fixed. The following note display when boot up with max_ports=32: qemu-kvm: -device virtio-serial-pci,id=virtio-serial0,max_ports=32,bus=pci.0,addr=0x4: maximum ports supported: 31 qemu-kvm: -device virtio-serial-pci,id=virtio-serial0,max_ports=32,bus=pci.0,addr=0x4: Device 'virtio-serial-pci' could not be initialized
move to verified based on comment#8
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0534.html