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 1008844

Summary: chardev file could not got the message which is input via the related tty
Product: Red Hat Enterprise Linux 6 Reporter: xhan
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5CC: acathrow, bsarathy, chayang, juzhang, mdeng, michen, mkenneth, qzhang, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-18 08:01:35 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:

Description xhan 2013-09-17 07:31:34 UTC
Description of problem:

chardev file could not got the message which is input via the related tty.


Version-Release number of selected component (if applicable):
kernel 2.6.32-418.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.402.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
1. start vm
qemu-kvm \
    -name 'virt-tests-vm1' \
    -nodefaults \
    -monitor stdio \
    -qmp tcp:0:5678,server,nowait \
    -device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 \
    -device virtio-scsi-pci,id=virtio_scsi_pci0,addr=0x5 \
    -drive file='RHEL-Server-6.5-64-virtio.qcow2',if=none,id=virtio-scsi0-id0,media=disk,cache=none,snapshot=off,format=qcow2,aio=native \
    -device scsi-hd,drive=virtio-scsi0-id0 \
    -device virtio-net-pci,netdev=id9GewZ9,mac='9a:a4:a5:a6:a7:a8',bus=pci.0,addr=0x3,id='idYwXJ2R' \
    -netdev tap,id=id9GewZ9,vhost=on,script=qemu-ifup-switch \
    -m 4096 \
    -smp 2,maxcpus=2,cores=1,threads=1,sockets=2 \
    -cpu 'Opteron_G3' \
    -M rhel6.5.0 \
    -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
    -spice port=3000,password=123456,addr=0,image-compression=auto_glz,zlib-glz-wan-compression=auto,streaming-video=all,agent-mouse=on,playback-compression=on,ipv4 \
    -vga qxl \
    -global qxl-vga.vram_size=33554432 \
    -rtc base=utc,clock=host,driftfix=slew  \
    -boot order=cdn,once=d,menu=off   \
    -no-kvm-pit-reinjection \
    -no-shutdown \
    -enable-kvm
 
2. connect qmp, and add chardev with file type
{'execute': 'qmp_capabilities'}
{"execute": "chardev-add", "arguments": {"id": "chardev-file", "backend": {"data": {"out": "/tmp/chardev-file"}, "type": "file"}}}

{"execute": "device_add", "arguments": {"driver": "pci-serial", "id": "test-serial", "chardev": "chardev-file", "addr": "18.0"}}

3. find the related the tty 
 (guest)ls /sys/bus/pci/devices/*18.0/tty
         ttyS0
4. write message into the tty
  echo "hello world" > /dev/ttyS0

5. remove the chardev via qmp
{"execute": "device_del", "arguments": {"id": "test-serial"}}

6. check the chardev-file at the host
  cat /tmp/chardev-file


Actual results:
There is no the message after step6. 

Occasionally, there is some message like below.
gnome-screensav[2173]: segfault at 8 ip 00000000004101e9 sp 00007fff0f314e30 error 4 in gnome-screensaver[400000+26000]


Expected results:
should ouput the message "hello world"

Additional info:

Comment 2 Gerd Hoffmann 2013-09-18 08:01:35 UTC

*** This bug has been marked as a duplicate of bug 1001945 ***