Hi,

I think I found a new bug. Ledger crashes whenever I am trying to do a
forecast, I am using the latest source from the master branch.

$ ledger --version
Ledger 3.0.0-20130529, the command-line accounting tool

Copyright (c) 2003-2013, John Wiegley.  All rights reserved.

This program is made available under the terms of the BSD Public License.
See LICENSE file included with the distribution for details and disclaimer.

ledger reg --forecast "d<[2014]" account:name

Here is the trace from gdb.

#0  0x0000003b10635ba5 in raise () from /lib64/libc.so.6
#1  0x0000003b10637358 in abort () from /lib64/libc.so.6
#2  0x0000003b1062e972 in __assert_fail_base () from /lib64/libc.so.6
#3  0x0000003b1062ea22 in __assert_fail () from /lib64/libc.so.6
#4  0x000000000080d5f5 in boost::optional<boost::gregorian::date>::get
(this=0x7fffffffc700)
    at /usr/include/boost/optional/optional.hpp:631
#5  0x0000000000808918 in
boost::optional<boost::gregorian::date>::operator* (this=0x7fffffffc700)
    at /usr/include/boost/optional/optional.hpp:647
#6  0x0000000000a0f685 in ledger::forecast_posts::add_post (this=0x1032c40,
period=..., post=...)
    at /backup/repos/ledger/src/filters.cc:1365
Python Exception <type 'exceptions.IndexError'> list index out of range:
#7  0x0000000000a0e584 in ledger::generate_posts::add_period_xacts
(this=0x1032c40, period_xacts=std::list)
    at /backup/repos/ledger/src/filters.cc:1236
#8  0x00000000009fae80 in ledger::chain_pre_post_handlers
(base_handler=..., report=...)
    at /backup/repos/ledger/src/chain.cc:94
#9  0x000000000083039e in ledger::report_t::posts_report (this=0xfbf6f0,
handler=...)
    at /backup/repos/ledger/src/report.cc:346
#10 0x000000000085ffc6 in ledger::reporter<ledger::post_t,
boost::shared_ptr<ledger::item_handler<ledger::post_t> >,
&ledger::report_t::posts_report>::operator() (this=0x1030ec0, args=...) at
/backup/repos/ledger/src/report.h:1081
#11 0x000000000085d213 in
boost::detail::function::function_obj_invoker1<ledger::reporter<ledger::post_t,
boost::shared_ptr<ledger::item_handler<ledger::post_t> >,
&ledger::report_t::posts_report>, ledger::value_t,
ledger::call_scope_t&>::invoke (
    function_obj_ptr=..., a0=...) at
/usr/include/boost/function/function_template.hpp:132
#12 0x000000000080b496 in boost::function1<ledger::value_t,
ledger::call_scope_t&>::operator() (this=0x7fffffffcdc0, a0=...)
    at /usr/include/boost/function/function_template.hpp:760
#13 0x00000000007f614b in ledger::global_scope_t::execute_command
(this=0xfb4f30, args=std::list = {...}, at_repl=true)
    at /backup/repos/ledger/src/global.cc:260
#14 0x00000000007f63af in ledger::global_scope_t::execute_command_wrapper
(this=0xfb4f30, args=std::list = {...},
    at_repl=true) at /backup/repos/ledger/src/global.cc:270
#15 0x00000000007e5d29 in main (argc=1, argv=0x7fffffffd938,
envp=0x7fffffffd948) at /backup/repos/ledger/src/main.cc:173

Thanks,
Santosh

-- 
|_|0|_| http://fossix.org | http://bug2b.fossix.org
|_|_|0| Registered Linux user #462033 @ counter.linux.no
|0|0|0| http://www.catb.org/hacker-emblem/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to