GNOME Bugzilla – Bug 79745
Select CNN.com news crashes nautilus
Last modified: 2004-12-22 21:47:04 UTC
Package: nautilus Severity: normal Version: 1.1.13 Synopsis: Select CNN.com news crashes nautilus Bugzilla-Product: nautilus Bugzilla-Component: Sidebar Panel: (Other) Description: whole app does not crash. Recovers, but does not display the news. Debugging Information: [New Thread 1024 (LWP 4126)] [New Thread 2049 (LWP 4127)] [New Thread 1026 (LWP 4128)] [New Thread 2051 (LWP 4129)] 0x4085a319 in __wait4 () from /lib/libc.so.6
+ Trace 21260
Thread 1 (Thread 1024 (LWP 4126))
------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-04-24 10:38 ------- Unknown version 1.1.x in product nautilus. Setting version to the default, "unspecified". The original reporter (whb@ceimaine.org) 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.
I get the same crash.
*** Bug 81094 has been marked as a duplicate of this bug. ***
Looks like gnome-vfs returns NULL for the contents when the file has zero length. And nautilus doesn't cope well with that - it expects some kind of string. You can reproduce this easily by creating an empty .txt file and trying to view it in nautilus. It isn't a news sidebar bug, it is a text view bug. I'll try to create a fix in a sec.
Created attachment 8329 [details] [review] Patch to fix it
Looks good. Please commit.
thanks. committed.