test-lots still fails in HEAD

Derek Atkins warlord at MIT.EDU
Sat Dec 4 20:37:15 EST 2004


Linas,

I've been trying to get HEAD to build/run cleanly but the lots test
is still failing.  Right now it's failing with the following exception:

** WARNING **: Warning: xaccSplitAssignToLot(): split with zero amount; value=0/3668 gflag=ff gsplit=(nil)
aborting...

This occurs with the following backtrace:

#0  0xffffe002 in ?? ()
#1  0x42028c55 in abort () from /lib/tls/libc.so.6
#2  0x400c8800 in g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_WARNING, 
    format=0x40075bc0 "Warning: %s(): split with zero amount; value=%s gflag=%x gsplit=%p", args1=0xbfffdfdc "àû\a at Dð\a@ÿ") at gmessages.c:391
#3  0x400c888c in g_log (log_domain=0x0, log_level=G_LOG_LEVEL_WARNING, 
    format=0x40075bc0 "Warning: %s(): split with zero amount; value=%s gflag=%x gsplit=%p") at gmessages.c:408
#4  0x40044cb6 in xaccSplitAssignToLot (split=0x84ccc68, lot=0x8369ab8)
    at cap-gains.c:386
#5  0x4004577c in xaccSplitAssign (split=0x84ccc68) at cap-gains.c:618
#6  0x4003b55f in xaccAccountAssignLots (acc=0x87c5fa0) at Scrub2.c:85
#7  0x4003c9fe in xaccAccountScrubLots (acc=0x87c5fa0) at Scrub3.c:170
#8  0x4003cae5 in lot_scrub_cb (acc=0x87c5fa0, data=0x0) at Scrub3.c:187
#9  0x40035796 in xaccGroupForEachAccount (grp=0x0, 
    thunk=0x4003caac <lot_scrub_cb>, data=0x0, deeply=1) at Group.c:1208
#10 0x400357d4 in xaccGroupForEachAccount (grp=0x0, 
    thunk=0x4003caac <lot_scrub_cb>, data=0x0, deeply=1) at Group.c:1214
#11 0x400357d4 in xaccGroupForEachAccount (grp=0x0, 
    thunk=0x4003caac <lot_scrub_cb>, data=0x0, deeply=1) at Group.c:1214
#12 0x4003cb11 in xaccGroupScrubLots (grp=0x421328d4) at Scrub3.c:195
#13 0x0804be2a in run_test () at test-lots.c:40
#14 0x0804bea1 in main_helper (closure=0x0, argc=1, argv=0xbfffe384)
    at test-lots.c:72
#15 0x40125d4f in scm_init_guile () from /usr/lib/libguile.so.12
#16 0x40125d0e in scm_init_guile () from /usr/lib/libguile.so.12
#17 0x401259e0 in scm_boot_guile () from /usr/lib/libguile.so.12
#18 0x0804bed7 in main (argc=1, argv=0xbfffe384) at test-lots.c:82
#19 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
(gdb)

What I don't understand is how this split is getting a zero amount.
As far as I can tell no splits are being _created_ with a zero amount,
so I'm just very confused.  I don't understand the cap-gains code, so
I can't tell if this is a bug in the cap-gains/lots code or a bug in
the test.

Could you please try to find a few minutes (hopefully it wont take hours)
and look at this?

Thanks,

-derek

-- 
       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