"make check" failure in test-lots
Derek Atkins
warlord at MIT.EDU
Thu Apr 5 18:02:13 EDT 2007
Hey,
As of some recent changeset, "test-lots" is now failing dramatically
in a SEGV.. I need to head out, but maybe someone could test their
recent changes?
-derek
(gdb) run
Starting program: /home/warlord/src/gnucash/gnucash-svk/build/src/engine/test/.libs/lt-test-lots
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xf83000
[Thread debugging using libthread_db enabled]
[New Thread -1208973104 (LWP 18530)]
* 17:44:03 OTHER <gnc.lots> [xaccSplitComputeCapGains()] Malformed Lot "Lot 11"! (too thin!) opening amt=-42781687953552/100 split amt=3046493499336245915/100 baln=3046450717648292363/100
Program received signal SIGABRT, Aborted.
[Switching to Thread -1208973104 (LWP 18530)]
0x00f83402 in __kernel_vsyscall ()
(gdb) where
#0 0x00f83402 in __kernel_vsyscall ()
#1 0x0094bee9 in raise () from /lib/libc.so.6
#2 0x0094d4f1 in abort () from /lib/libc.so.6
#3 0x0062bc42 in g_logv () from /usr/lib/libglib-2.0.so.0
#4 0x0062bc79 in g_log () from /usr/lib/libglib-2.0.so.0
#5 0x00c4be23 in xaccSplitComputeCapGains (split=0x9cd7be0, gain_acc=0x0)
at cap-gains.c:854
#6 0x00c4cf42 in xaccLotComputeCapGains (lot=0x9ea8ce8, gain_acc=0x0)
at cap-gains.c:1128
#7 0x00c3e36c in xaccScrubLot (lot=0x9ea8ce8) at Scrub3.c:145
#8 0x00c3e543 in xaccAccountScrubLots (acc=0x980b418) at Scrub3.c:170
#9 0x00c3e5eb in lot_scrub_cb (acc=0x980b418, data=0x0) at Scrub3.c:182
#10 0x00c2ccfe in gnc_account_foreach_descendant (acc=0x980af60,
thunk=0xc3e5bf <lot_scrub_cb>, user_data=0x0) at Account.c:1739
#11 0x00c3e626 in xaccAccountTreeScrubLots (acc=0x980af60) at Scrub3.c:190
#12 0x0804c907 in run_test () at test-lots.c:59
#13 0x0804c9bc in main () at test-lots.c:91
(gdb) frame 5
#5 0x00c4be23 in xaccSplitComputeCapGains (split=0x9cd7be0, gain_acc=0x0)
at cap-gains.c:854
854 PERR ("Malformed Lot \"%s\"! (too thin!) "
(gdb) p gnc_lot_get_title(lot)
$1 = 0x9e89350 "Lot 11"
(gdb) p gnc_num_dbg_to_string(lot_amount)
$2 = (gchar *) 0x145268 "-42781687953552/100"
(gdb) gnc_num_dbg_to_string (split->amount)
Undefined command: "gnc". Try "help".
(gdb) p gnc_num_dbg_to_string (split->amount)
$3 = (gchar *) 0x1452cc "3046493499336245915/100"
(gdb) p gnc_num_dbg_to_string (gnc_lot_get_balance(lot))
$4 = (gchar *) 0x145330 "3046450717648292363/100"
(gdb)
--
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
More information about the gnucash-devel
mailing list