Crash in dialog_file_access.c (was Re: Trouble compiling)

Sebastian Held sebastian.held at gmx.de
Fri Apr 3 14:54:53 EDT 2009


Yes, it crashes.
But if it doesn't for you, I will distclean my build folder and compile
it again.
btw. I'm using gcc-4.3.3

br,
Sebastian

Phil Longstaff schrieb:
> It's not crashing for me on win32.  Sebastian, you showed the results when it hit the breakpoint in gdb, but does it crash for you?  I don't see that from your e-mail.
>
> Phil
>
>
>
> ________________________________
> From: Phil Longstaff <plongstaff at rogers.com>
> To: Gnucash list <gnucash-devel at lists.gnucash.org>
> Sent: Friday, April 3, 2009 9:18:57 AM
> Subject: Crash in dialog_file_access.c (was Re: Trouble compiling)
>
> I got my win32 build environment running so I'll look at this as soon as I can.
>
> Phil
>
>
>
>
> ________________________________
> From: Sebastian Held <sebastian.held at gmx.de>
> To: Phil Longstaff <plongstaff at rogers.com>
> Cc: David Reiser <dbreiser at earthlink.net>; Derek Atkins <warlord at MIT.EDU>; Gnucash list <gnucash-devel at lists.gnucash.org>
> Sent: Thursday, April 2, 2009 3:19:10 PM
> Subject: Re: Trouble compiling
>
> Same (rev18012) here on windows:
>
> 63A4A37E  libgobject-2.0-0.dll:63A4A37E  g_object_connect
> 64F0BAE3  libgncmod-gnome-utils.dll:64F0BAE3  gnc_ui_file_access 
> dialog-file-access.c:234
> 64F0BC72  libgncmod-gnome-utils.dll:64F0BC72 
> gnc_ui_file_access_for_save_as  dialog-file-access.c:275
> 6E36706F  libgnc-gnome-0.dll:6E36706F 
> gnc_main_window_cmd_file_save_as  gnc-plugin-basic-commands.c:393
>
> (gdb) break dialog-file-access.c:234
> ...
> (gdb) list 234
> 234             g_object_connect( G_OBJECT(faw->cb_uri_type),
> "signal::changed", cb_uri_type_changed_cb, NULL );
> (gdb) info local
> faw = (FileAccessWindow *) 0x1e3a6c0
> xml = (GladeXML *) 0x16aae00
> box = (GtkWidget *) 0x65c41273
> ds_node = (GList *) 0x1296850
> op = (GtkButton *) 0x3eb4f60
> align = (GtkWidget *) 0x3eafd68
> fileChooser = (GtkFileChooserWidget *) 0x3ec4360
> fileChooserAction = GTK_FILE_CHOOSER_ACTION_SAVE
> list = (GList *) 0x1d5c7a0
> node = (GList *) 0x22f318
> uri_type_container = (GtkWidget *) 0x3e9f918
> __PRETTY_FUNCTION__ = "gnc_ui_file_access"
> (gdb) p *faw
> $2 = {type = 1, dialog = 0x3ec7008, frame_file = 0x3eafd00, 
>   frame_database = 0x3eafb60, fileChooser = 0x3ec4360, 
>   cb_uri_type = 0x3ed7010, tf_host = 0x3eaa0c0, tf_database =
> 0x3eaa170, 
>   tf_username = 0x3eaa220, tf_password = 0x3eaa2d0}
> (gdb) p cb_uri_type_changed_cb
> $3 = {void (GtkComboBox *)} 0x64f0b688 <cb_uri_type_changed_cb>
>
>
> Sadly I'm currently learning gtk/glib so I'll stop here.
>
> Sebastian
>
> Phil Longstaff schrieb: 
> This part of the code creates a text combo box to contain the access types (xml, mysql, sqlite3, ...).  Line 234 is:
>       g_object_connect( G_OBJECT(faw->cb_uri_type), "signal::changed", cb_uri_type_changed_cb, NULL );
>
> Works fine on linux. I have no clue.
>
> Phil
>
>
>
>
> ________________________________
> From: David Reiser <dbreiser at earthlink.net>
> To: Derek Atkins <warlord at MIT.EDU>
> Cc: Phil Longstaff <plongstaff at rogers.com>; Gnucash list <gnucash-devel at lists.gnucash.org>
> Sent: Thursday, April 2, 2009 11:54:38 AM
> Subject: Re: Trouble compiling
>
> No.  I have upgraded a couple dependencies since I first mentioned this, but the attached crash log is from gnucash built last night from 18012 with no other updates after.
>
> Dave
>
> On Apr 2, 2009, at 10:22 AM, Derek Atkins wrote:
>
>   
> Did you change out dependencies after you configured/compiled?
>
> -derek
>
> David Reiser <dbreiser at earthlink.net> writes:
>
>
> On Apr 1, 2009, at 1:42 PM, Phil Longstaff wrote:
>
>
> [...]
>
> Once gnucash is started, either with a new file and set of accounts,
> or by
> loading your old data, select FIle -> Save As.
>
> [...]
>
> After choosing save as, I get a bus error.
>
> Thread 0 Crashed:
> 0   libSystem.B.dylib                 0x91deac60 strncmp + 224
> 1   libgobject-2.0.0.dylib            0x0186f590 g_object_connect + 248
> 2   libgncmod-gnome-utils.dylib       0x0035f7e8 gnc_ui_file_access
> +  1088 (dialog-file-access.c:234)
> 3   libgncmod-gnome-utils.dylib       0x0035f9d8
> gnc_ui_file_access_for_save_as + 24 (dialog-file-access.c:275)
> 4   libgnc-gnome.0.dylib              0x0020087c
> gnc_main_window_cmd_file_save_as + 140
> (gnc-plugin-basic-commands.c:389)
> 5   libgobject-2.0.0.dylib            0x0186ae1c g_closure_invoke + 396
> 6   libgobject-2.0.0.dylib            0x0187bbe4
> signal_emit_unlocked_R +  2644
> 7   libgobject-2.0.0.dylib            0x0187cff4
> g_signal_emit_valist +  1892
> 8   libgobject-2.0.0.dylib            0x0187d234 g_signal_emit + 44
> 9   libgtk-x11-2.0.0.dylib            0x00dd099c
> _gtk_action_emit_activate + 88
> 10  libgobject-2.0.0.dylib            0x0186ae1c g_closure_invoke + 396
> 11  libgobject-2.0.0.dylib            0x0187bbe4
> signal_emit_unlocked_R +  2644
> 12  libgobject-2.0.0.dylib            0x0187cff4
> g_signal_emit_valist +  1892
> 13  libgobject-2.0.0.dylib            0x0187d234 g_signal_emit + 44
> 14  libgtk-x11-2.0.0.dylib            0x00fa070c gtk_widget_activate + 148
> 15  libgtk-x11-2.0.0.dylib            0x00ea2d48
> gtk_menu_shell_activate_item + 352
> 16  libgtk-x11-2.0.0.dylib            0x00ea2e8c
> gtk_menu_shell_button_release + 232
> 17  libgtk-x11-2.0.0.dylib            0x00e9087c
> _gtk_marshal_BOOLEAN__BOXED + 204
> 18  libgobject-2.0.0.dylib            0x0186ae1c g_closure_invoke + 396
> 19  libgobject-2.0.0.dylib            0x0187be08
> signal_emit_unlocked_R +  3192
> 20  libgobject-2.0.0.dylib            0x0187d038
> g_signal_emit_valist +  1960
> 21  libgobject-2.0.0.dylib            0x0187d234 g_signal_emit + 44
> 22  libgtk-x11-2.0.0.dylib            0x00fa0a28
> gtk_widget_event_internal + 760
> 23  libgtk-x11-2.0.0.dylib            0x00e8ea94 gtk_propagate_event + 468
> 24  libgtk-x11-2.0.0.dylib            0x00e8f104 gtk_main_do_event + 1248
> 25  libgdk-x11-2.0.0.dylib            0x011ccc78 gdk_event_dispatch + 124
> 26  libglib-2.0.0.dylib               0x018d9bf4
> g_main_context_dispatch  + 616
> 27  libglib-2.0.0.dylib               0x018db960
> g_main_context_iterate +  1360
> 28  libglib-2.0.0.dylib               0x018dbd5c g_main_loop_run + 872
> 29  libgtk-x11-2.0.0.dylib            0x00e8e1a4 gtk_main + 208
> 30  libgncmod-gnome-utils.dylib       0x003a9b38
> gnc_ui_start_event_loop  + 92 (gnc-gnome-utils.c:450)
> 31  gnucash-bin                       0x000075e0 inner_main + 424
> (gnucash-bin.c:491)
> 32  libguile.17.dylib                 0x0172d764 invoke_main_func + 68
> 33  libguile.17.dylib                 0x016fc478 c_body + 40
> 34  libguile.17.dylib                 0x01775fb8 scm_c_catch + 600
> 35  libguile.17.dylib                 0x016fc42c
> scm_i_with_continuation_barrier + 140
> 36  libguile.17.dylib                 0x016fc4f4
> scm_c_with_continuation_barrier + 68
> 37  libguile.17.dylib                 0x01773c70
> scm_i_with_guile_and_parent + 48
> 38  libguile.17.dylib                 0x0172d704 scm_boot_guile + 52
> 39  gnucash-bin                       0x00007a38 main + 484
> (gnucash-
> bin.c:625)
> 40  gnucash-bin                       0x00003994 start + 64
>
> Mac OS X 10.5.6, gcc 4.0.1
> libdbi 0.8.3
> sqlite 3.6.9
> recent gnome, but not the release from a couple weeks ago.
>
> Dave
> --
> David Reiser
> dbreiser at earthlink.net
>
>
>
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel 
>
>       
> --      Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>       Member, MIT Student Information Processing Board  (SIPB)
>       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
> warlord at MIT.EDU                        PGP key available
>
> --
> David Reiser
> dbreiser at earthlink.net
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sebastian_held.vcf
Type: text/x-vcard
Size: 205 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20090403/86b716c6/attachment.vcf>


More information about the gnucash-devel mailing list