After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674659 - Nautilus crashing on startup with SIGSEGV
Nautilus crashing on startup with SIGSEGV
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Crashers
3.4.x
Other Linux
: High critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 674896 675182 675282 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-04-23 21:44 UTC by Samuel Littley
Modified: 2012-05-07 14:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output of gdb nautilus (4.22 KB, text/plain)
2012-04-24 12:30 UTC, hey
Details
output of gdb nautilus (13.20 KB, text/plain)
2012-04-24 15:14 UTC, hey
Details
gdb output (9.41 KB, text/plain)
2012-04-27 10:08 UTC, hey
Details
output (24.63 KB, text/plain)
2012-04-27 21:42 UTC, hey
Details

Description Samuel Littley 2012-04-23 21:44:33 UTC
Nautilus is failing to start correctly on Arch Linux, nautilus 3.4.1, kernel 3.3.2-1-ARCH, having just upgraded the full Gnome set to 3.4.1.

Nautilus manages to create the window with menus, sidebars, title bars, but no files displayed.

gdb gives:

Starting program: /usr/bin/nautilus 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7fffeb86f700 (LWP 15806)]
[New Thread 0x7fffeb06e700 (LWP 15807)]
[New Thread 0x7fffea86d700 (LWP 15808)]
[New Thread 0x7fffe9e64700 (LWP 15809)]
Initializing nautilus-dropbox 0.7.1
[New Thread 0x7fffd700e700 (LWP 15810)]

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_sort_key: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_sort_key: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_is_shadowed: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_volume: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_default_location: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_file_is_native: assertion `G_IS_FILE (file)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GMount'

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_default_location: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_icon: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_file_get_uri: assertion `G_IS_FILE (file)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_name: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_file_get_parse_name: assertion `G_IS_FILE (file)' failed

(nautilus:15793): Gtk-CRITICAL **: gtk_icon_theme_lookup_by_gicon: assertion `G_IS_ICON (icon)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_default_location: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_icon: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_file_get_uri: assertion `G_IS_FILE (file)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_get_name: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_file_get_parse_name: assertion `G_IS_FILE (file)' failed

(nautilus:15793): Gtk-CRITICAL **: gtk_icon_theme_lookup_by_gicon: assertion `G_IS_ICON (icon)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_can_eject: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): GLib-GIO-CRITICAL **: g_mount_can_unmount: assertion `G_IS_MOUNT (mount)' failed

(nautilus:15793): Gtk-WARNING **: gtkliststore.c:1050: invalid unclassed object pointer for value type `GMount'

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(nautilus:15793): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

Program received signal SIGSEGV, Segmentation fault.

Thread 140737136486144 (LWP 15807)

  • #0 g_file_get_path
    from /usr/lib/libgio-2.0.so.0
  • #1 ??
    from /usr/lib/gio/modules/libgioremote-volume-monitor.so
  • #2 ??
    from /usr/lib/gio/modules/libgioremote-volume-monitor.so
  • #3 ??
    from /usr/lib/libgio-2.0.so.0
  • #4 ??
    from /usr/lib/libgio-2.0.so.0
  • #5 ??
    from /usr/lib/libgio-2.0.so.0
  • #6 ??
    from /usr/lib/libgio-2.0.so.0
  • #7 ??
    from /usr/lib/libgio-2.0.so.0
  • #8 ??
    from /usr/lib/libglib-2.0.so.0
  • #9 ??
    from /usr/lib/libglib-2.0.so.0
  • #10 start_thread
    from /lib/libpthread.so.0
  • #11 clone
    from /lib/libc.so.6

Comment 1 Akhil Laddha 2012-04-24 03:59:48 UTC
Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 2 Samuel Littley 2012-04-24 09:24:36 UTC
Okay, started up my laptop and nautilus is working again, I have no idea what's changed since last night.
Comment 3 hey 2012-04-24 12:30:31 UTC
Created attachment 212688 [details]
output of gdb nautilus
Comment 4 hey 2012-04-24 12:31:08 UTC
I've the same system: Arch 3.3.2-1 with full Gnome 3.4.1

If my NFS is mounted nautilus cause a segfault (and there only if it starts in my home folder). (I've read something that this is in relation with "cifs", but I don't know anything further or about this. May it help the developer ;)) If the NFS isn't mounted nautilus works as expected. 

My /etc/fstab entry:

192.168.1.111:/home/kabum/Daten	/home/kabum/Daten nfs defaults 0 0

nautilus /home/kabum/Daten works perfectly. But it crashes if I want to enter the home folder.

I've compiled nautilus with debuging symbols like described in https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces 

The output is attached. After the run there is an empty nautilus window with only the title.

Thanks
Comment 5 Cosimo Cecchi 2012-04-24 13:11:32 UTC
(In reply to comment #4)
> I've the same system: Arch 3.3.2-1 with full Gnome 3.4.1
> 
> If my NFS is mounted nautilus cause a segfault (and there only if it starts in
> my home folder). (I've read something that this is in relation with "cifs", but
> I don't know anything further or about this. May it help the developer ;)) If
> the NFS isn't mounted nautilus works as expected. 
> 
> My /etc/fstab entry:
> 
> 192.168.1.111:/home/kabum/Daten    /home/kabum/Daten nfs defaults 0 0
> 
> nautilus /home/kabum/Daten works perfectly. But it crashes if I want to enter
> the home folder.

Hi, the stack trace you provided is still not enough; try to do the following
- run nautilus inside gdb with the follwing environment variables set: G_DEBUG=fatal_criticals gdb nautilus
- when nautilus hits the first critical and stops in the debugger, get a backtrace with 'thread apply all bt full' and paste the output here
Comment 6 hey 2012-04-24 15:14:07 UTC
Created attachment 212712 [details]
output of gdb nautilus
Comment 7 hey 2012-04-25 19:36:54 UTC
Do you need any further info?
Comment 8 Cosimo Cecchi 2012-04-26 14:55:05 UTC
Yes; you seem to be missing debug information for the glib and gvfs. Can you install such packages and repeat the gdb procedure?
Comment 9 Cosimo Cecchi 2012-04-26 18:45:46 UTC
*** Bug 674896 has been marked as a duplicate of this bug. ***
Comment 10 hey 2012-04-27 10:08:16 UTC
Created attachment 212944 [details]
gdb output

I used these two packages:

https://www.archlinux.org/packages/extra/x86_64/gvfs/
https://www.archlinux.org/packages/extra/x86_64/glib/

I have to launch nautilus with the path "Daten" because without nautilus doesn't even start andthe output where only some "New Thread" and "Thread exited" lines.

After the start of nautilus I directly go to my home folder and so nautilus crashes.

Hope that helps. :)

Thanks!
Comment 11 Cosimo Cecchi 2012-04-27 19:39:05 UTC
-> gvfs

You're still missing debug symbols for GLib. The package name is glib2 in archlinux apparently [1].
Anyway, it looks like this might be a bug in gvfs.

[1] http://www.archlinux.org/packages/core/x86_64/glib2/
Comment 12 David Zeuthen (not reading bugmail) 2012-04-27 20:03:34 UTC
(In reply to comment #11)
> -> gvfs
> 
> You're still missing debug symbols for GLib. The package name is glib2 in
> archlinux apparently [1].
> Anyway, it looks like this might be a bug in gvfs.

First of all, it most likely not a bug in the udisks2 volume monitor because that one is running in a separate process. It could be a bug in the 'proxy' volume monitor machinery but that's unlikely since it haven't changed much lately. Hence, it's more likely that it's a reference count bug in nautilus... so reassigning back for now.
Comment 13 hey 2012-04-27 21:42:39 UTC
Created attachment 212999 [details]
output
Comment 14 Cosimo Cecchi 2012-05-01 12:53:31 UTC
*** Bug 675182 has been marked as a duplicate of this bug. ***
Comment 15 Cosimo Cecchi 2012-05-04 18:40:33 UTC
*** Bug 675282 has been marked as a duplicate of this bug. ***
Comment 16 Cosimo Cecchi 2012-05-04 18:42:20 UTC
I was able to track this down to a leaked reference bug introduced in commit a60e9887eebb8973c48c0151981a26cce7cc8793
Pushed a patch to git master and gnome-3-4 to fix this now, thanks for all the help!