GNOME Bugzilla – Bug 708282
Nautilus aborts in nautilus_bookmark_connect_file()
Last modified: 2014-05-02 12:56:36 UTC
This bug has been reported by about 5 people on Fedora 19, with Nautilus 3.8.2: https://bugzilla.redhat.com/show_bug.cgi?id=960444 Seems to happens when unmounting both local and network mounts. Core was generated by `/usr/bin/nautilus --no-default-window'. Program terminated with signal 6, Aborted.
+ Trace 232497
Thread 1 (Thread 0x7ff99c94ca40 (LWP 2171))
Can confirm this in Fedora 20 nightly build from 18th september, nautilus 3.9.91. The way I produce the bug is by: - Mounting ftp://rvzt.net - Unmounting ftp://rvzt.net - Attempting to mount ftp://rvzt.net again. After pressing "Connect" in the dialogue, Nautilus crashes and the following error is printed in the terminal: ERROR:nautilus-bookmark.c:350:nautilus_bookmark_connect_file: assertion failed: (!nautilus_file_is_gone (bookmark->details->file)) Aborted (core dumped)
I can confirm this. It happens almost every time I unmount my ftp mount.
*** Bug 697873 has been marked as a duplicate of this bug. ***
*** Bug 709902 has been marked as a duplicate of this bug. ***
*** Bug 695342 has been marked as a duplicate of this bug. ***
*** Bug 719858 has been marked as a duplicate of this bug. ***
Got this bug with 3.11.5 nautilus
*** Bug 725927 has been marked as a duplicate of this bug. ***
Despite what rhbz #960444 says, I still see this with HEAD
You can also reproduce by: - Mounting ftp://rvzt.net - Unmounting ftp://rvzt.net - Pressing back The cause seems to be that a NautilusBookmark is retained in the history, but this bookmark is removed when the FTP connection is terminated. The NautilusBookmark keeps a reference to the NautilusFile that represents this file. When you try to go back to this bookmark, either by pressing back or creating an identical connection the old NautilusFile object is accessed. This object is marked as "gone" and the assertion fails. It seems like the NautilusBookmark should be removed from the history when the connection is terminated and this will cause the NautilusFile object to also be removed and then regenerated next time it is needed.
This is currently one of the top crash reports occurring in Ubuntu.
Created attachment 275584 [details] [review] Add missing unref for NautilusFile used in network connections Finally found the damn missing unref!!
This bug was introduced in commit 95d42ea01f7f9c60210b415554e7bbf6f4e1b334 and has been since nautilus 3.5.91.
Created attachment 275585 [details] [review] Add missing unref for NautilusFile used in network connections Fix commit message
Review of attachment 275585 [details] [review]: Good catch!
*** Bug 727427 has been marked as a duplicate of this bug. ***