enComputerLilyTerm
adm Find login register

A bug in GtkNotebook

Tetralet

joined: 2007-11-27
posted: 255
promoted: 35
bookmarked: 13
1subject: A bug in GtkNotebookPromote 0 Bookmark 02008-04-14quote  

LilyTerm (and all the vtelib based x terminal emulator if used GtkNotebook) crashes if closed the first tab with some font settings.

The code caused crash is:

gtk_notebook_remove_page(GTK_NOTEBOOK(notebook), current_data->current_page_no);

And It is the debug message:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7493720 (LWP 5821)]
0xb336c385 in ?? ()
(gdb) bt
#0  0xb336c385 in ?? ()
#1  0xb77e44b5 in IA__g_cclosure_marshal_VOID__OBJECT (closure=0x814efa0, return_value=0x0, n_param_values=2, 
    param_values=0xbfa43ca4, invocation_hint=0xbfa43bac, marshal_data=0xb336c385) at gmarshal.c:636
#2  0xb77d6929 in IA__g_closure_invoke (closure=0x814efa0, return_value=0x0, n_param_values=2, 
    param_values=0xbfa43ca4, invocation_hint=0xbfa43bac) at gclosure.c:490
#3  0xb77ec3ff in signal_emit_unlocked_R (node=0x807aa70, detail=0, instance=0x80a5900, emission_return=0x0, 
    instance_and_params=0xbfa43ca4) at gsignal.c:2440
#4  0xb77edf33 in IA__g_signal_emit_valist (instance=0x3, signal_id=18, detail=0, var_args=0xbfa43ee0 "")
    at gsignal.c:2199
#5  0xb77ee369 in IA__g_signal_emit (instance=0x80a5900, signal_id=18, detail=0) at gsignal.c:2243
#6  0xb7df57d7 in gtk_widget_propagate_hierarchy_changed_recurse (widget=0x80a5900, client_data=0xbfa43f80)
    at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:6087
#7  0xb7bf8120 in gtk_box_forall (container=0x80a3400, include_internals=1, 
    callback=0xb7df5750 <gtk_widget_propagate_hierarchy_changed_recurse>, callback_data=0xbfa43f80)
    at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtkbox.c:799
#8  0xb7c39777 in IA__gtk_container_forall (container=0x80a3400, 
    callback=0xb7df5750 <gtk_widget_propagate_hierarchy_changed_recurse>, callback_data=0xbfa43f80)
    at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtkcontainer.c:1453
#9  0xb7df581f in gtk_widget_propagate_hierarchy_changed_recurse (widget=0x80a3400, client_data=0xbfa43f80)
    at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:6091
#10 0xb7df965c in _gtk_widget_propagate_hierarchy_changed (widget=0x80a3400, previous_toplevel=0x8083818)
    at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:6128
#11 0xb7e036c8 in IA__gtk_widget_unparent (widget=0x80a3400) at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtkwidget.c:2853
#12 0xb7cf2f0e in gtk_notebook_remove (container=0x809d800, widget=0x80a3400)
    at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtknotebook.c:4352
#13 0xb77e44b5 in IA__g_cclosure_marshal_VOID__OBJECT (closure=0x807dd38, return_value=0x0, n_param_values=2, 
    param_values=0xbfa443b4, invocation_hint=0xbfa442bc, marshal_data=0xb7cf2e00) at gmarshal.c:636
#14 0xb77d5249 in g_type_class_meta_marshal (closure=0x807dd38, return_value=0x0, n_param_values=2, 
    param_values=0xbfa443b4, invocation_hint=0xbfa442bc, marshal_data=0x170) at gclosure.c:567
#15 0xb77d6929 in IA__g_closure_invoke (closure=0x807dd38, return_value=0x0, n_param_values=2, 
    param_values=0xbfa443b4, invocation_hint=0xbfa442bc) at gclosure.c:490
#16 0xb77ec069 in signal_emit_unlocked_R (node=0x807dd70, detail=0, instance=0x809d800, emission_return=0x0, 
    instance_and_params=0xbfa443b4) at gsignal.c:2370
#17 0xb77edf33 in IA__g_signal_emit_valist (instance=0x3, signal_id=76, detail=0, var_args=0xbfa445f0 "")
    at gsignal.c:2199
#18 0xb77ee369 in IA__g_signal_emit (instance=0x809d800, signal_id=76, detail=0) at gsignal.c:2243
#19 0xb7c39fa4 in IA__gtk_container_remove (container=0x809d800, widget=0x80a3400)
    at /tmp/buildd/gtk+2.0-2.12.9/gtk/gtkcontainer.c:1187
#20 0x0804f835 in ?? ()
---Type <return> to continue, or q <return> to quit---
#21 0x0809d800 in ?? ()
#22 0x080a3400 in ?? ()
#23 0xbfa44638 in ?? ()
#24 0xb77d86e5 in IA__g_object_get_data (object=0x804fad4, key=0x80a5900 "") at gobject.c:1862
#25 0x0804fc22 in ?? ()
#26 0x00000000 in ?? ()

 

Any Idea? 

edited: 2

enComputerLilyTerm
adm Find login register
views:4613