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.
Bug 1455074 - qemu core dump when continuouly hotplug/unplug virtserialport and virito-serial-pci in a loop
Summary: qemu core dump when continuouly hotplug/unplug virtserialport and virito-seri...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: pagupta
QA Contact: Sitong Liu
URL:
Whiteboard:
Depends On:
Blocks: 1469590 1473046
TreeView+ depends on / blocked
 
Reported: 2017-05-24 08:42 UTC by Peixiu Hou
Modified: 2018-04-11 00:25 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-11 00:23:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1104 0 None None None 2018-04-11 00:25:33 UTC

Description Peixiu Hou 2017-05-24 08:42:12 UTC
Description of problem:
qemu core dump when continuouly hotplug/unplug virtserialport and virito-serial-pci in a loop

Version-Release number of selected component (if applicable):
kernel-3.10.0-666.el7.x86_64
qemu-kvm-rhev-2.9.0-6.el7.x86_64
virtio-win-prewhql-137

How reproducible:
100%

Steps to Reproduce:
1.Start a VM:
/usr/libexec/qemu-kvm \
-name win2008 \
-enable-kvm -m 3G -smp 4 -cpu SandyBridge -uuid ea78071a-f6e4-4347-8077-9cb9f7953a84 \
-nodefconfig --nodefaults -boot order=cd,menu=on \
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=isa_serial0 -device usb-tablet,id=input0 \
-drive file=2008-32.raw,if=none,id=drive-ide0-0-1,format=raw,serial=mike_cao,cache=none -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 \
-drive file=/home/function_7.4/balloon/en_windows_server_2008_datacenter_enterprise_standard_sp2_x86_dvd_342333.iso,media=cdrom,id=cdrom,if=none -device ide-drive,drive=cdrom,bootindex=1 \
-netdev tap,id=hostnet0,vhost=on,vhostforce=off \
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:83:66:77:88:66,bus=pci.0,addr=0x3,status=on \
-vnc 0.0.0.0:1 -vga std -monitor stdio -qmp tcp:0:4446,server,nowait \
-cdrom /home/virtio-win-prewhql-137.iso \
-device virtio-serial-pci,id=virtio-serial0,max_ports=511 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm1,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=com.redhat.rhevm.vdsm2,bus=virtio-serial0.0,id=port2

2. In the host, continuous hotplug/unplug virtserialport and virito-serial-pci in a loop. the loop script as follows:
#!/bin/bash
# some simply scripts for balloon device hotplug/unplug in a loop
let i=0
exec 3<>/dev/tcp/localhost/4446 #note modify this to qmp port
echo -e "{ 'execute': 'qmp_capabilities' }" >&3
read response <&3
echo $response
while [ $i -lt 100 ]
do
echo -e "{ 'execute': 'device_del', 'arguments': {'id': 'port1' }}">&3 ;
sleep 3 ;
read response <&3 ;
echo "$i: $response"
echo -e "{ 'execute': 'device_del', 'arguments': {'id': 'port2' }}">&3 ;
sleep 3 ;
read response <&3 ;
echo "$i: $response"
echo -e "{'execute':'device_del','arguments':{'id':'virtio-serial0'}}">&3;
sleep 3 ;
read response <&3 ;
echo "$i: $response"
echo -e "{'execute':'device_add','arguments':{'driver':'virtio-serial-pci','id':'virtio-serial0','max_ports':511}}">&3;
sleep 3;
read response <&3;
echo "$i: $response"
echo -e "{'execute':'device_add','arguments':{'driver':'virtserialport','chardev':'channel1','name':'com.redhat.rhevm.vdsm1','bus':'virtio-serial0.0','id':'port1'}}">&3 ;
sleep 3 ;
read response <&3;
echo "$i: $response"
echo -e "{'execute':'device_add','arguments':{'driver':'virtserialport','chardev':'channel2','name':'com.redhat.rhevm.vdsm2','bus':'virtio-serial0.0','id':'port2'}}">&3 ;
sleep 3 ;
read response <&3
echo "$i: $response"
let i=$i+1
done

3. Check the host qemu monitor.

Actual results:
core dump

Expected results:
Pass

Additional info:
1. Reproduced this bug with qemu-kvm-rhev-2.9.0-6 +virtio-win-prewhql-126.
2. Cannot reproduce this bug with qemu-kvm-rhev-2.8.0-6 +virtio-win-prewhql-137.

Comment 3 lijin 2017-05-26 03:09:57 UTC
add regression keyword according to comment#0

Comment 5 pagupta 2017-10-11 06:21:34 UTC
Hello Peixiu Hou,

I see you tested with qemu-kvm-rhev-2.9.0-6. Can you please try to reproduce this with latest qemu-kvm-rhev or/& qemu-kvm-rhev version >= rhev-2.9.0-10.el7.

There is a fix for verio-serial issue went in qemu-kvm-rhev-2.9.0-10.el7.

Thanks,
Pankaj

Comment 6 Peixiu Hou 2017-10-24 08:20:16 UTC
Hi Pankaj,

Sorry for late reply, I tired to test this case with follows version:

kernel-3.10.0-691.el7.x86_64
virtio-win-prewhql-137
seabios-1.10.2-3.el7.x86_64

1. Reproduced this bug with qemu-kvm-rhev-2.9.0-5.el7.x86_64. 
2. Cannot reproduce this bug with qemu-kvm-rhev-2.9.0-14.el7.x86_64. 
3. Cannot reproduce this bug with the latest qemu-kvm-rhev-2.10.0-3.el7.x86_64.

According to above, this bug is fixed now~

Thanks a lot
Peixiu

Comment 7 pagupta 2017-10-30 08:56:06 UTC
(In reply to Peixiu Hou from comment #6)
> Hi Pankaj,
> 
> Sorry for late reply, I tired to test this case with follows version:
> 
> kernel-3.10.0-691.el7.x86_64
> virtio-win-prewhql-137
> seabios-1.10.2-3.el7.x86_64
> 
> 1. Reproduced this bug with qemu-kvm-rhev-2.9.0-5.el7.x86_64. 
> 2. Cannot reproduce this bug with qemu-kvm-rhev-2.9.0-14.el7.x86_64. 
> 3. Cannot reproduce this bug with the latest
> qemu-kvm-rhev-2.10.0-3.el7.x86_64.
> 
> According to above, this bug is fixed now~
> 
> Thanks a lot
> Peixiu

Thanks for the testing.

Pankaj

Comment 9 errata-xmlrpc 2018-04-11 00:23:04 UTC
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


Note You need to log in before you can comment on or make changes to this bug.