After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 79745 - Select CNN.com news crashes nautilus
Select CNN.com news crashes nautilus
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] Views: Other
unspecified
Other other
: High critical
: 1.1.x
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 81094 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-04-24 17:31 UTC by Will Backman
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: Old
GNOME version: ---


Attachments
Patch to fix it (768 bytes, patch)
2002-05-09 20:19 UTC, Damon Chaplin
none Details | Review

Description Will Backman 2002-04-24 14:38:25 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

Thread 1 (Thread 1024 (LWP 4126))

  • #0 __wait4
    from /lib/libc.so.6
  • #1 __DTOR_END__
    from /lib/libc.so.6
  • #2 waitpid
    at wrapsyscall.c line 172
  • #3 libgnomeui_segv_handle
    at gnome-ui-init.c line 593
  • #4 pthread_sighandler
    at signals.c line 97
  • #5 <signal handler called>
  • #6 my_strnlen
    at nautilus-text-view.c line 89
  • #7 read_file_callback
    at nautilus-text-view.c line 122
  • #8 read_file_succeeded
    at eel-vfs-extensions.c line 159
  • #9 dispatch_read_callback
    at gnome-vfs-job.c line 237
  • #10 dispatch_job_callback
    at gnome-vfs-job.c line 562
  • #11 g_idle_dispatch
    at gmain.c line 3129
  • #12 g_main_dispatch
    at gmain.c line 1617
  • #13 g_main_context_dispatch
    at gmain.c line 2161
  • #14 g_main_context_iterate
    at gmain.c line 2242
  • #15 g_main_loop_run
    at gmain.c line 2462
  • #16 gtk_main
    at gtkmain.c line 936
  • #17 nautilus_view_standard_main_multi
    at nautilus-view-standard-main.c line 229
  • #18 nautilus_view_standard_main
    at nautilus-view-standard-main.c line 312
  • #19 main
    at nautilus-text-view.c line 251
  • #20 __libc_start_main
    at ../sysdeps/generic/libc-start.c line 129
  • #0 __wait4
    from /lib/libc.so.6
  • #0 __wait4
    from /lib/libc.so.6
  • #1 __DTOR_END__
    from /lib/libc.so.6
  • #2 waitpid
    at wrapsyscall.c line 172
  • #3 libgnomeui_segv_handle
    at gnome-ui-init.c line 593
  • #4 pthread_sighandler
    at signals.c line 97
  • #5 <signal handler called>
  • #6 my_strnlen
    at nautilus-text-view.c line 89
  • #7 read_file_callback
    at nautilus-text-view.c line 122




------- 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.

Comment 1 Ben FrantzDale 2002-05-02 22:34:08 UTC
I get the same crash.
Comment 2 John Fleck 2002-05-08 02:36:28 UTC
*** Bug 81094 has been marked as a duplicate of this bug. ***
Comment 3 Damon Chaplin 2002-05-09 19:53:49 UTC
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.
Comment 4 Damon Chaplin 2002-05-09 20:19:15 UTC
Created attachment 8329 [details] [review]
Patch to fix it
Comment 5 Alexander Larsson 2002-05-09 20:44:04 UTC
Looks good. Please commit.
Comment 6 Damon Chaplin 2002-05-09 20:53:14 UTC
thanks. committed.