Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report with expr and period throws a segfault (BZ#1080) #1080

Closed
tbm opened this issue Oct 1, 2014 · 6 comments
Closed

report with expr and period throws a segfault (BZ#1080) #1080

tbm opened this issue Oct 1, 2014 · 6 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists P2 Second highest priority

Comments

@tbm
Copy link
Contributor

tbm commented Oct 1, 2014

Note: the issue was created automatically with bugzilla2github

Bugzilla bug ID: BZ#1080
From: @john2x
CC: @Ikke, @tbm
Duplicates: BZ#730
See also: BZ#730

@tbm
Copy link
Contributor Author

tbm commented Oct 1, 2014

Comment author: @john2x

$ ledger reg '^Expenses' and expr 'any(account =~ /^Assets:Cash/)' --period 'every week this month'
Segmentation fault: 11

@tbm
Copy link
Contributor Author

tbm commented Oct 1, 2014

Comment author: Martin Michlmayr (@tbm)

Confirmed with 3.0.3.

@tbm
Copy link
Contributor Author

tbm commented Oct 1, 2014

Comment author: Martin Michlmayr (@tbm)

(gdb) where
#0 0x00007ffff550e128 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff72d9c9a in ledger::interval_posts::flush (this=0xc586f0) at ledger/src/filters.cc:987
#2 0x00007ffff726f6e8 in ledger::item_handlerledger::post_t::flush (this=0xc57d50) at ledger/src/chain.h:76
#3 0x00007ffff726f6e8 in ledger::item_handlerledger::post_t::flush (this=0x7fffffffda60) at ledger/src/chain.h:76
#4 0x00007ffff7317846 in ledger::pass_down_postsledger::journal_posts_iterator::pass_down_posts (this=0x7fffffffda60, handler=..., iter=...)
at ledger/src/filters.h:168
#5 0x00007ffff72fb965 in ledger::report_t::posts_report (this=0x78eef0, handler=...) at ledger/src/report.cc:349
#6 0x00007ffff73244c0 in ledger::reporter<ledger::post_t, boost::shared_ptr<ledger::item_handlerledger::post_t >, &ledger::report_t::posts_report>::operator() (this=0xc55900, args=...) at ledger/src/report.h:1082
#7 0x00007ffff732309e in boost::detail::function::function_obj_invoker1<ledger::reporter<ledger::post_t, boost::shared_ptr<ledger::item_handlerledger::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
#8 0x00000000004ea25a in boost::function1<ledger::value_t, ledger::call_scope_t&>::operator() (this=0x7fffffffdc00, a0=...)
at /usr/include/boost/function/function_template.hpp:760
#9 0x00000000004d40e9 in ledger::global_scope_t::execute_command (this=0x787340, args=..., at_repl=false)
at ledger/src/global.cc:260
#10 0x00000000004d4343 in ledger::global_scope_t::execute_command_wrapper (this=0x787340, args=..., at_repl=false)
at ledger/src/global.cc:270
#11 0x00000000004c406d in main (argc=10, argv=0x7fffffffe778, envp=0x7fffffffe7d0) at ledger/src/main.cc:121
(gdb)

@tbm
Copy link
Contributor Author

tbm commented Oct 1, 2014

Comment author: Martin Michlmayr (@tbm)

Testcase: an empty file will do.

e.g.
ledger -f /dev/null reg foo and expr 'any(account =~ /bar/)' --period 'every week'

@tbm
Copy link
Contributor Author

tbm commented Oct 1, 2014

Comment author: Martin Michlmayr (@tbm)

Same for ledger bal, not only ledger reg.

@tbm
Copy link
Contributor Author

tbm commented Dec 16, 2014

Comment author: Kevin (@Ikke)

*** This bug has been marked as a duplicate of bug BZ#730 ***

@tbm tbm closed this as completed Dec 17, 2014
@tbm tbm added P2 Second highest priority bug Something isn't working duplicate This issue or pull request already exists labels May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists P2 Second highest priority
Projects
None yet
Development

No branches or pull requests

1 participant