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 825633 - The connection "virt-viewer $guest" will be disconnected with an error "Segmentation fault (core dumped)"
Summary: The connection "virt-viewer $guest" will be disconnected with an error "Segme...
Keywords:
Status: CLOSED DUPLICATE of bug 823874
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: spice-gtk
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Christophe Fergeau
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-28 05:52 UTC by Huming Jiang
Modified: 2012-08-06 08:35 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-06 08:35:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
virt-viewer $guest --debug --spice-debug (29.68 KB, text/plain)
2012-05-28 05:55 UTC, Huming Jiang
no flags Details

Description Huming Jiang 2012-05-28 05:52:24 UTC
Description of problem:
If a spice guest has graphics password, after guest migration, The connection "virt-viewer $guest" will be disconnected with an error "Segmentation fault (core dumped)".
Version-Release number of selected component (if applicable):
kernel-2.6.32-272.el6.x86_64
virt-viewer-0.5.2-9.el6.x86_64
python-virtinst-0.600.0-8.el6.noarch
virt-manager-0.9.0-14.el6.x86_64
libvirt-0.9.10-20.el6.x86_64
qemu-kvm-0.12.1.2-2.294.el6.x86_64

How reproducible:
always

Steps to Reproduce:

1.Configure migration environment

2.Add a remote-connection to virt-manager.

3.Use virt-manager to create a spice guest with graphics password. Start the guest.

4.virt-viewer $guest --debug --spice-debug

5.Right click the running guest on virt-manager, click "Migrate" and migrate it to the remote-connection.

6.After migration is finished,the output of "virt-viewer $guest --debug --spice-debug" is:
...
(virt-viewer:16632): GSpice-DEBUG: spice-session.c:1181 migration channels left:6 (in migration:6)
** (virt-viewer:16632): DEBUG: Dispatch handler 7 1 0xc1b1f0
** (virt-viewer:16632): DEBUG: Update timeout 0xc1ac90 1 0
** (virt-viewer:16632): DEBUG: Dispatch timeout 0xc1ac90 0x3cde7216c0 1 0xc1b040
** (virt-viewer:16632): DEBUG: Update timeout 0xc1ac90 1 -1
** (virt-viewer:16632): DEBUG: Dispatch handler 7 1 0xc1b1f0
** (virt-viewer:16632): DEBUG: Update timeout 0xc1ac90 1 0
** (virt-viewer:16632): DEBUG: Dispatch timeout 0xc1ac90 0x3cde7216c0 1 0xc1b040
** (virt-viewer:16632): DEBUG: Update timeout 0xc1ac90 1 -1
(virt-viewer:16632): GSpice-DEBUG: channel-main.c:1664 migrate end
(virt-viewer:16632): GSpice-DEBUG: spice-channel.c:2467 test cap 0 in 0x1: yes
(virt-viewer:16632): GSpice-DEBUG: channel-display.c:733 keeping exisiting primary surface, migration or reset
(virt-viewer:16632): GSpice-DEBUG: spice-session.c:1258 migrating channel id:0 type:1
Segmentation fault (core dumped)


Actual results:
See above. 

Expected results:
The connection of "virt-viewer $guest" should be connected with no error.

Additional info:
If spice guest without graphics password, the connection of "virt-viewer $guest --debug" will be still connected.

Comment 1 Huming Jiang 2012-05-28 05:55:07 UTC
Created attachment 587154 [details]
virt-viewer $guest --debug --spice-debug

Comment 3 Alex Jia 2012-05-29 06:59:21 UTC
I just check this issue, IMHO, it should be a gtk/spice relevant bug not virt-viewer due to use-after-free:

==19650== Invalid read of size 8
==19650==    at 0x3CDFC16493: spice_msg_out_new (spice-channel.c:604)
==19650==    by 0x3CDFC1469F: spice_session_migrate_end (spice-session.c:1347)
==19650==    by 0x3CDFC23EB3: migrate_delayed (channel-main.c:1654)
==19650==    by 0x3CC6238F0D: g_main_context_dispatch (gmain.c:1960)
==19650==    by 0x3CC623C937: g_main_context_iterate (gmain.c:2591)
==19650==    by 0x3CC623CD54: g_main_loop_run (gmain.c:2799)
==19650==    by 0x3CCD34C306: gtk_main (in /usr/lib64/libgtk-x11-2.0.so.0.1800.9)
==19650==    by 0x41CB34: main (virt-viewer-main.c:141)
==19650==  Address 0x18 is not stack'd, malloc'd or (recently) free'd

Virt-viewer just call gtk_main() then other work are done by subsequent function call, I guess the subsequent function hit use-after-free issue.
 

Alex

Comment 5 RHEL Program Management 2012-07-10 06:58:29 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 6 RHEL Program Management 2012-07-11 02:01:51 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 7 Christophe Fergeau 2012-08-03 14:47:13 UTC
The backtrace is similar to bug #823874 which was fixed in spice-gtk-0.11-11.el6, which version of spice-gtk had this been tested with?

Comment 8 David Blechter 2012-08-03 16:50:57 UTC
Huming,
can you please provide more details on the components and their versions, including spice-gtk.
thanks

Comment 9 Geyang Kong 2012-08-06 07:02:27 UTC
The tested version of spice-gtk is spice-gtk-0.11-9.el6.x86_64. I've tried this bug with spice-gtk-0.11-11.el6.x86_64. This issues has gone with spice-gtk-0.11-11.el6

Comment 10 Christophe Fergeau 2012-08-06 08:35:33 UTC
I'll mark this bug as a duplicate of #823874 then. Thanks for the additional info!

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


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