Bug 1926691
Summary: | virt-viewer will core dump with -r and -d options together via ssh when destroying the vnc vm | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | zhoujunqin <juzhou> |
Component: | virt-viewer | Assignee: | Default Assignee for SPICE Bugs <rh-spice-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.4 | CC: | berrange, mdean, mxie, tyan, tzheng, uril, virt-maint, xiaodwan |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | virt-viewer-9.0-10.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 17:48:12 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: | |||
Bug Blocks: | 1948357 |
Description
zhoujunqin
2021-02-09 09:40:57 UTC
Hi, I believe that the root cause is the same as for bz#1911224, so I'm assigning this one to myself too. It's reproducible without ssh. Connection via vnc on localhost just with the --reconnect option also segfaults. (fix waiting for review: https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/61) Should be fixed by: https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/61 I can reproduce this bug with the package: virt-viewer-9.0-9.el8.x86_64 Then try to verify this bug with a new build: virt-viewer-9.0-10.el8.x86_64 Steps: 1. Prepare a running vnc vm on host A, which listens to all public network interfaces. ... # virsh dumpxml win10 <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'> <listen type='address' address='0.0.0.0'/> </graphics> ... 2. On host B, use virt-viewer to connect to the vm on host A with -r and -d options together. # virt-viewer -c qemu+ssh://$host_A_ip/system win10 -r -d root@$host_A's password: Result: After inputting the password for one time, connecting to vm with vnc graphics on host A successfully. 3. Destroy the guest on host A # virsh destroy vnc Domain vnc destroyed Test result: virt-viewer keeps connection with vm and displays "Waiting for the guest domain to re-start". And after start vm again, virt-viewer shows the console of vm without error. So I think the bug issue has been fixed, thanks. Verify this bug with packages: virt-viewer-9.0-10.el8.x86_64 libvirt-6.0.0-35.module+el8.4.0+10230+7a9b21e4.x86_64 qemu-kvm-4.2.0-48.module+el8.4.0+10368+630e803b.x86_64 Steps: 1. Prepare a running vnc vm on host A, which listens to all public network interfaces. ... # virsh dumpxml vnc <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'> <listen type='address' address='0.0.0.0'/> </graphics> ... 2. On host B, use virt-viewer to connect to the vm on host A with -r and -d options together. # virt-viewer -c qemu+ssh://$host_A_ip/system win10 -r -d root@$host_A's password: Result: After inputting the password for one time, connecting to vm with vnc graphics on host A successfully. 3. Destroy the guest on host A # virsh destroy vnc Domain vnc destroyed Test result: virt-viewer keeps connection with vm and displays "Waiting for the guest domain to re-start". And after start vm again, virt-viewer shows the console of vm without error. So I move this bug from ON_QA to VERIFIED status, thanks. 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 (virt-viewer bug fix and enhancement update), 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/RHBA-2021:4165 |