[Bug 93675] Nautilus crashes on recursive symlinks

Manuel Freire manuel.freire at gmail.com
Mon Mar 19 11:36:50 UTC 2007


Public bug reported:

Binary package hint: nautilus


Testcase:

cd /tmp
ln -s foo foo
# foo is now a symlink to itself, and the following crashes:
nautilus /tmp

More complex testcases also fail:

cd /tmp
rm foo
ln -s foo bar
ln -s bar foo
# foo points to bar points to foo ... and
nautilus /tmp  

crashes again

Possible fix:

While expanding symlinks, check to see if any "next" hop is already
present in the current or previous hops. If found, abort the expansion,
and mark the original symlink invalid (= detect loops).

Impact:

This is unlikely to happen to anybody with better memory than mine on
the quirks of "ln -s". However, it seems easy to solve...

ProblemType: Bug
Architecture: i386
Date: Mon Mar 19 12:14:45 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/nautilus
Package: nautilus 2.18.0.1-0ubuntu1
PackageArchitecture: i386
ProcCmdline: nautilus --sm-client-id 117f000101000117429232200000052030002 --screen 0
ProcCwd: /home/mfreire
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux grande 2.6.20-11-generic #2 SMP Thu Mar 15 08:03:07 UTC 2007 i686 GNU/Linux

** Affects: nautilus (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Nautilus crashes on recursive symlinks
https://launchpad.net/bugs/93675




More information about the desktop-bugs mailing list