Bug 1287462

Summary: virt-viewer will core dump with -r option via ssh when destroy the guest
Product: Red Hat Enterprise Linux 6 Reporter: mxie <mxie>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.8CC: cfergeau, codong, dblechte, fidencio, juzhou, mzhan, rbalakri, tzheng, virt-bugs
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-2.0-8.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1163647 Environment:
Last Closed: 2016-05-10 21:19:13 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: 1163647, 1181288    
Bug Blocks:    

Comment 2 Fabiano FidĂȘncio 2015-12-02 07:54:37 UTC
The upstream commit that should solve this issue is:
30b7e299b09f78ace49f8802a16020b6682ecf48

Comment 4 mxie@redhat.com 2015-12-15 08:53:13 UTC
I can reproduce the bug on spice guest with builds:
virt-viewer-2.0-7.el6.x86_64

Try to verify this bug with builds:
virt-viewer-2.0-8.el6.x86_64

Steps:
Test with spice guest

1. Prepare a running spice guest on host A

# virsh dumpxml test
...
    <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
      <image compression='off'/>
    </graphics>
...
     <video>
      <model type='qxl' ram='65536' vram='65536' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>


2. On host B, use virt-viewer connect to guest on host A.
# virt-viewer -c qemu+ssh://$host_A_ip/system test -r

Result: Connect to guest on host A successfully.

3. destroy the guest on host A

# virsh destroy test
Domain test destroyed

Result: Virt-viewer window keeps on host B and showing: "Waiting for guest domain to re-start", no crash.

4. Start guest on host A again:

# virsh start test
Domain test started

Result: Virt-viewer window keeeps and reconnect to guest automatically, showing guest boot up process with no crash.


Seen above steps, move this bug from ON_QA to VERIFIED.

Comment 6 errata-xmlrpc 2016-05-10 21:19:13 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://rhn.redhat.com/errata/RHBA-2016-0832.html