GNOME Bugzilla – Bug 653038
Filesystem activity -> crash in gtkfilesystemmodel.c
Last modified: 2014-12-22 16:44:46 UTC
Created attachment 190305 [details] backtrace +++ This bug was initially created as a clone of Bug #639189 +++ Geany crashes due to SIGABRT: Gtk:ERROR:/build/buildd-gtk+2.0_2.24.4-3-i386-ouUeDk/gtk+2.0-2.24.4/gtk/gtkfilesystemmodel.c:746:gtk_file_system_model_sort: assertion failed: (r == n_visible_rows) While a File-Chooser is open, I edit a file with vim and quit with :wq. In that folder with one particular file the application crashes reproducibly. See the attached backtrace with Gtk 2.24 from debian-testing. I compiled and tried some old versions of gtk (mentioned scenario): 2.18 does not crash (good), 2.20 and 2.24 crash (bad). This is the same as bug 639189; I could not reopen the latter one so I cloned it. The bug is present in several gtk-Applications; I first came across it in Geany, since there the FileSystem-Chooser was not destroyed but only hided. The Geany developers now avoid this crash by destroying the filesystem-chooser while it is not needed but the GTK-Bug is still reproducible if the FileChooser is shown. see the geany bug report: http://sourceforge.net/tracker/?func=detail&aid=3311258&group_id=153444&atid=787791 I guess the problem could be, that vim uses a .filename.txt.swq swap file that is deleted on exit (:q). At the same moment that filename.txt is modified. Probably this two events (deletion and modify) are processed in a wrong order in gtk_filesystemmodel.c What could I try or what additional information do you need?
There is a similar downstream bug report from Fedora 16/gtk3-3.2.1: https://bugzilla.redhat.com/show_bug.cgi?id=748739
+ Trace 228909
Thread 1 (Thread 0x7f3c3fd77980 (LWP 1990))
this is prolly related to #666158 too.
I've a simple reproducer for this: a) run gtk3-demo -> Pickers b) In File: select file from any folder, only make sure you'll avoid Recently used and you'll go to the folder itself c) when back in Pickers with the file selected open terminal and rename one file in the folder from b), it doesn't matter which, I chose a different file than the one I selected in the dialog. d) wait a second f) Poof, gtk3-demo is down with assert: Gtk:ERROR:gtkfilesystemmodel.c:751:gtk_file_system_model_sort: assertion failed: (r == n_visible_rows)
+ Trace 230537
Thread 1 (Thread 0x7ffc3b836980 (LWP 12269))
I forgot to add, this is with gtk3-3.4.3-2.fc17.x86_64.
*** This bug has been marked as a duplicate of bug 687196 ***
I can still reproduce the Crash with GTK+ 3.6.3. Now it's a SEGFAULT instead of a hit assertion. See attached backtrace. I used the gtk3-demo to reproduce as described by Milan Crha in Comment 3: a0) Prepare folder (in Terminal): cd /tmp; mkdir asdf && cd asdf; echo 1 > download.sh; echo 2 > rda.py; echo 3 > report.sh; echo 4 > zzz.test a) run gtk3-demo -> Pickers -> File b) select folder /tmp/asdf; avoid Recently Used b2) make sure, that displaying hidden files is un-checked c) go back to the terminal and edit one file: vim report.sh, insert anything, save and quit with ':x' d) wait e) segfault System Information: Debian Testing with GTK+ from experimental GTK+ version 3.6.3
Created attachment 232946 [details] backtrace with gtk+ 3.6.3 Backtrace for Comment 6
Hopefully fixed by f9c5799c82c7f683f699e2f08302683bcef99641