Bug 1339120

Summary: [abrt] virt-manager: compare_directory(): python2.7 killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: gtk3Assignee: Matthias Clasen <mclasen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: berrange, cosimo.cecchi, crobinso, mclasen, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/acde99e1e8fbb1953cdbaaa53e07b0cb20e505e4
Whiteboard: abrt_hash:6e24565f68951258bd57bc91ab32994c2985a9b2;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-24 08:39:57 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:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Kamil Páral 2016-05-24 08:20:35 UTC
Description of problem:
I unfocused the VM and then focused it again and clicked into it. virt-manager crashed. After starting virt-manager again, the VM was running OK.

Version-Release number of selected component:
virt-manager-1.3.2-4.20160520git2204de62d9.fc24

Additional info:
reporter:       libreport-2.7.0
backtrace_rating: 4
cmdline:        /usr/bin/python2 -tt /usr/share/virt-manager/virt-manager
crash_function: compare_directory
executable:     /usr/bin/python2.7
global_pid:     2719
kernel:         4.5.5-300.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 0 (10 frames)
 #0 compare_directory at gtkfilechooserwidget.c:4109
 #1 name_sort_func at gtkfilechooserwidget.c:4192
 #2 compare_array_element at gtkfilesystemmodel.c:766
 #3 msort_with_tmp at gqsort.c:152
 #5 msort_r at gqsort.c:237
 #6 g_qsort_with_data at gqsort.c:303
 #7 gtk_file_system_model_sort at gtkfilesystemmodel.c:790
 #8 add_file at gtkfilesystemmodel.c:1870
 #11 _gtk_file_system_model_update_file at gtkfilesystemmodel.c:1944
 #12 gtk_file_system_model_query_done at gtkfilesystemmodel.c:1227

Comment 1 Kamil Páral 2016-05-24 08:20:44 UTC
Created attachment 1160911 [details]
File: backtrace

Comment 2 Kamil Páral 2016-05-24 08:20:45 UTC
Created attachment 1160912 [details]
File: cgroup

Comment 3 Kamil Páral 2016-05-24 08:20:47 UTC
Created attachment 1160913 [details]
File: core_backtrace

Comment 4 Kamil Páral 2016-05-24 08:20:49 UTC
Created attachment 1160914 [details]
File: dso_list

Comment 5 Kamil Páral 2016-05-24 08:20:51 UTC
Created attachment 1160915 [details]
File: environ

Comment 6 Kamil Páral 2016-05-24 08:20:52 UTC
Created attachment 1160916 [details]
File: exploitable

Comment 7 Kamil Páral 2016-05-24 08:20:54 UTC
Created attachment 1160917 [details]
File: limits

Comment 8 Kamil Páral 2016-05-24 08:20:56 UTC
Created attachment 1160918 [details]
File: maps

Comment 9 Kamil Páral 2016-05-24 08:20:58 UTC
Created attachment 1160919 [details]
File: mountinfo

Comment 10 Kamil Páral 2016-05-24 08:20:59 UTC
Created attachment 1160920 [details]
File: namespaces

Comment 11 Kamil Páral 2016-05-24 08:21:01 UTC
Created attachment 1160921 [details]
File: open_fds

Comment 12 Kamil Páral 2016-05-24 08:21:03 UTC
Created attachment 1160922 [details]
File: proc_pid_status

Comment 13 Kamil Páral 2016-05-24 08:21:05 UTC
Created attachment 1160923 [details]
File: var_log_messages

Comment 14 Kamil Páral 2016-05-24 08:27:23 UTC
I've found the trigger. virt-manager crashes after taking a screenshot and focusing the window again.

Comment 15 Kamil Páral 2016-05-24 08:35:52 UTC
virt-manager does not crash with
gtk3-3.20.4-1.fc24.x86_64
and crashes with
gtk3-3.20.5-1.fc24.x86_64

The reproducer is simple:
1. boot a Fedora Workstation into graphics (using Spice+QXL)
2. take a screenshot using the virt-manager window menu
3. focus the VM with a cursor, it crashes

Comment 16 Kamil Páral 2016-05-24 08:39:57 UTC
gtk3-3.20.5-1.fc24.x86_64 has been unpushed from testing updates and gtk3-3.20.6-1.fc24.x86_64 has been proposed instead, which fixes the regression. Closing.