GNOME Bugzilla – Bug 122265
Crash when trying to access non-existing vfs-url
Last modified: 2004-12-22 21:47:04 UTC
Distribution: Unknown Package: nautilus Severity: normal Version: GNOME2.4.0 2.4.0 Gnome-Distributor: GNOME.Org Synopsis: Crash when trying to access non-existing vfs-url Bugzilla-Product: nautilus Bugzilla-Component: general Bugzilla-Version: 2.4.0 BugBuddy-GnomeVersion: 2.0 (2.4.0.1) Description: Description of the crash: Crash when trying to access non-existing vfs-url Steps to reproduce the crash: 1. Access smb:// or blaat:// or meh:// or foo:// Expected Results: Some error message, but not a crash. How often does this happen? Always Additional Information: I don't have gnome-vfs-extras installed, only gnome-vfs Debugging Information: Backtrace was generated from '/usr/bin/nautilus' [New Thread 16384 (LWP 18308)] [New Thread 32769 (LWP 18309)] [New Thread 16386 (LWP 18310)] [New Thread 32771 (LWP 18311)] [New Thread 49156 (LWP 18314)] [New Thread 65541 (LWP 18315)] 0x40b70bb9 in __wait4 () at __wait4:-1 in __wait4
+ Trace 40170
Thread 1 (Thread 16384 (LWP 18308))
------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-09-14 06:30 ------- Unknown version 2.4.0 in product nautilus. Setting version to the default, "unspecified". The original reporter (michiel@sikkes.xs4all.nl) of this bug does not have an account here. Reassigning to the exporter, unknown@bugzilla.gnome.org. Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.
Well, it does not really crash, it does a g_assert_not_reached (), which will abort () - but yeah, it does not really matter from a user point of view. :-) As far as I can see, the patch for it is very, very simple ; I didn't test it thoroughly - but as far as I can see, every function which calls nautilus_file_get(_existing) () tests whether the return value is NULL or not, so this shouldn't cause any trouble. So, here is it : diff -Nurp nautilus.old/libnautilus-private/nautilus-file.c nautilus/libnautilus-private/nautilus-file.c --- nautilus.old/libnautilus-private/nautilus-file.c 2003-09-14 16:16:52.000000000 +0200 +++ nautilus/libnautilus-private/nautilus-file.c 2003-09-14 16:18:35.000000000 +0200 @@ -358,7 +358,7 @@ nautilus_file_get_internal (const char * } relative_uri = strdup (relative_uri_tmp); } else { - g_assert_not_reached (); + return NULL; } } You can find it at http://mmenal.nerim.net/nautilus.vfs.patch - it seems that the copy/paste'd patch won't apply because of TAB -> spaces conversion and such.
I can confirm this with 2.4.0 here on the current RH beta
*** Bug 122421 has been marked as a duplicate of this bug. ***
*** Bug 122382 has been marked as a duplicate of this bug. ***
Fixed in cvs.
*** Bug 114392 has been marked as a duplicate of this bug. ***
*** Bug 118753 has been marked as a duplicate of this bug. ***
*** Bug 127910 has been marked as a duplicate of this bug. ***
*** Bug 127372 has been marked as a duplicate of this bug. ***
*** Bug 124968 has been marked as a duplicate of this bug. ***
*** Bug 128578 has been marked as a duplicate of this bug. ***
*** Bug 128568 has been marked as a duplicate of this bug. ***