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 347470 - Epiphany crashes when closed
Epiphany crashes when closed
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: http
cvs (head)
Other All
: High critical
: ---
Assigned To: Christian Neumair
gnome-vfs maintainers
: 348166 348695 348714 349140 349803 350178 350633 351073 351105 351210 351248 351307 351393 351641 352607 353490 354173 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-07-14 01:31 UTC by Frédéric Bellaiche
Modified: 2006-09-15 19:30 UTC
See Also:
GNOME target: 2.16.x
GNOME version: 2.15/2.16


Attachments
Proposed Patch (1.37 KB, patch)
2006-09-14 19:45 UTC, Christian Neumair
committed Details | Review

Description Frédéric Bellaiche 2006-07-14 01:31:09 UTC
Steps to reproduce:
1. Close epiphany
2. 
3. 


Stack trace:
(from bugbuddy)

Distribution: qbits (LFS)
Gnome Release: 2.15.4 2006-07-11 (quantum-bits.org)
BugBuddy Version: 2.15.0

Memmory status: size: 96792576 vsize: 0 resident: 96792576 share: 0 rss: 32935936 rss_rlim: 0
CPU usage: start_time: 1152840187 rtime: 0 utime: 181 stime: 0 cutime:173 cstime: 0 timeout: 8 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/epiphany'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1229150544 (LWP 19055)]
0xffffe410 in ?? ()

Thread 1 (Thread -1229150544 (LWP 19055))

  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #5 libgnomeui_segv_handle
    at gnome-ui-init.c line 867
  • #6 nsProfileLock::FatalSignalHandler
    from /usr/lib/firefox-1.5.0.3/libgtkembedmoz.so
  • #7 <signal handler called>
  • #8 ??
  • #9 ??
  • #10 ??
  • #11 ??
  • #12 *__GI_raise
    at ../nptl/sysdeps/unix/sysv/linux/raise.c line 67
  • #13 *__GI_abort
    at ../sysdeps/generic/abort.c line 88
  • #14 IA__g_logv
    at gmessages.c line 497
  • #15 IA__g_log
    at gmessages.c line 517
  • #16 IA__g_return_if_fail_warning
    at gmessages.c line 532
  • #17 IA__g_hash_table_destroy
    at ghash.c line 219
  • #18 vfs_module_shutdown
    at http-neon-method.c line 1030
  • #19 module_element_free
    at gnome-vfs-method.c line 101
  • #20 g_hash_nodes_destroy
    at ghash.c line 783
  • #21 IA__g_hash_table_remove_all
    at ghash.c line 468
  • #22 IA__g_hash_table_destroy
    at ghash.c line 221
  • #23 _gnome_vfs_method_shutdown
    at gnome-vfs-method.c line 455
  • #24 gnome_vfs_shutdown
    at gnome-vfs-init.c line 190
  • #25 main
    at ephy-main.c line 724
  • #0 ??


Other information:
Epiphany 2.15.4 (gecko=firefox 1.5.0.3)
gnome 2.15.4 / gnome-vfs 2.15.3
gtk+ 2.10.0 / glib 2.12.0
Everything compiled from sources.
Comment 1 Fabio Bonelli 2006-07-14 09:32:37 UTC
Thanks for the bug report. Unfortunately, that stack trace is not very useful in determining the cause of the crash. Can you get us one with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so.
Comment 2 Fabio Bonelli 2006-07-14 09:45:55 UTC
Sorry, my mistake. :-/
Comment 3 Frédéric Bellaiche 2006-07-14 10:11:37 UTC
Do you still whant that stacktrace from gdb ?
Comment 4 Christian Persch 2006-07-14 12:03:22 UTC
A stack trace with debug symbols for gnome-vfs would be useful, yes.

  • #18 vfs_module_shutdown
    at http-neon-method.c line 1030

This is a crash in gnome-vfs http module, re-assigning.
Comment 5 Frédéric Bellaiche 2006-07-14 13:48:30 UTC


Thread 1 (Thread -1229592912 (LWP 15572))

  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 __nptl_setxid
    at allocatestack.c line 892
  • #5 *__GI___setresuid
    at ../sysdeps/unix/sysv/linux/i386/setresuid.c line 49
  • #6 *__GI_seteuid
    at ../sysdeps/unix/sysv/linux/i386/seteuid.c line 45
  • #7 gnome_vfs_add_module_to_hash_table
    at gnome-vfs-method.c line 365
  • #8 gnome_vfs_transform_get
    at gnome-vfs-method.c line 445
  • #9 gnome_vfs_uri_new_private
    at gnome-vfs-uri.c line 576
  • #10 gnome_vfs_uri_new
    at gnome-vfs-uri.c line 537
  • #11 get_title_from_address
    at ephy-tab.c line 906
  • #12 ephy_tab_set_loading_title
    at ephy-tab.c line 933
  • #13 ephy_tab_open_uri_cb
    at ephy-tab.c line 1502
  • #14 gtkmozembed_BOOLEAN__STRING
    from /usr/lib/firefox-1.5.0.3/libgtkembedmoz.so
  • #15 IA__g_closure_invoke
    at gclosure.c line 490
  • #16 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #17 IA__g_signal_emit_valist
    at gsignal.c line 2207
  • #18 gtk_signal_emit
    at gtksignal.c line 360
  • #19 EmbedContentListener::Init
    from /usr/lib/firefox-1.5.0.3/libgtkembedmoz.so
  • #20 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libdocshell.so
  • #21 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libdocshell.so
  • #22 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libdocshell.so
  • #23 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libdocshell.so
  • #24 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libdocshell.so
  • #25 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libdocshell.so
  • #26 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libdocshell.so
  • #27 NSGetModule
    from /usr/lib/firefox-1.5.0.3/components/libwebbrwsr.so
  • #28 EmbedPrivate::LoadCurrentURI
    from /usr/lib/firefox-1.5.0.3/libgtkembedmoz.so
  • #29 gtk_moz_embed_load_url
    from /usr/lib/firefox-1.5.0.3/libgtkembedmoz.so
  • #30 impl_load_url
    at mozilla-embed.cpp line 324
  • #31 ephy_embed_load_url
    at ephy-embed.c line 422
  • #32 ephy_shell_new_tab_full
    at ephy-shell.c line 428
  • #33 session_command_dispatch
    at ephy-session.c line 738
  • #34 g_idle_dispatch
    at gmain.c line 3924
  • #35 IA__g_main_context_dispatch
    at gmain.c line 2043
  • #36 g_main_context_iterate
    at gmain.c line 2675
  • #37 IA__g_main_loop_run
    at gmain.c line 2879
  • #38 IA__gtk_main
    at gtkmain.c line 1000
  • #39 main
    at ephy-main.c line 717
  • #0 ??

Comment 6 Frédéric Bellaiche 2006-07-14 13:49:31 UTC
Might be also useful:

(gdb)  handle SIG33 nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIG33         No        No      Yes             Real-time event 33
(gdb) run
Starting program: /usr/bin/epiphany 
[Thread debugging using libthread_db enabled]
[New Thread -1229216080 (LWP 15514)]
[New Thread -1231864912 (LWP 15519)]
[New Thread -1265624144 (LWP 15520)]
[New Thread -1275315280 (LWP 15521)]
[New Thread -1284490320 (LWP 15522)]
[New Thread -1292883024 (LWP 15523)]
Detaching after fork from child process 15524.
[Thread -1275315280 (LWP 15521) exited]
[Thread -1231864912 (LWP 15519) exited]
[Thread -1284490320 (LWP 15522) exited]
[Thread -1292883024 (LWP 15523) exited]
[Thread -1265624144 (LWP 15520) exited]

GLib-CRITICAL **: g_hash_table_destroy: assertion `hash_table->ref_count > 0' failed
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread -1229216080 (LWP 15514)]
0xffffe410 in ?? ()
(gdb) thread apply all bt

Thread 1 (Thread -1229216080 (LWP 15514))

  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 *__GI_raise
    at ../nptl/sysdeps/unix/sysv/linux/raise.c line 67
  • #5 *__GI_abort
    at ../sysdeps/generic/abort.c line 88
  • #6 IA__g_logv
    at gmessages.c line 497
  • #7 IA__g_log
    at gmessages.c line 517
  • #8 IA__g_return_if_fail_warning
    at gmessages.c line 532
  • #9 IA__g_hash_table_destroy
    at ghash.c line 219
  • #10 vfs_module_shutdown
    at http-neon-method.c line 1030
  • #11 module_element_free
    at gnome-vfs-method.c line 101
  • #12 g_hash_nodes_destroy
    at ghash.c line 783
  • #13 IA__g_hash_table_remove_all
    at ghash.c line 468
  • #14 IA__g_hash_table_destroy
    at ghash.c line 221
  • #15 _gnome_vfs_method_shutdown
    at gnome-vfs-method.c line 455
  • #16 gnome_vfs_shutdown
    at gnome-vfs-init.c line 190
  • #17 main
    at ephy-main.c line 724

Comment 7 Christian Persch 2006-07-21 11:26:29 UTC
*** Bug 348166 has been marked as a duplicate of this bug. ***
Comment 8 Christian Persch 2006-07-24 18:55:39 UTC
I can reproduce this now. I get the 

(epiphany:29068): GLib-CRITICAL **: g_hash_table_destroy: assertion `hash_table->ref_count > 0' failed

warning 4 times on shutdown.

  • #4 g_hash_table_destroy
    at ghash.c line 219
  • #5 vfs_module_shutdown
    at http-neon-method.c line 575
  • #6 module_element_free
    at gnome-vfs-method.c line 101
  • #7 g_hash_nodes_destroy
    at ghash.c line 783
  • #8 g_hash_table_remove_all
    at ghash.c line 468
  • #9 g_hash_table_destroy
    at ghash.c line 221
  • #10 _gnome_vfs_method_shutdown
    at gnome-vfs-method.c line 455
  • #11 gnome_vfs_shutdown
    at gnome-vfs-init.c line 189
  • #12 main
    at ../../src/ephy-main.c line 740

Comment 9 Christian Persch 2006-07-25 10:14:20 UTC
Ok, some more information:

- I set breakpoints on gnome_vfs_init and gnome_vfs_shutdown and they're only called once each in Epiphany HEAD
- Starting epiphany up and shut down -> no warnings
- Starting epiphany up and loading a http:// web page, shut down -> no warnings
- Starting epiphany up and loading a https:// web page, shut down -> WARNINGS! (4 identical warnings)
Comment 10 Christian Kellner 2006-07-25 10:17:01 UTC
Ahh, since https:// is an alias for http:// maybe that will cause the "double" free. I am going to look at this later. Thanks!
Comment 11 Yanko Kaneti 2006-07-26 01:09:03 UTC
*** Bug 348695 has been marked as a duplicate of this bug. ***
Comment 12 Christian Persch 2006-07-26 17:25:21 UTC
*** Bug 348714 has been marked as a duplicate of this bug. ***
Comment 13 Jose M. daLuz 2006-07-29 00:28:31 UTC
*** Bug 349140 has been marked as a duplicate of this bug. ***
Comment 14 Karsten Bräckelmann 2006-08-03 16:08:55 UTC
*** Bug 349803 has been marked as a duplicate of this bug. ***
Comment 15 Baptiste Mille-Mathias 2006-08-06 19:07:26 UTC
*** Bug 350178 has been marked as a duplicate of this bug. ***
Comment 16 Baptiste Mille-Mathias 2006-08-09 19:34:38 UTC
*** Bug 350633 has been marked as a duplicate of this bug. ***
Comment 17 Frédéric Bellaiche 2006-08-10 12:22:15 UTC
Indeed, It is definitely connected to loading a https:/ web page before loading a http:/ page and closing. No pb whatsoever when surfing http:/ pages only. 
Moved to gnome 2.15.91 (gnome-vfs 2.15.91, gnome-vfs-monikers 2.15.3, epiphany 2.15.91) -> same pb. Anything I can do to help ?
Comment 18 Reinout van Schouwen 2006-08-12 19:41:24 UTC
*** Bug 351073 has been marked as a duplicate of this bug. ***
Comment 19 Fabio Bonelli 2006-08-13 08:26:23 UTC
*** Bug 351105 has been marked as a duplicate of this bug. ***
Comment 20 Christian Persch 2006-08-13 22:49:03 UTC
*** Bug 351210 has been marked as a duplicate of this bug. ***
Comment 21 Wouter Bolsterlee (uws) 2006-08-14 07:29:28 UTC
*** Bug 351248 has been marked as a duplicate of this bug. ***
Comment 22 Rob Bradford 2006-08-14 16:46:02 UTC
*** Bug 351307 has been marked as a duplicate of this bug. ***
Comment 23 Diego Escalante Urrelo (not reading bugmail) 2006-08-15 02:52:49 UTC
*** Bug 351393 has been marked as a duplicate of this bug. ***
Comment 24 Fabio Bonelli 2006-08-16 17:42:49 UTC
*** Bug 351641 has been marked as a duplicate of this bug. ***
Comment 25 Jonathon Jongsma 2006-08-24 02:52:34 UTC
*** Bug 352607 has been marked as a duplicate of this bug. ***
Comment 26 André Klapper 2006-08-30 03:04:06 UTC
*** Bug 353490 has been marked as a duplicate of this bug. ***
Comment 27 Brent Smith (smitten) 2006-09-03 17:30:45 UTC
chpe, can you try to reproduce this with gnomevfs HEAD?  I think Christian Kellner might have fixed the issue with a patch:

2006-09-01  Christian Kellner  <gicmo@gnome.org>

        * modules/http-neon-method.c: Never try to the resolve the status
        of a neon request after a call to http_follow_redirect().
        Fixes #353337

I can't seem to reproduce here.

Thanks!
Comment 28 Christian Persch 2006-09-03 17:50:47 UTC
Yes, I can still reproduce this in gnome-vfs HEAD, with the steps from comment 9.
Comment 29 Reinout van Schouwen 2006-09-03 21:30:54 UTC
*** Bug 354173 has been marked as a duplicate of this bug. ***
Comment 30 Frédéric Bellaiche 2006-09-04 21:35:16 UTC
... and I can also reproduce it after upgrading to gnome-vfs-2.16.0 (and epiphany 2.16.0) 
Comment 31 Christian Neumair 2006-09-14 19:45:21 UTC
Created attachment 72811 [details] [review]
Proposed Patch

The attached patch refcounts the neon module.

Note that foreach textual method, we call the GnomeVFSModule's init and shutdown functions, which requires us to do ref-counting for proper resource freeing.
Comment 32 Christian Neumair 2006-09-15 19:30:29 UTC
Committed, closing.