New SX editor sometimes crashes gnucash

David Reiser dbreiser at earthlink.net
Sun Jan 21 20:15:19 EST 2007


On 21 Jan 2007, at 3:04:07 PM, Josh Sled wrote:

> On Sun, 2007-01-21 at 14:19 -0500, David Reiser wrote:
>> [...]
>     (gdb) backtrace
>     [...goodness...]
>

Here's the goodness:

(gdb) bt
#0  0x9004796c in kill ()
#1  0x9012dc14 in abort ()
#2  0x02bc2340 in g_logv ()
#3  0x02bc2400 in g_log ()
#4  0x02bc0ea8 in g_malloc0 ()
#5  0x01047914 in gdc_add_tag_markings (cal=0x732a168, tag=1) at gnc- 
dense-cal.c:1572
#6  0x01047bf0 in gdc_model_update_cb (model=0x67945d0, update_tag=1,  
user_data=0x732a168) at gnc-dense-cal.c:1626
#7  0x02b5137c in g_closure_invoke ()
#8  0x02b6208c in signal_emit_unlocked_R ()
#9  0x02b634b8 in g_signal_emit_valist ()
#10 0x02b66890 in g_signal_emit_by_name ()
#11 0x01048ca4 in gdcs_generic_update (trans=0x67945d0,  
start=0xbfffd034, fs=0x80e8230) at gnc-dense-cal-store.c:190
#12 0x01048dc0 in gnc_dense_cal_store_update_date_end  
(model=0x67945d0, start=0xbfffd034, fs=0x80e8230,  
end_date=0xbfffd03c) at gnc-dense-cal-store.c:213
#13 0x0047ab50 in gnc_sxed_update_cal (sxed=0x8091970) at dialog-sx- 
editor.c:1542
#14 0x0047a82c in endgroup_rb_toggled (b=0x732e150, d=0x8091970) at  
dialog-sx-editor.c:1451
#15 0x02b5137c in g_closure_invoke ()
#16 0x02b6208c in signal_emit_unlocked_R ()
#17 0x02b634b8 in g_signal_emit_valist ()
#18 0x02b6371c in g_signal_emit ()
#19 0x023e13e4 in gtk_radio_button_clicked ()
#20 0x02b5137c in g_closure_invoke ()
#21 0x02b61cb4 in signal_emit_unlocked_R ()
#22 0x02b634b8 in g_signal_emit_valist ()
#23 0x02b6371c in g_signal_emit ()
#24 0x023e131c in gtk_radio_button_clicked ()
#25 0x02b5137c in g_closure_invoke ()
#26 0x02b61cb4 in signal_emit_unlocked_R ()
#27 0x02b634b8 in g_signal_emit_valist ()
#28 0x02b6371c in g_signal_emit ()
#29 0x0047a214 in schedXact_editor_populate (sxed=0x8091970) at  
dialog-sx-editor.c:1325
#30 0x00479af4 in gnc_ui_scheduled_xaction_editor_dialog_create  
(sx=0x7ac51f0, newSX=0) at dialog-sx-editor.c:1203
#31 0x0049d7a8 in gppsl_row_activated_cb (tree_view=0x730eb48,  
path=0x768c8e0, column=0x71f1290, user_data=0x7310000) at gnc-plugin- 
page-sx-list.c:575
#32 0x02b5137c in g_closure_invoke ()
#33 0x02b6208c in signal_emit_unlocked_R ()
#34 0x02b634b8 in g_signal_emit_valist ()
#35 0x02b6371c in g_signal_emit ()
#36 0x024d451c in gtk_tree_view_button_press ()
#37 0x023a6444 in _gtk_marshal_BOOLEAN__BOXED ()
#38 0x02b5137c in g_closure_invoke ()
#39 0x02b622b0 in signal_emit_unlocked_R ()
#40 0x02b63518 in g_signal_emit_valist ()
#41 0x02b6371c in g_signal_emit ()
#42 0x024ed200 in gtk_widget_event_internal ()
#43 0x023a36dc in gtk_propagate_event ()
#44 0x023a441c in gtk_main_do_event ()
#45 0x026b8ef0 in gdk_event_dispatch ()
#46 0x02bba894 in g_main_context_dispatch ()
#47 0x02bbc470 in g_main_context_iterate ()
#48 0x02bbc86c in g_main_loop_run ()
#49 0x023a3a90 in gtk_main ()
#50 0x010572b4 in gnc_ui_start_event_loop () at gnc-gnome-utils.c:386
#51 0x000071d8 in inner_main (closure=0x0, argc=1, argv=0xbfffefb0)  
at gnucash-bin.c:440
#52 0x029de0a8 in scm_boot_guile (argc=0, argv=0x0,  
main_func=0xa0004170 <_current_pid>, closure=0x80808080) at init.c:635
#53 0x00007400 in main (argc=1, argv=0xbfffefb0) at gnucash-bin.c:496


>
> As for a breakpoint ... there's only a couple of places that are
> allocations of memory of variable size:
>
> 1/ gnc-dense-cal.c:recompute_mark_storage.  If possible, please see  
> what
> value of 'dcal->numMarks' is just before executing the g_new0(...) at
> line 675
>
> 2/ gnc-dense-cal.c:gdc_add_tag_markings.  Please see what the value of
> 'num_marks' is just before exectuing the g_new0(...) at line 1572.
>
I'll work on the breakpoints tomorrow. Gotta go be responsible and  
write a lecture for tomorrow in a class I haven't taught before...


> -- 
> ...jsled
> http://asynchronous.org/ - a=jsled;b=asynchronous.org;echo ${a}@${b}
Dave
--
David Reiser
dbreiser at earthlink.net



More information about the gnucash-devel mailing list