[grisbi-bugs] [Grisbi-0.5.9-fixes 0000415]: crash when creating a new account or opening a .gsb file

bugtracker at grisbi.org bugtracker at grisbi.org
Sun Jan 31 07:34:34 CET 2010


The following issue has been CLOSED 
====================================================================== 
http://grisbi.tuxfamily.org/mantis/view.php?id=415 
====================================================================== 
Reported By:                eviaud
Assigned To:                
====================================================================== 
Project:                    Grisbi-0.5.9-fixes
Issue ID:                   415
Category:                   Main
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             11-03-2008 19:13 UTC
Last Modified:              01-31-2010 06:34 UTC
====================================================================== 
Summary:                    crash when creating a new account or opening a .gsb
file
Description: 
Hi.

I have a segfault when I try to create a new bank account (or try to open
an existing grisbi file). The crash appeared when I upgraded from gtk+
2.12.7 to gtk+ 2.12.11.

Here is the backtrace:
#gdb ./grisbi
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under
certain conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details. This GDB was configured as "amd64-unknown-openbsd4.4"...
(gdb) r
Starting
program:
/home/manu/ports/build_ports/grisbi-0.5.9p1/grisbi-0.5.9/src/grisbi 

Program received signal SIGSEGV, Segmentation fault.
0x0000000210a76ff7 in g_type_fundamental ()
from /usr/local/lib/libgobject-2.0.so.1600.1
(gdb) bt
http://grisbi.tuxfamily.org/mantis/view.php?id=0  0x0000000210a76ff7 in
g_type_fundamental ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=1  0x0000000210a61175 in
g_object_new ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=2  0x0000000000564ff5 in
gtk_list_button_new (text=0x20221bd90 "No
name 1", group=2, can_drag=1, data=0x0) at gtk_list_button.c:178
http://grisbi.tuxfamily.org/mantis/view.php?id=3  0x000000000056f8fd in
comptes_appel (no_de_compte=0) at
operations_comptes.c:216
http://grisbi.tuxfamily.org/mantis/view.php?id=4  0x000000000056ffee in
reaffiche_liste_comptes () at
operations_comptes.c:421
http://grisbi.tuxfamily.org/mantis/view.php?id=5  0x000000000056f690 in
creation_liste_comptes () at
operations_comptes.c:135
http://grisbi.tuxfamily.org/mantis/view.php?id=6  0x000000000057e637 in
creation_onglet_operations () at
operations_onglet.c:69
http://grisbi.tuxfamily.org/mantis/view.php?id=7  0x00000000005492a3 in
creation_fenetre_principale () at
fenetre_principale.c:71
http://grisbi.tuxfamily.org/mantis/view.php?id=8  0x000000000054bcba in
nouveau_fichier () at fichiers_gestion.c:105
http://grisbi.tuxfamily.org/mantis/view.php?id=9  0x000000020a437a63 in
gtk_item_factory_new ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=10 0x0000000210a6f97d in
g_cclosure_marshal_VOID__VOID ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=11 0x0000000210a5ed14 in
g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=12 0x0000000210a6f4d6 in
g_signal_emit_by_name ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=13 0x0000000210a6e4b8 in
g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=14 0x0000000210a6e7b3 in
g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=15 0x000000020a55574a in
gtk_widget_activate ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=16 0x000000020a45f3c0 in
gtk_menu_shell_activate_item ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=17 0x000000020a45e98e in
gtk_menu_shell_deactivate ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=18 0x000000020a456b64 in
gtk_menu_reorder_child ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=19 0x000000020a44f1d5 in
gtk_marshal_VOID__UINT_STRING ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=20 0x0000000210a5efb0 in
g_cclosure_new_swap ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=21 0x0000000210a5ed14 in
g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=22 0x0000000210a6ef57 in
g_signal_emit_by_name ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=23 0x0000000210a6e287 in
g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=24 0x0000000210a6e7b3 in
g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=25 0x000000020a555551 in
gtk_widget_send_expose ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=26 0x000000020a44dcf5 in
gtk_propagate_event ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=27 0x000000020a44cee1 in
gtk_main_do_event ()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=28 0x00000002083601bc in
gdk_x11_register_standard_event_type ()
from /usr/local/lib/libgdk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=29 0x0000000205194583 in
g_source_is_destroyed ()
from /usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=30 0x00000002051955c8 in
g_main_context_dispatch ()
from /usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=31 0x000000020519589c in
g_main_context_dispatch ()
from /usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=32 0x0000000205195d99 in
g_main_loop_run ()
from /usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=33 0x000000020a44c701 in gtk_main
()
from /usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=34 0x000000000056c435 in main
(argc=1, argv=0x7f7ffffd6088) at
main.c:456
(gdb) frame 2
http://grisbi.tuxfamily.org/mantis/view.php?id=2 0x0000000000564ff5 in
gtk_list_button_new (text=0x20221bd90 "No name
1", group=2, can_drag=1, data=0x0) at gtk_list_button.c:178
178 list_button = g_object_new (GTK_TYPE_LIST_BUTTON, NULL);
(gdb) 

Can it be linked to the fact that the function g_object_new wants a GType
for its first parameter whereas GTK_TYPE_LIST_BUTTON uses the now
deprecated GtkType system ?


On a side note, I have the same kind of problem with CVS head (checkout
one day ago):

#gdb ./grisbi
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "amd64-unknown-openbsd4.4"...
(gdb) r
Starting program: /home/manu/downloads/devel/grisbi/src/grisbi 

(grisbi:9315): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed

Program received signal SIGSEGV, Segmentation fault.
0x000000020d2f55d0 in g_type_is_a () from
/usr/local/lib/libgobject-2.0.so.1600.1
(gdb) bt
http://grisbi.tuxfamily.org/mantis/view.php?id=0  0x000000020d2f55d0 in
g_type_is_a () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=1  0x000000020ee3ad84 in
gtk_type_new () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=2  0x00000000004ab945 in
gtk_combofix_new_complex (list=0x200ac9ba0) at
gtk_combofix.c:189
http://grisbi.tuxfamily.org/mantis/view.php?id=3  0x0000000000499b6b in
gsb_form_widget_create (element_number=6,
account_number=0) at gsb_form_widget.c:183
http://grisbi.tuxfamily.org/mantis/view.php?id=4  0x0000000000493c4c in
gsb_form_fill_from_account (account_number=0) at
gsb_form.c:1209
http://grisbi.tuxfamily.org/mantis/view.php?id=5  0x00000000004939d2 in
gsb_form_show (show=0) at gsb_form.c:1023
http://grisbi.tuxfamily.org/mantis/view.php?id=6  0x00000000004bdc68 in
gsb_gui_navigation_select_line
(selection=0x5427f80, model=0x208ef1d80) at navigation.c:1221
http://grisbi.tuxfamily.org/mantis/view.php?id=7  0x000000020d2ee97d in
g_cclosure_marshal_VOID__VOID () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=8  0x000000020d2ddd14 in
g_closure_invoke () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=9  0x000000020d2ee34c in
g_signal_emit_by_name () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=10 0x000000020d2ed4b8 in
g_signal_emit_valist () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=11 0x000000020d2ed7b3 in
g_signal_emit () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=12 0x000000020ee1625c in
gtk_tree_selection_unselect_range () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=13 0x000000020ee2f1be in
gtk_tree_view_set_reorderable () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=14 0x000000020ee1f7f5 in
gtk_tree_view_get_type () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=15 0x000000020ed421d5 in
gtk_marshal_VOID__UINT_STRING () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=16 0x000000020d2ddfb0 in
g_cclosure_new_swap () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=17 0x000000020d2ddd14 in
g_closure_invoke () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=18 0x000000020d2edf57 in
g_signal_emit_by_name () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=19 0x000000020d2ed287 in
g_signal_emit_valist () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=20 0x000000020d2ed7b3 in
g_signal_emit () from
/usr/local/lib/libgobject-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=21 0x000000020ee48551 in
gtk_widget_send_expose () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=22 0x000000020ed40cf5 in
gtk_propagate_event () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=23 0x000000020ed3fee1 in
gtk_main_do_event () from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=24 0x00000002086571bc in
gdk_x11_register_standard_event_type () from
/usr/local/lib/libgdk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=25 0x000000020a75f583 in
g_source_is_destroyed () from
/usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=26 0x000000020a7605c8 in
g_main_context_dispatch () from
/usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=27 0x000000020a76089c in
g_main_context_dispatch () from
/usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=28 0x000000020a760d99 in
g_main_loop_run () from
/usr/local/lib/libglib-2.0.so.1600.1
http://grisbi.tuxfamily.org/mantis/view.php?id=29 0x000000020ed3f701 in gtk_main
() from
/usr/local/lib/libgtk-x11-2.0.so.1200.10
http://grisbi.tuxfamily.org/mantis/view.php?id=30 0x00000000004b6bc4 in main
(argc=1, argv=0x7f7ffffc17d0) at
main.c:273
(gdb) frame 2
http://grisbi.tuxfamily.org/mantis/view.php?id=2  0x00000000004ab945 in
gtk_combofix_new_complex (list=0x200ac9ba0) at
gtk_combofix.c:189
189         GtkComboFix *combofix = GTK_COMBOFIX ( gtk_type_new (
gtk_combofix_get_type () ) );
====================================================================== 

---------------------------------------------------------------------- 
 pbiava - 01-31-10 06:34  
---------------------------------------------------------------------- 
This is a 0.5.9 bug, therefore, we won't fix it.
We are fully dedicating our efforts to the 0.6 version. The latest version
is the Release Candidate 2 available at
http://sourceforge.net/projects/grisbi/files/ [^]

Please consider migrating to the 0.6 version, and be sure to keep a copy
of your 0.5.9 accounts file as the 0.6 version is not in its final state. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-03-08 19:13  eviaud         New Issue                                    
11-03-08 19:13  eviaud         OS                        => BSD             
11-03-08 19:13  eviaud         Unstable Impact           => Yes             
11-03-08 19:13  eviaud         Version OS                => OpenBSD 4.4 amd64
11-03-08 19:13  eviaud         Version GTK               => 2.12.11         
06-09-09 20:11  MyKeul         Project                  Grisbi =>
Grisbi-0.5.9-fixes
01-31-10 06:34  pbiava         Status                   new => closed       
01-31-10 06:34  pbiava         Note Added: 0001881                          
======================================================================



More information about the bugsreports mailing list