-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
ABI issue with json object between 2 shared libraries #813
Comments
I have the same issue with 0x00007ffff7b3b034 in nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::basic_json(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&) () |
It seems that adding a simple print work around this issue: bool setOptions(const json &options) override { |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug Report
Crash somtimes, not always
passed json object J can be used throughout b.so
Sometimes it works, sometimes it crashes, ex:
0x00007ffff7b3bd24 in nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::basic_json(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&) ()
I tried to pass the json object by copy instead but eventually it will crash elsewhere down the road.
gcc version 6.3.0 20170406 (Ubuntu 6.3.0-12ubuntu2)
develop
branch?develop
branchFeature Request
Right now the only way to work around the issue is to remove json from the shared library interface and just serialize/deserialize with string.
The text was updated successfully, but these errors were encountered: