Segfault

Tim Wunder tim@thewunders.org
Mon, 29 Jul 2002 11:15:14 -0400


On 7/29/2002 10:10 AM, someone claiming to be Derek Atkins wrote:
> gnucash-env gdb /path/to/guile gdb> run -e main -s
> /gnucash-prefix/libexec/overrides/gnucash
> 
> -derek
> 

Thanks.
FWIW
gdb> run -e main -s /usr/local/libexec/gnucash/overrides/gnucash

> Tim Wunder <tim@thewunders.org> writes:
> 
> 
>> I keep getting segfaults on current CVS. Due to my lack of
>> cluefullness in getting gnucash to run through gdb, I don't have a
>> backtrace. But I do have this: <quote> ** WARNING **: Failed to
>> dlopen() '/usr/local/lib/gnucash/libgw-glib.la': file not found
>> 
>> This is a development version. It may or may not work. Report bugs
>> and other problems to gnucash-devel@gnucash.org. The last stable
>> version was GnuCash 1.6.6 The next stable version will be GnuCash
>> 1.8.0
>> 
>> GLib-CRITICAL **: file gdate.c: line 1184 (g_date_compare):
>> assertion `g_date_valid (lhs)' failed. </quote>
>> 
>> I've /been/ getting the libgw-glib.la warning for a while, and
>> everything was working fine. I'll need detailed instructions on how
>> to run gnucash thru gdb in order to provide a backtrace :-(
>> 
>> 


OK, thanks (mostly) to derek, I got gnucash to run thru gdb. Here's more info:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 14501)]
0x401491c0 in free () from /lib/libc.so.6
(gdb) 
#1  0x402afa6b in g_free () from /opt/gnome/lib/libglib-1.2.so.0
#2  0x40272322 in gnc_sxsl_del_vars_table_ea (key=0x402945cb, value=0x86af820, user_data=0x0) at dialog-sxsincelast.c:1650
#3  0x402ab563 in g_hash_table_foreach () from /opt/gnome/lib/libglib-1.2.so.0
#4  0x4027286e in create_each_transaction_helper (t=0x8537b78, d=0xbffff14c) at dialog-sxsincelast.c:1843
#5  0x402d5f64 in xaccAccountVisitUnvisitedTransactions (acc=0x8527aa0, proc=0x40272334 <create_each_transaction_helper>, 
    data=0xbffff14c, visited_txns=0x86af320) at Account.c:2686
#6  0x402d5fd9 in xaccAccountForEachTransaction (acc=0x8527aa0, proc=0x40272334 <create_each_transaction_helper>, 
    data=0xbffff14c) at Account.c:2708
#7  0x40272b46 in create_transactions_on (sx=0x85290c0, gd=0x851ee78, tci=0x0, createdGUIDs=0xbffff18c)
    at dialog-sxsincelast.c:1947
#8  0x4027137b in process_auto_create_list (autoCreateList=0x851140c, sxsld=0x812ec18) at dialog-sxsincelast.c:1092
#9  0x40270e57 in sxsincelast_init (sxsld=0x812ec18) at dialog-sxsincelast.c:916
#10 0x4026fd95 in gnc_ui_sxsincelast_dialog_create () at dialog-sxsincelast.c:330
#11 0x4026fc68 in gnc_ui_sxsincelast_guile_wrapper (bookfile=0x851ee00 "/home/dad/Documents/Financial/GNUCash-CVS/acct")
    at dialog-sxsincelast.c:279
#12 0x4009b5bd in gw__tmp788_gnc_ui_sxsincelast_guile_wrapper_wrapper (gw__scm_arg0=1091552160) at gw-gnc.c:1298
#13 0x4003d552 in scm_deval () from /usr/lib/libguile.so.9
#14 0x4003e079 in scm_dapply () from /usr/lib/libguile.so.9
#15 0x40038704 in scm_apply () from /usr/lib/libguile.so.9
#16 0x4003922f in scm_for_each () from /usr/lib/libguile.so.9
#17 0x4003d552 in scm_deval () from /usr/lib/libguile.so.9
#18 0x4003e079 in scm_dapply () from /usr/lib/libguile.so.9
---Type <return> to continue, or q <return> to quit---


This could very well be a problem with my system. I get a segfault in libc.so.6 when trying to run krecord under kde3. FYI: /lib/libc.so.6 -> libc.2.2.4.so