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 308977 - Nautilus crashes when attempt opening mounted samba share
Nautilus crashes when attempt opening mounted samba share
Status: RESOLVED INCOMPLETE
Product: nautilus
Classification: Core
Component: Navigation
2.12.x
Other All
: High critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-24 22:08 UTC by Momchil Kinov
Modified: 2006-02-25 21:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Fix against a) (1.13 KB, patch)
2005-09-30 21:57 UTC, Christian Neumair
committed Details | Review

Description Momchil Kinov 2005-06-24 22:08:56 UTC
Steps to reproduce:
1. mounted samba share via autofs or via mount -t smbfs
2. mounting was done with -o rw,guest,uid=1001,gid=1001 (1001 - gid and uid of
current user)
3. run nautilus and attempt to open the directory where share is mounted (either
by double clicking the directory or by typing the addres in location bar)
4. old directory contents diappear, nautilus tries to show the content of
desired directory and crashes


Stack trace:
foo@bar:~$ gdb nautilus
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /usr/bin/nautilus
[Thread debugging using libthread_db enabled]
[New Thread -1224350560 (LWP 22031)]
[New Thread -1227568208 (LWP 22052)]
seahorse nautilus module initialized
[New Thread -1238127696 (LWP 22053)]
[New Thread -1238389840 (LWP 22054)]
[New Thread -1239536720 (LWP 22065)]
[New Thread -1239798864 (LWP 22066)]

** (nautilus:22031): CRITICAL **: nautilus_directory_get_file_metadata:
assertion `!eel_str_is_empty (file_name)' failed

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 22031)

  • #0 rawmemchr
    from /lib/tls/libc.so.6
  • #1 _IO_list_resetlock
    from /lib/tls/libc.so.6
  • #2 vsscanf
    from /lib/tls/libc.so.6
  • #3 sscanf
    from /lib/tls/libc.so.6
  • #4 get_stored_icon_position_callback
    at fm-icon-view.c line 276
  • #5 eel_marshal_BOOLEAN__POINTER_POINTER
    from /usr/lib/libeel-2.so.2
  • #6 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #7 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #8 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #9 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #10 assign_icon_position
    at nautilus-icon-container.c line 5096
  • #11 finish_adding_new_icons
    at nautilus-icon-container.c line 5141
  • #12 redo_layout_internal
    at nautilus-icon-container.c line 1619
  • #13 redo_layout_callback
    at nautilus-icon-container.c line 1645
  • #14 g_child_watch_add
    from /usr/lib/libglib-2.0.so.0
  • #15 g_main_depth
    from /usr/lib/libglib-2.0.so.0
  • #16 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #17 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #18 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #19 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 main
    at nautilus-main.c line 432


Other information:
Thanks to seb128 to advising me jow to get the backtrace without bug-buddy.
Comment 1 Christian Neumair 2005-09-30 21:56:27 UTC
Thanks for your bug report!
There are multiple issues involved.

a) it looks like nautilus_directory_get_file_metadata is not returning the
default metadata string ("") but NULL if its assertions fail.

b) get_metadata_name from nautilus-file.c seems to return NULL for a file for
some obscure reason. Maybe you could try to isolate the issue by moving file by
file from the nfs folder (through the shell?) into subfolders and check when the
problems vanish.
Comment 2 Christian Neumair 2005-09-30 21:57:25 UTC
Created attachment 52890 [details] [review]
Fix against a)
Comment 3 Christian Neumair 2005-09-30 21:59:28 UTC
Reassigning to 2.12 since at least a) is still an issue.
Comment 4 Alexander Larsson 2005-10-03 08:29:10 UTC
Patch commited.
Comment 5 Brent Smith (smitten) 2005-10-23 01:01:41 UTC
Marking NEW.  Manny, I assume you meant b) is still an issue here.
Comment 6 Christian Neumair 2005-10-23 09:30:21 UTC
Yes Brent, good catch.
Comment 7 Christian Neumair 2006-02-25 21:56:31 UTC
Setting bug status to INCOMPLETE.