Nautilus crashes on recursive symlinks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nautilus (Ubuntu) |
Confirmed
|
Medium
|
Ubuntu Desktop Bugs |
Bug Description
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
PackageArchitec
ProcCmdline: nautilus --sm-client-id 117f00010100011
ProcCwd: /home/mfreire
ProcEnviron:
PATH=/
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
Thanks for the bug report. This particular bug has already been reported, but feel free to report any other bugs you find.