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.

Bug 1170391

Summary: qemu core dump when repeadly hotplug/hotunplug serial port that transftering data
Product: Red Hat Enterprise Linux 7 Reporter: langfang <flang>
Component: qemu-kvm-rhevAssignee: pagupta
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: amit.shah, hannsj_uhl, hhuang, juzhang, ldoktor, mdeng, michen, qzhang, rbalakri, virt-bugs, virt-maint, xfu, yduan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1170042 Environment:
Last Closed: 2017-02-14 06:01:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1170042    
Bug Blocks: 1359843    

Comment 2 langfang 2014-12-11 05:58:31 UTC
No sure whether it is the same problem or not.Hotplug/hotunplug port  will hit such error: Ncat: Connection refused--->on host

Version:
# uname -r
3.10.0-216.el7.x86_64
# rpm -q qemu-kvm-rhev
qemu-kvm-rhev-2.1.2-16.el7.x86_64

Guest:

3.10.0-216.el7.x86_64


Steps:
1.Boot guest
 ...-device virtio-serial-pci,id=virtio-serial0,max_ports=3,vectors=4,bus=pci.0,addr=0x5 -chardev socket,id=channel0,path=/var/lib/libvirt/qemu/rhel58.channel0,server,nowait -chardev socket,id=channel1,path=/var/lib/libvirt/qemu/rhel58.channel1,server,nowait 

2.hotplug port
{"execute":"device_add","arguments":{"driver":"virtserialport","bus":"virtio-serial0.0","nr":"1","chardev":"channel0","name":
"org.linux-kvm.port.0","id":"port0"}}
{"return": {}}


3.Tried to transfer data-->successfully

4.hotunplug port

{"execute":"device_del","arguments":{"id":"port0"}}

5.hotplug port again
..
{"execute":"device_add","arguments":{"driver":"virtserialport","bus":"virtio-serial0.0","nr":"1","chardev":"channel0","name":
"org.linux-kvm.port.0","id":"port0"}}
{"return": {}}

6.Tried to transfer data
In guest
# cat lang.txt >/dev/vport2p1 

Host:
# nc -U /var/lib/libvirt/qemu/rhel58.channel0
Ncat: Connection refused.


My CLI:
 /usr/libexec/qemu-kvm -enable-kvm -m 8G -smp 8 -name VM -uuid `uuidgen` -nodefaults -rtc base=utc -drive file=iscsi://10.66.90.100:3260/iqn.2001-05.com.equallogic\:0-8a0906-6ca1f7d03-9f7f4a4673153e85-s2-flang-310194/0,if=none,id=drive-data-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop,serial=QEMU-DISK2 -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi1 -device scsi-hd,bus=scsi1.0,drive=drive-data-disk,id=data-disk -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:60:3f:29,addr=0x4 -monitor stdio -boot menu=on,order=d -qmp tcp:0:4447,server,nowait -spice port=8000,disable-ticketing -vga qxl -vga std -device virtio-balloon-pci,bus=pci.0,id=balloon0  -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -device virtio-serial-pci,id=virtio-serial0,max_ports=3,vectors=4,bus=pci.0,addr=0x5 -chardev socket,id=channel0,path=/var/lib/libvirt/qemu/rhel58.channel0,server,nowait -chardev socket,id=channel1,path=/var/lib/libvirt/qemu/rhel58.channel1,server,nowait

Comment 6 David Gibson 2016-04-21 04:21:00 UTC
*** Bug 1227833 has been marked as a duplicate of this bug. ***