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.
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.
https://access.redhat.com/errata/RHSA-2018:1104
Description of problem: qemu-kvm aborts abnormally with core dumped when booting up guest using both virtio-vga and VGA Version-Release number of selected component (if applicable): Host kernel: 3.10.0-771.el7.ppc64le Guest kernel: 3.10.0-771.el7.ppc64le qemu-kvm-rhev: qemu-kvm-rhev-2.10.0-4.el7 SLOF: SLOF-20170724-2.git89f519f.el7.noarch How reproducible: 100% Steps to Reproduce: 1. Boot up a guest with two VGA cards (virtio-vga and VGA) /usr/libexec/qemu-kvm \ -name yilzhang_vm \ -smp 8,sockets=2,cores=2,threads=2 \ -m 8192 \ -nodefaults \ -serial unix:/tmp/vga-path,server,nowait \ -rtc base=localtime,clock=host \ -boot menu=on \ -monitor stdio \ -qmp tcp:0:999,server,nowait \ -device nec-usb-xhci,id=xhci0 \ -device usb-kbd,id=usb-kbd0 \ -device usb-mouse,id=usb-mouse0 \ -device usb-tablet,id=usb-table0 \ \ -netdev tap,id=net0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,vhost=on \ -device virtio-net-pci,netdev=net0,id=nic0,mac=52:54:00:c3:e7:84 \ \ -device virtio-scsi-pci,id=scsi0 \ -drive file=/home/rhel75-kernel-3.10.0-771.qcow2,format=qcow2,id=drive_sysdisk,if=none,cache=none,aio=native,werror=stop,rerror=stop \ -device scsi-hd,drive=drive_sysdisk,bus=scsi0.0,id=sysdisk,bootindex=0 \ -device virtio-vga,id=vga1 -vnc :10,display=vga1 \ -device VGA,id=vga2 -vnc :11,display=vga2 Actual results: [root@ibm-p8-rhevm-18 vga]# sh two-vga-1.sh QEMU 2.10.0 monitor - type 'help' for more information (qemu) qemu-kvm: ui/console.c:1437: register_displaychangelistener: Assertion `!dcl->ds' failed. two-vga-1.sh: line 23: 67596 Aborted (core dumped) /usr/libexec/qemu-kvm -name yilzhang_vm -smp 8,sockets=2,cores=2,threads=2 -m 8192 -nodefaults -serial unix:/tmp/vga-path,server,nowait -rtc base=localtime,clock=host -boot menu=on -monitor stdio -qmp tcp:0:999,server,nowait -device nec-usb-xhci,id=xhci0 -device usb-kbd,id=usb-kbd0 -device usb-mouse,id=usb-mouse0 -device usb-tablet,id=usb-table0 -netdev tap,id=net0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,vhost=on -device virtio-net-pci,netdev=net0,id=nic0,mac=52:54:00:c3:e7:84 -device virtio-scsi-pci,id=scsi0 -drive file=/home/rhel75-kernel-3.10.0-771.qcow2,format=qcow2,id=drive_sysdisk,if=none,cache=none,aio=native,werror=stop,rerror=stop -device scsi-hd,drive=drive_sysdisk,bus=scsi0.0,id=sysdisk,bootindex=0 -device virtio-vga,id=vga1 -vnc :10,display=vga1 -device VGA,id=vga2 -vnc :11,display=vga2 Expected results: No crash, guest should boot up successfully Additional info: (gdb) bt #0 0x00003fff9076eff0 in raise () from /lib64/libc.so.6 #1 0x00003fff9077136c in abort () from /lib64/libc.so.6 #2 0x00003fff90764c44 in __assert_fail_base () from /lib64/libc.so.6 #3 0x00003fff90764d34 in __assert_fail () from /lib64/libc.so.6 #4 0x000000004f1c3760 in register_displaychangelistener (dcl=0x100186d0060) at ui/console.c:1437 #5 0x000000004f1d4ed8 in vnc_display_open (id=0x10016400698 "default", errp=0x3fffd0e02970) at ui/vnc.c:3978 #6 0x000000004f1d557c in vnc_init_func (opaque=<optimized out>, opts=<optimized out>, errp=<optimized out>) at ui/vnc.c:4064 #7 0x000000004f311574 in qemu_opts_foreach (list=<optimized out>, func=0x4f1d5530 <vnc_init_func>, opaque=0x0, errp=0x0) at util/qemu-option.c:1104 #8 0x000000004eed4da8 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4736 (gdb) bt full #0 0x00003fff9076eff0 in raise () from /lib64/libc.so.6 No symbol table info available. #1 0x00003fff9077136c in abort () from /lib64/libc.so.6 No symbol table info available. #2 0x00003fff90764c44 in __assert_fail_base () from /lib64/libc.so.6 No symbol table info available. #3 0x00003fff90764d34 in __assert_fail () from /lib64/libc.so.6 No symbol table info available. #4 0x000000004f1c3760 in register_displaychangelistener (dcl=0x100186d0060) at ui/console.c:1437 nodev = "This VM has no graphic display device." dummy = 0x0 con = <optimized out> __PRETTY_FUNCTION__ = "register_displaychangelistener" #5 0x000000004f1d4ed8 in vnc_display_open (id=0x10016400698 "default", errp=0x3fffd0e02970) at ui/vnc.c:3978 vd = 0x100186d0000 opts = 0x10016400698 saddr = 0x1001640ed00 wsaddr = 0x0 nsaddr = 1 nwsaddr = 0 share = <optimized out> device_id = <optimized out> con = 0x100164e1a40 password = <optimized out> reverse = false credid = <optimized out> sasl = false saslErr = <optimized out> acl = <optimized out> lock_key_sync = <optimized out> key_delay_ms = 10 __func__ = "vnc_display_open" #6 0x000000004f1d557c in vnc_init_func (opaque=<optimized out>, opts=<optimized out>, errp=<optimized out>) at ui/vnc.c:4064 local_err = 0x0 id = 0x10016400698 "default" __PRETTY_FUNCTION__ = "vnc_init_func" #7 0x000000004f311574 in qemu_opts_foreach (list=<optimized out>, func=0x4f1d5530 <vnc_init_func>, opaque=0x0, errp=0x0) at util/qemu-option.c:1104 loc = {kind = LOC_CMDLINE, num = 2, ptr = 0x3fffd0e03298, prev = 0x4f969300 <std_loc>} opts = 0x100164705f0 rc = 0 __PRETTY_FUNCTION__ = "qemu_opts_foreach" #8 0x000000004eed4da8 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4736 i = <optimized out> snapshot = <optimized out> linux_boot = 0 initrd_filename = <optimized out> kernel_filename = 0x0 kernel_cmdline = <optimized out> boot_order = 0x4f342380 "" boot_once = 0x0 cyls = 0 ---Type <return> to continue, or q <return> to quit--- heads = 0 secs = 0 translation = <optimized out> opts = <optimized out> machine_opts = <optimized out> hda_opts = <optimized out> icount_opts = <optimized out> accel_opts = <optimized out> olist = <optimized out> optind = 44 optarg = 0x3fffd0e0f423 ":11,display=vga2" loadvm = <optimized out> machine_class = 0x4f506888 <qemu_fw_cfg_opts> cpu_model = <optimized out> vga_model = 0x0 qtest_chrdev = <optimized out> qtest_log = <optimized out> pid_file = <optimized out> incoming = 0x0 defconfig = <optimized out> userconfig = <optimized out> nographic = <optimized out> display_type = <optimized out> display_remote = <optimized out> log_mask = <optimized out> log_file = <optimized out> trace_file = <optimized out> maxram_size = 8589934592 ram_slots = 0 vmstate_dump_file = 0x0 main_loop_err = 0x0 err = 0x0 list_data_dirs = <optimized out> bdo_queue = {sqh_first = 0x0, sqh_last = 0x3fffd0e02b88} __func__ = "main" __FUNCTION__ = "main" (gdb)