Bug 1135808

Summary: [abrt] virt-manager: g_socket_details_from_fd(): python2.7 killed by SIGTRAP
Product: [Fedora] Fedora Reporter: Micah Shennum <jimtahu>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: berrange, crobinso, dgilbert, error, jirinek, Larry, mgoldman, nixbugz, sgallagh, shahnavaz, stuart, virt-maint
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/2673ad3198f27fa7c4dac94f1b5dab81aa093140
Whiteboard: abrt_hash:2cad46b9dd8e339d674d9d3747c29611c0ab4d7f
Fixed In Version: virt-manager-1.1.0-7.git6dbe19bd8.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-21 18:56:47 UTC Type: ---
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: 1043131    
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Micah Shennum 2014-08-31 20:52:30 UTC
Description of problem:
I shut down a remote VM. My client crashed when the VM powered off, I was able to start the client and reconnect to the host.

Version-Release number of selected component:
virt-manager-1.0.1-3.fc20

Additional info:
reporter:       libreport-2.2.3
backtrace_rating: 4
cmdline:        /usr/bin/python2 -tt /usr/share/virt-manager/virt-manager
crash_function: g_socket_details_from_fd
executable:     /usr/bin/python2.7
kernel:         3.15.10-200.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #2 g_socket_details_from_fd at gsocket.c:368
 #3 g_socket_constructed at gsocket.c:586
 #4 g_object_new_internal at gobject.c:1785
 #5 g_object_new_valist at gobject.c:2002
 #6 g_initable_new_valist at ginitable.c:227
 #7 g_initable_new at ginitable.c:149
 #8 g_socket_new_from_fd at gsocket.c:1072
 #9 spice_channel_coroutine at spice-channel.c:2231
 #10 coroutine_trampoline at coroutine_ucontext.c:63
 #11 continuation_trampoline at continuation.c:55

Comment 1 Micah Shennum 2014-08-31 20:52:32 UTC
Created attachment 933177 [details]
File: backtrace

Comment 2 Micah Shennum 2014-08-31 20:52:33 UTC
Created attachment 933178 [details]
File: cgroup

Comment 3 Micah Shennum 2014-08-31 20:52:34 UTC
Created attachment 933179 [details]
File: core_backtrace

Comment 4 Micah Shennum 2014-08-31 20:52:35 UTC
Created attachment 933180 [details]
File: dso_list

Comment 5 Micah Shennum 2014-08-31 20:52:35 UTC
Created attachment 933181 [details]
File: environ

Comment 6 Micah Shennum 2014-08-31 20:52:36 UTC
Created attachment 933182 [details]
File: limits

Comment 7 Micah Shennum 2014-08-31 20:52:37 UTC
Created attachment 933183 [details]
File: maps

Comment 8 Micah Shennum 2014-08-31 20:52:38 UTC
Created attachment 933184 [details]
File: open_fds

Comment 9 Micah Shennum 2014-08-31 20:52:39 UTC
Created attachment 933185 [details]
File: proc_pid_status

Comment 10 Micah Shennum 2014-08-31 20:52:39 UTC
Created attachment 933186 [details]
File: var_log_messages

Comment 11 Micah Shennum 2014-08-31 20:56:54 UTC
Probably worth mentioning that the remote host is running gentoo libvirtd version 1.2.6

Comment 12 Cole Robinson 2014-09-20 23:48:26 UTC

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

Comment 13 Cole Robinson 2015-04-12 02:42:06 UTC
This bug seems to be the winner, faf has 300 hits for it. So reopening this

Comment 14 Cole Robinson 2015-04-12 02:42:23 UTC
*** Bug 1135546 has been marked as a duplicate of this bug. ***

Comment 15 Cole Robinson 2015-04-12 02:43:29 UTC
*** Bug 1201016 has been marked as a duplicate of this bug. ***

Comment 16 Cole Robinson 2015-04-12 02:54:08 UTC
Yeah so this issue isn't fixed in fedora yet. I think upstream is fixed now:

commit e2cdfd651ca0511e078c5ffd4da3644909767671
Author: Cole Robinson <crobinso>
Date:   Sat Apr 11 22:10:46 2015 -0400

    sshtunnels: Don't use python socket for FD we pass to spice

Previously we used python's socket library for all our FD handling when opening an ssh tunnel. However these higher level socket objects close the backing fd when they are garbage collected, and they were going out of scope right before we tear down the spice widget.

That commit fixes things to pass a non-socket fd to spice. It won't apply as-is to f21 and f20 but it shouldn't be too hard to backport something similar.

Comment 17 Fedora Update System 2015-04-13 22:44:30 UTC
virt-manager-1.1.0-7.git6dbe19bd8.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/virt-manager-1.1.0-7.git6dbe19bd8.fc22

Comment 18 Fedora Update System 2015-04-21 18:56:47 UTC
virt-manager-1.1.0-7.git6dbe19bd8.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.