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 318457 - nautilus keeps crashing, too many symlinks?
nautilus keeps crashing, too many symlinks?
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: URI handling
2.12.x
Other All
: High critical
: ---
Assigned To: gnome-vfs maintainers
Nautilus Maintainers
: 320235 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-10-10 13:17 UTC by Sebastien Bacher
Modified: 2005-11-06 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (884 bytes, patch)
2005-10-10 19:44 UTC, Christian Neumair
committed Details | Review

Description Sebastien Bacher 2005-10-10 13:17:21 UTC
This bug has been opened here: https://bugzilla.ubuntu.com/show_bug.cgi?id=17470

"After a few releases I have a bit of a symlink-mess on my system. It worked fine
for a while, but now nautilus keeps crashing on me. (It might be that the
symlink level is too deep for nautilus to handle?)

My config: 
I'm running breezy up-to-date (as of mon oct 10, 11:00) on i386 (AMD Athlon XP
2200+)

/dev/hda5 is mounted on /media/storage (ext3) --> FILESYSTEM2 in script
/dev/hda2 is mounted on / (ext3)
/home/eric is a normal dir on / 

To spare your valuable time, I made a small script to set up the environment: 
http://atlas.et.tudelft.nl/1200348/pub/bugs/nautilus-crash

Read it, set the FILESYSTEM2 variable to the mountpoint of a non-root
filesystem, and run './nautilus-crash test'

Nautilus crashes, then. Restarting it and browsing to ~/subdir-link/subdir2
doesn't make it happy either: while browsing/copying/using this directory, it
just keeps crashing on me. Often really fast, and sometimes immediately. The
easiest way to reproduce this, is this: (Yes, I know this is a weird request, sorry)
Select file1 and hit right-arrow left-arrow right-arrow left-arrow for a while. 

It's a bit weird, and may take some effort to set up the directories in a
similar way, but I hope someone can reproduce this. 


I installed libgnomevfs2-0-dbg, nautilus-dbg, and I tried making a backtrace of
nautilus, but I'm not experienced and gdb says 
Program received signal SIG33, Real-time event 33.
"(gdb) handle SIG33 nostop" didn't help much, so I hope someone can reproduce
this problem."
Comment 1 Sebastien Bacher 2005-10-10 13:20:35 UTC
Backtrace:

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 14755)

  • #0 stpcpy
    from /lib/tls/i686/cmov/libc.so.6
  • #1 IA__g_stpcpy
    at gstrfuncs.c line 167
  • #2 IA__g_strconcat
    at gstrfuncs.c line 237
  • #3 gnome_vfs_uri_append_string
    at gnome-vfs-uri.c line 1081
  • #4 _gnome_vfs_uri_resolve_all_symlinks_uri
    at gnome-vfs-utils.c line 1995
  • #5 gnome_vfs_find_directory_cancellable
    at gnome-vfs-cancellable-ops.c line 300
  • #6 gnome_vfs_find_directory
    at gnome-vfs-find-directory.c line 63
  • #7 eel_uri_is_in_trash
    from /usr/lib/libeel-2.so.2
  • #8 nautilus_file_is_in_trash
    at nautilus-file.c line 5158
  • #9 real_update_menus
    at fm-directory-view.c line 1187
  • #10 fm_icon_view_update_menus
    at fm-icon-view.c line 1539
  • #11 fm_directory_view_update_menus
    at fm-directory-view.c line 8106
  • #12 update_menus_timeout_callback
    at fm-directory-view.c line 2575
  • #13 g_timeout_dispatch
    at gmain.c line 3293
  • #14 IA__g_main_context_dispatch
    at gmain.c line 1934
  • #15 g_main_context_iterate
    at gmain.c line 2565
  • #16 IA__g_main_loop_run
    at gmain.c line 2769
  • #17 IA__gtk_main
    at gtkmain.c line 985
  • #18 main
    at nautilus-main.c line 435

Comment 2 Sebastien Bacher 2005-10-10 13:21:59 UTC
Probably something like #308639, that happens with gnome-vfs/nautilus 2.12.1 though
Comment 3 Christian Neumair 2005-10-10 14:10:12 UTC
I fail to reproduce this with Nautilus/GnomeVFS 2.12.1 and FILESYSTEM2 set to an
ext3 mount point on my ext3 root partition. This really looks like a 2.12 issue.
Maybe you could double-check that Eric is on 2.12.1, by querying him for the
apt-cache output for all the related libraries or something?
Comment 4 Christian Neumair 2005-10-10 14:26:27 UTC
Hrm gnome_vfs_uri_append_string denotes that this is actually GnomeVFS 2.12.1.
Comment 5 Christian Neumair 2005-10-10 14:30:09 UTC
Note that I'm still unable to reproduce this. Anybody else? What about you
Sebastien?
Comment 6 Sebastien Bacher 2005-10-10 15:46:06 UTC
The backtrace comes from my nautilus installation.
Comment 7 Christian Neumair 2005-10-10 16:01:15 UTC
I can't reproduce this on a second system with FILESYSTEM2 set to "/boot"
(ext3/ext3) when running the script with sudo.
Comment 8 Sebastien Bacher 2005-10-10 18:38:43 UTC
What version of nautilus/gnome-vfs do you use? Is one of those supposed to have
changes fixing that since 2.12.1? I've the issue using a vfat partition mounted
to /mnt. Do you click on the icons?
Comment 9 Christian Neumair 2005-10-10 19:39:22 UTC
Now I can verify the issue - I used ~/fs2 instead of ~/testcrash, so the
behavior didn't show up. We're accessing invalid memory.
Comment 10 Christian Neumair 2005-10-10 19:44:48 UTC
Created attachment 53306 [details] [review]
Proposed patch

Also available with short explanation via:
http://mail.gnome.org/archives/gnome-vfs-list/2005-October/msg00010.html
Comment 11 milouny 2005-10-10 23:15:58 UTC
I see you can all work this out! I don't feel like much of a hacker myself, but
I like this cooperation thing :)

Thanks guys!
Comment 12 Christian Neumair 2005-10-17 18:15:58 UTC
The patch was committed, thanks for your help.
Comment 13 Martin Wehner 2005-11-06 14:03:31 UTC
*** Bug 320235 has been marked as a duplicate of this bug. ***