gdb $PREFIX/bin/gnucash
bt f 
#0  0x01aefafc in scm_i_string_length (str=0x4) at strings.c:329
No locals.
#1  0x018cbeaa in gnc_scm2guid (guid_scm=0x4) at engine-helpers.c:145
        guid = {
  data = "###\031\032\001\000\000\004\002\000\000\004\002\000", 
  __align_me = 427808904
}
        str = (const gchar *) 0x12141968 <Address 0x12141968 out of bounds>
#2  0x018b4a6a in _wrap_gnc_budget_lookup (s_0=0x4, s_1=0x1ad85a00) at swig-engine.c:18434
        arg1 = (GncGUID *) 0x0
        arg2 = (QofBook *) 0x0
        result = (GncBudget *) 0x0
        g1 = {
  data = "\034\003\000\000P######\031\030U\025\033", 
  __align_me = 796
}
        gswig_result = (SCM) 0x1ac03f3
        gswig_list_p = 0
#3  0x01aa39b8 in deval (x=0x404, env=0x1b1555a0) at eval.c:4359
        arg2 = (SCM) 0x1ad85a00
        proc = (SCM) 0x1af168e0
        arg1 = (SCM) 0x4
        debug = {
  prev = 0xbfffc744, 
  status = 128, 
  vect = 0xbfffbfc0, 
  info = 0xbfffbfc8
}
        debug_info_end = (scm_t_debug_info *) 0xbfffbff0
        __func__ = "deval"
#4  0x01aa2b6f in deval (x=0x1b0e2f68, env=0x1b1555a0) at eval.c:4212
        proc = (SCM) 0x1b0ec740
        arg1 = (SCM) 0x1b0e2fe0
        debug = {
  prev = 0xbfffcbe4, 
  status = 64, 
  vect = 0xbfffc460, 
  info = 0xbfffc488
}
        debug_info_end = (scm_t_debug_info *) 0xbfffc490
        __func__ = "deval"
#5  0x01a9e015 in deval (x=0x1b0e2e58, env=0x1b155758) at eval.c:3397
        form = (const SCM) 0x1b0e3098
        proc = (SCM) 0x16f9e060
        arg1 = (SCM) 0x1b0e2e48
        debug = {
  prev = 0x0, 
  status = 0, 
  vect = 0xbfffc900, 
  info = 0xbfffc908
}
        debug_info_end = (scm_t_debug_info *) 0xbfffc930
        __func__ = "deval"
#6  0x01a9cdbc in scm_i_eval_x (exp=0x1b0e3118, env=0x1b0e2e78) at eval.c:5900
No locals.
#7  0x01a9cf87 in scm_primitive_eval_x (exp=0x1b0e3118) at eval.c:5921
        env = (SCM) 0x1b0e2e78
        transformer = (SCM) 0x4
#8  0x01b04990 in inner_eval_string (data=0x1b0e3150) at strports.c:500
        port = (SCM) 0x1b0e3150
        form = (SCM) 0x1b0e3118
        ans = (SCM) 0x504
#9  0x01aa795f in scm_c_with_fluid (fluid=0x387e450, value=0x5dd9f00, cproc=0x1b04970 <inner_eval_string>, cdata=0x1b0e3150) at fluids.c:463
        ans = (SCM) 0x18c
#10 0x01ac33ee in scm_c_call_with_current_module (module=0x5dd9f00, func=0x1b04970 <inner_eval_string>, data=0x1b0e3150) at modules.c:107
No locals.
#11 0x01b04a70 in scm_eval_string_in_module (string=0x1ad87d70, module=0x5dd9f00) at strports.c:527
        port = (SCM) 0x1b0e3150
#12 0x01b04a8f in scm_eval_string (string=0x1ad87d70) at strports.c:535
No locals.
#13 0x01b0494a in scm_c_eval_string (expr=0x36c3050 "(let ((options (gnc:report-template-new-options/report-guid \"ecc35ea9dbfa4e20ba389fc85d59cb69\" \"Budget Balance Sheet\"))) (let ((option (gnc:lookup-option options \"General\" \"Budget\"))) ((lambda (option"...) at strports.c:481
No locals.
#14 0x00046750 in gnc_plugin_page_report_recreate_page (window=0x4015018, key_file=0x38843e8, group_name=0x36b8a30 "Page 3") at gnc-plugin-page-report.c:847
        page = (GncPluginPage *) 0x36451f0
        keys = (gchar **) 0x36b3de0
        i = 2
        num_keys = 3
        error = (GError *) 0x0
        option_string = (gchar *) 0x36c3050 "(let ((options (gnc:report-template-new-options/report-guid \"ecc35ea9dbfa4e20ba389fc85d59cb69\" \"Budget Balance Sheet\"))) (let ((option (gnc:lookup-option options \"General\" \"Budget\"))) ((lambda (option"...
        report_id = 56691632
        scm_id = (SCM) 0x352da60
        final_id = (SCM) 0x4
        report = (SCM) 0xbfffcf58
        __PRETTY_FUNCTION__ = "subaccount_trans\000damas\000dtmas\000subaccou"
#15 0x002a3346 in gnc_plugin_page_recreate_page (window=0x4015018, page_type=0x36c2e10 "GncPluginPageReport", key_file=0x38843e8, page_group=0x36b8a30 "Page 3") at gnc-plugin-page.c:272
        klass = (GncPluginPageClass *) 0x36b8ab0
        page = (GncPluginPage *) 0x0
        type = 56906224
        __PRETTY_FUNCTION__ = "####\000\003\000\000\004#####000\003\000\000\004######00\003\000\000\004\000!\f\000\003"
#16 0x0029206f in gnc_main_window_restore_page (window=0x4015018, data=0xbfffd0fc) at gnc-main-window.c:574
        priv = (GncMainWindowPrivate *) 0x40150c8
        page = (GncPluginPage *) 0x0
        page_group = (gchar *) 0x36b8a30 "Page 3"
        page_type = (gchar *) 0x36c2e10 "GncPluginPageReport"
        name = (gchar *) 0x0
        class_type = (const gchar *) 0xbfffd028 "####i+)"
        error = (GError *) 0x0
        __PRETTY_FUNCTION__ = "_menu\000_gtk_notebook_get_curre"
#17 0x00292b69 in gnc_main_window_restore_window (window=0x4015018, data=0xbfffd0fc) at gnc-main-window.c:802
        priv = (GncMainWindowPrivate *) 0x40150c8
        action = (GtkAction *) 0x3836278
        pos = (gint *) 0x32825c0
        geom = (gint *) 0x32a1050
        order = (gint *) 0x0
        length = 2
        max = 0
        visible = 1
        desired_visibility = 1
        window_group = (gchar *) 0x32a4860 "Window 1"
        page_start = 1
        page_count = 4
        i = 2
        error = (GError *) 0x0
        __PRETTY_FUNCTION__ = "k_notebook_reorder_child\000_gtk_n"
#18 0x00292ed5 in gnc_main_window_restore_all_windows (keyfile=0x38843e8) at gnc-main-window.c:884
        i = 0
        window_count = 1
        error = (GError *) 0x0
        data = {
  key_file = 0x38843e8, 
  group_name = 0x6e672820 <Address 0x6e672820 out of bounds>, 
  window_num = 0, 
  page_num = 2, 
  page_offset = 1
}
        window = (GncMainWindow *) 0x4015018
        __PRETTY_FUNCTION__ = "_menu\000_gtk_osxapplication_set_menu_b"
#19 0x000bf31f in gnc_restore_all_state (session=0x5f58c90, unused=0x0) at top-level.c:301
        keyfile = (GKeyFile *) 0x38843e8
        book = (QofBook *) 0x383c230
        guid = (const GncGUID *) 0x383c270
        url = (const gchar *) 0x5f84000 "file:///Users/john/Documents/Downloads/Archive/contasdomesticas.xml.gnucash"
        guid_string = (const gchar *) 0x325a500 "ca2826c1082df394141c54312e1d916f"
        file_guid = (gchar *) 0x32865a0 "ca2826c1082df394141c54312e1d916f"
        error = (GError *) 0x0
        __PRETTY_FUNCTION__ = "#E####\004\000\000\000#E####b#\004$###"
#20 0x0188ef3a in call_c_hook (hook=0x4033140, data=0x5f58c90) at gnc-hooks.c:273
        __PRETTY_FUNCTION__ = "E###00\000\000\000###000\000\000#"
#21 0x02f245bd in g_hook_list_marshal (hook_list=0x352c860, may_recurse=1, marshaller=0x188ee90 <call_c_hook>, data=0x5f58c90) at ghook.c:387
        was_in_call = 0
        hook = (GHook *) 0x4033140
        __PRETTY_FUNCTION__ = "#####@\004#D$\004#E\b#\004$###34\031"
#22 0x0188f0c8 in gnc_hook_run (name=0x2e98c8 "hook_book_opened", data=0x5f58c90) at gnc-hooks.c:289
        hook = (GncHook *) 0x352c810
        __PRETTY_FUNCTION__ = "##\036#E####006###!"
#23 0x00288bfc in gnc_book_opened () at gnc-file.c:484
No locals.
#24 0x00289750 in gnc_post_file_open (filename=0x5f4d970 "/Users/john/Documents/Downloads/Archive/contasdomesticas.xml.gnucash") at gnc-file.c:888
        current_session = (QofSession *) 0x5f58c90
        new_session = (QofSession *) 0x5f58c90
        new_book = (QofBook *) 0x0
        invalid_account_names = (GList *) 0x0
        uh_oh = 0
        newfile = 0x354b1d0 "\r"
        io_err = ERR_BACKEND_NO_ERR
        protocol = (gchar *) 0x3554990 "file"
        hostname = (gchar *) 0x0
        username = (gchar *) 0x0
        password = (gchar *) 0x0
        path = (gchar *) 0x3556110 "/Users/john/Documents/Downloads/Archive/contasdomesticas.xml.gnucash"
        port = 0
        __PRETTY_FUNCTION__ = "\000\000\000$\000\000\0005\001\000\000\001\000\000\000N\001\000"
#25 0x002898fa in gnc_file_open_file (newfile=0x5f4d970 "/Users/john/Documents/Downloads/Archive/contasdomesticas.xml.gnucash") at gnc-file.c:955
No locals.
#26 0x0001c0f2 in inner_main (closure=0x0, argc=1, argv=0xbfffd65c) at gnucash-bin.c:722
        main_mod = (SCM) 0x5dd9f00
        fn = 0x5f4d970 "/Users/john/Documents/Downloads/Archive/contasdomesticas.xml.gnucash"
        error = (GError *) 0x0
#27 0x01abede1 in invoke_main_func (body_data=0xbfffd5ac) at init.c:367
        closure = (struct main_func_closure *) 0xbfffd5ac
#28 0x01a82ebd in c_body (d=0xbfffd524) at continuations.c:349
        data = (struct c_data *) 0xbfffd524
#29 0x01b09f72 in scm_c_catch (tag=0x104, body=0x1a82ea1 <c_body>, body_data=0xbfffd524, handler=0x1a82ecc <c_handler>, handler_data=0xbfffd524, pre_unwind_handler=0x1b0a863 <scm_handle_by_message_noexit>, pre_unwind_handler_data=0x0) at throw.c:203
        jbr = {
  buf = {59179903, 0, 8098, 28351833, 4, 28056790, 0, 98408824, -1073752920, -1073753056, 385220639, 2097810, 28352012, 23, 385417247, 31, 28508160, 28049463}, 
  throw_tag = 0x325eec4, 
  retval = 0x16be5290
}
        jmpbuf = (SCM) 0x5dd9970
        answer = (SCM) 0x404
        pre_unwind = {
  handler = 0x1b0a863 <scm_handle_by_message_noexit>, 
  handler_data = 0x0, 
  running = 0, 
  lazy_catch_p = 0
}
#30 0x01a82e71 in scm_i_with_continuation_barrier (body=0x1a82ea1 <c_body>, body_data=0xbfffd524, handler=0x1a82ecc <c_handler>, handler_data=0xbfffd524, pre_unwind_handler=0x1b0a863 <scm_handle_by_message_noexit>, pre_unwind_handler_data=0x0) at continuations.c:325
        stack_item = 28343714
        thread = (scm_i_thread *) 0x325ee50
        old_controot = (SCM) 0x16f63248
        old_contbase = (SCM_STACKITEM *) 0xbfffd554
        old_lastframe = (scm_t_debug_frame *) 0x0
        result = (SCM) 0xbfffd4f8
#31 0x01a82f3c in scm_c_with_continuation_barrier (func=0x1abed89 <invoke_main_func>, data=0xbfffd5ac) at continuations.c:367
        c_data = {
  func = 0x1abed89 <invoke_main_func>, 
  data = 0xbfffd5ac, 
  result = 0x0
}
#32 0x01b07f2a in scm_i_with_guile_and_parent (func=0x1abed89 <invoke_main_func>, data=0xbfffd5ac, parent=0x0) at threads.c:733
        res = (void *) 0x8fe11f5e
        really_entered = 1
        base_item = 0
#33 0x01b07ef7 in scm_with_guile (func=0x1abed89 <invoke_main_func>, data=0xbfffd5ac) at threads.c:721
No locals.
#34 0x01abed68 in scm_boot_guile (argc=1, argv=0xbfffd65c, main_func=0x1bfad <inner_main>, closure=0x0) at init.c:350
        res = (void *) 0x1
        c = {
  main_func = 0x1bfad <inner_main>, 
  closure = 0x0, 
  argc = 1, 
  argv = 0xbfffd65c
}
#35 0x0001c5b6 in main (argc=1, argv=0xbfffd65c) at gnucash-bin.c:885
No locals.
