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

SIGSEV in JSON parsers #10

Open
lunarpulse opened this issue Jan 12, 2018 · 1 comment
Open

SIGSEV in JSON parsers #10

lunarpulse opened this issue Jan 12, 2018 · 1 comment

Comments

@lunarpulse
Copy link

SIGSEV from JSON parsers.

After rebuild examples, SIGSEV stops the program. It stemmed from the _M_replace function in the libstdc++.so.6.

please see the image below from nemivers

binaappsivsev

Is there any way to remove this error?

@Vmcsnekke
Copy link

In gcc v5.1 the C++ ABI change, see:
https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html

The problem is that you are using gcc v5.1 or later while the included libraries
(libbinacpp.so, jsoncpp.o, etc...) have been compiled with a gcc from before
gcc v5.1.

Fixing it by defining:
#define _GLIBCXX_USE_CXX11_ABI 0
could cause a SIGSEGV.

It is really best to recompile libbinacpp.so and the accompanying libraries.

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