GNOME Bugzilla – Bug 539967
nautilus crashes when opening folder containing certain .desktop file
Last modified: 2008-09-08 13:35:32 UTC
the bug has been opened on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/235544 "When the folder is opened, nautilus crashes and restarts, with this line in /var/log/syslog: kernel: [ 3425.325654] nautilus[9824]: segfault at 00000000 eip b69e6f97 esp bf88b470 error 4 Symptoms are similar to Bug #127826. I'm using nautilus 2.22.2 in Ubuntu 8.04 (32-bit) with updates. Steps to reproduce this bug: * create a new directory * create a file in this directory called "test.desktop" which contains: [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=test Type=Link URL=http://google.com/A%2FB Icon=gnome-fs-bookmark Name[en_US]=test * browse to this new folder (or a link to this folder) in nautilus * nautilus crashes * removing the "%2F" from test.desktop causes nautilus to NOT crash" The crash stacktrace: "g_mount_spec_canonicalize_path (path=0x0) at gmountspec.c:480 480 if (*path != '/') (gdb) bt
+ Trace 201264
Created attachment 116717 [details] [review] a patch Here is a patch that fixes this crash for me.
Also worth pointing out that we probably need to free spec and host when we are returning FALSE...
I am pretty sure that is actually the same as bug #546256. Also I think the patch just fixes the symptom. The real fix is to never have path == NULL && mount_spec != NULL (which is the real bug) *** This bug has been marked as a duplicate of 546256 ***
*** Bug 551363 has been marked as a duplicate of this bug. ***