Interesting. I built the next branch from scratch and found a much more useful error message. I have a periodic transaction that it can't parse:
While parsing file "/Users/peter/ledger.txt", line 29: While evaluating value expression: date While applying automated transaction from "/Users/peter/ledger.txt", lines 10-12: > = expr date=>[2010/02/10] && account =~ /^Expenses:(Cable|Utils)/ && account > !~ /Expenses:Utils:Water/ > $account -0.5 > Assets:Receivable:Andrew 0.5 While parsing periodic transaction: > ~ monthly > Expenses:Cable $37.00 > Expenses:Food $600.00 > Expenses:Insurance:Car $81.15 > Expenses:Insurance:Fees $1.00 > Expenses:Insurance:Life $50.00 > Expenses:Interest:Car $25.00 > Expenses:Interest:Student $150.00 > Expenses:Rent $650.00 > Expenses:Utils:Electric $50.00 > Expenses:Utils:Gas $50.00 > Assets Error: Assertion failed in "src/item.cc", line 535: ledger::string ledger::item_context(const ledger::item_t&, const ledger::string&): len > 0 Not really sure what that means. If I comment out the periodic transaction everything works again, except the automatic transaction is matching every transaction, not just the ones that the expression should match. Thoughts? On Thu, Nov 18, 2010 at 6:52 PM, Peter Keen <[email protected]> wrote: > On Thu, Nov 18, 2010 at 6:47 PM, John Wiegley <[email protected]> wrote: >> On Nov 18, 2010, at 9:29 PM, Peter Keen wrote: >> >>> Hrm. This makes ledger segfault. I'm using 3.0.0-20100623 from the >>> pre-compiled OS-X binaries. I'll try compiling from the next branch >>> and see what happens. >> >> Odd, I tried it before posting here. Do you know how to coax a stack >> trace from gdb? >> >> John >> > > It doesn't look to be very informative: > > (gdb) backtrace > #0 0x00000001000fd462 in ledger::post_t::date () > #1 0x000000010010af79 in ledger::(anonymous > namespace)::get_wrapper<&(ledger::(anonymous > namespace)::get_date(ledger::item_t&))> () > > If that helps, cool. Otherwise I'm building next right now with > debugging symbols and I'll let you know if it's still happening. >
