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

Error: std::bad_cast when running reg or reg income on doc/sample.dat #10

Closed
afh opened this issue Nov 7, 2009 · 3 comments
Closed

Comments

@afh
Copy link
Member

afh commented Nov 7, 2009

Hi,
when adding an account name to reg or bal commands, e.g. ledger reg income
ledger version jwiegley/ledger@3f00f8362c2fdfae1dbb6517bc29c75e308bc4f0 quits with:
Error: std::bad_cast

See http://gist.github.com/228620 for sample session using doc/sample.dat

@jwiegley
Copy link
Member

jwiegley commented Nov 7, 2009

I'm unable to reproduce this here. Can you roll back to HEAD^ or HEAD^^ and see if it still happens for you?

@afh
Copy link
Member Author

afh commented Nov 7, 2009

Yes, I was able to reproduce the error with HEAD^ and HEAD^^.

I resolved the error by using a different variant of the boost MacPort.

With boost @1.40.0_1+debug+python26+st the error occurs,
using boost @1.40.0_1+python26 ledger works just fine

See file 'Resolved: Ledger next-0-g3f00f83 issue' in http://gist.github.com/228620 for details

@jwiegley
Copy link
Member

jwiegley commented Nov 9, 2009

This is a problem with mixing and matching code that uses _GLIBCXX_DEBUG with code that doesn't. It's happening in the std::locale() code, actually, because of a failed assertion.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants