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 172882 - crash in gtk_widget_unparent
crash in gtk_widget_unparent
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
git master
Other Linux
: High critical
: 1.8
Assigned To: Epiphany Maintainers
Marco Pesenti Gritti
: 313425 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-04-06 22:31 UTC by Sebastien Bacher
Modified: 2005-10-02 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed fix (23.17 KB, patch)
2005-06-12 19:50 UTC, Christian Persch
committed Details | Review

Description Sebastien Bacher 2005-04-06 22:31:46 UTC
<reinouts> chpe: click the screenshot on http://www.datux.nl/
<reinouts> then close the window
<reinouts> => segfault
..
<reinouts> chpe: yes but it's different, the window auto-closes when I move the
cursor, and ephy only crashes when I do Ctrl+W


backtrace:

Backtrace was generated from '/usr/bin/epiphany'
 
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1224150368 (LWP 20775)]
[New Thread -1294304336 (LWP 20782)]
[New Thread -1285915728 (LWP 20781)]
[New Thread -1277527120 (LWP 20780)]
[New Thread -1269138512 (LWP 20779)]
[New Thread -1259492432 (LWP 20778)]
[New Thread -1250993232 (LWP 20777)]
[New Thread -1234519120 (LWP 20776)]
0xb7c3dfc1 in __waitpid_nocancel () from /lib/tls/libpthread.so.0

Thread 1 (Thread -1224150368 (LWP 20775))

  • #0 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 741
  • #2 nsProfileLock::FatalSignalHandler
    from /usr/lib/mozilla-firefox/libgtkembedmoz.so
  • #3 <signal handler called>
  • #4 IA__gtk_widget_unparent
    at gtkwidget.c line 1880
  • #5 gtk_notebook_real_remove
    at gtknotebook.c line 2670
  • #6 IA__gtk_notebook_remove_page
    at gtknotebook.c line 4435
  • #7 ephy_notebook_remove_tab
  • #8 ephy_window_remove_tab
  • #9 window_cmd_file_close_window
  • #10 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #15 _gtk_action_emit_activate
    at gtkaction.c line 1035
  • #16 closure_accel_activate
    at gtkaction.c line 1427
  • #17 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #18 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #19 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #21 IA__gtk_accel_group_activate
    at gtkaccelgroup.c line 766
  • #22 IA__gtk_accel_groups_activate
    at gtkaccelgroup.c line 804
  • #23 IA__gtk_window_activate_key
    at gtkwindow.c line 7359
  • #24 gtk_window_key_press_event
    at gtkwindow.c line 4455
  • #25 ephy_window_get_type
  • #26 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #27 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #28 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #29 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #30 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #31 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #32 gtk_widget_event_internal
    at gtkwidget.c line 3631
  • #33 IA__gtk_propagate_event
    at gtkmain.c line 2119
  • #34 IA__gtk_main_do_event
    at gtkmain.c line 1383
  • #35 gdk_event_dispatch
    at gdkevents-x11.c line 2220
  • #36 g_main_depth
    from /usr/lib/libglib-2.0.so.0
  • #37 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #38 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #39 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #40 IA__gtk_main
    at gtkmain.c line 963
  • #41 main
  • #0 __waitpid_nocancel
    from /lib/tls/libpthread.so.0

Comment 1 Jean-François Rameau 2005-04-07 21:57:58 UTC
Comments are for CVS HEAD + FF backend + focus patch applied.

The problem seems to be relative to onblur event where the javascript try to
close the window after catching a focus-out event.

See http://bugzilla.gnome.org/show_bug.cgi?id=172878 for a testcase.

Other ways to crash epiphany in the same context are:

- Ctrl+T to open a new tab, 
- Ctrl-W to close the window

A side effect too: if the sidebar is showed, try to use the combo box to switch
sidebars => crash.

And a random crash to close the comments:

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

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1208940864 (LWP 16440)]
[New Thread 78678960 (LWP 16516)]
[Thread debugging using libthread_db enabled]
[New Thread -1208940864 (LWP 16440)]
[New Thread 78678960 (LWP 16516)]
[Thread debugging using libthread_db enabled]
[New Thread -1208940864 (LWP 16440)]
[New Thread 78678960 (LWP 16516)]
[New Thread -1222775888 (LWP 16508)]
[New Thread 58145712 (LWP 16442)]
[New Thread -1211389008 (LWP 16441)]
0x00e907a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

Thread 1 (Thread -1208940864 (LWP 16440))

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 nsProfileLock::FatalSignalHandler
    at nsProfileLock.cpp line 209
  • #4 <signal handler called>
  • #5 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #6 raise
    from /lib/tls/libc.so.6
  • #7 abort
    from /lib/tls/libc.so.6
  • #8 IA__g_logv
    at gmessages.c line 492

Comment 2 Christian Persch 2005-06-12 19:50:59 UTC
Created attachment 47665 [details] [review]
proposed fix

This patch seems to fix all crash/warning on tab/window close issues. Tested
extensively with the galeon popup testcases; more testing appreciated.
Comment 3 Christian Persch 2005-08-21 15:11:33 UTC
*** Bug 313425 has been marked as a duplicate of this bug. ***
Comment 4 Christian Persch 2005-10-02 18:50:56 UTC
Fixed on HEAD and gnome-2-12.