Red Hat Bugzilla – Bug 1456983
Character device regression due to missing patch
Last modified: 2017-08-01 13:49:19 EDT
Description of problem: Copying long test using spice cause a regressions with following assert qemu-kvm: spice-qemu-char.c:173: spice_chr_add_watch: Assertion `cond == G_IO_OUT' failed. In release 138 (commit f8d524a0f6ebd4d15eb8ba6639f428526b36e064 in rhel-7.4 branch, file kvm-serial-poll-the-serial-console-with-G_IO_HUP.patch) the patch e02bc6de30c44fd668dc0d6e1cd1804f2eed3ed3 was backported without the regression fix f7a8beb5e6a13dc924895244777d9ef08b23b367; this cause the issue. Version-Release number of selected component (if applicable): qemu-kvm-1.5.3-139.el7.x86_64 How reproducible: The bug was reproduced by Swapna Krishna using internal smoketest suite. Steps to Reproduce: The smoketest case is copying large text from clipboard to file. Actual results: Qemu crashes with the wrong assert. Expected results: Everything works.
Setting 7.2.z and 7.3.z flags because the z-stream releases are also affected.
Fix included in qemu-kvm-1.5.3-140.el7
Before, QE has reproduced this bug as https://bugzilla.redhat.com/show_bug.cgi?id=1452332#c10. Verified this bug with qemu-kvm-1.5.3-140.el7.x86_64 & 3.10.0-675.el7.x86_64. steps: 1.Boot 7.4 guest. /usr/libexec/qemu-kvm -name 'avocado-vt-vm1' -sandbox off -machine pc -nodefaults -vga cirrus -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/jinzhao/rhel74.qcow2 -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=1,bus=pci.0,addr=0x3 -device virtio-net-pci,mac=9a:cf:d0:d1:d2:d3,id=id7Mhop2,vectors=4,netdev=idR2dWcT,bus=pci.0,addr=0x4 -netdev tap,id=idR2dWcT,vhost=on -m 4096 -cpu 'Opteron_G5',+kvm_pv_unhalt -rtc base=utc,clock=host,driftfix=slew -boot order=cdn,once=d,menu=off,strict=off -no-shutdown -enable-kvm -device virtio-serial -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -spice port=3000,disable-ticketing -smp 6 -m 4G -device virtio-balloon-pci,id=balloon0 -k en-us -usb -device usb-tablet,id=tablet0 -device intel-hda,id=sound0 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -monitor stdio 1=2.create text file via small script in guest #while true;do echo "copy text testing copy text testing copy text testing">>copy-test;done 2.copy paste text(8M size) from guest to host via spice result: guest works well So, set this bug as verified.
The z-stream clone is for the fixes for customer Bug 1451470 (see https://bugzilla.redhat.com/show_bug.cgi?id=1451470#c51 for details)
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-2017:1856