-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
very accidental: SIGABRT when parsing json string with allow_exceptions=false #4234
Comments
Can you please try the latest version? |
Hi nlohmann, thanks for your reply. I did some troubleshooting and I would be very greatful if you can give me some advise.
If the allow_exceptions of parser object is specfied to false, can we just omit the parse_error::create when error occured in sax_parse_internal? |
The reason I asked is that we do not provide support for older versions, and 3.7.3 is over 4 years old. Nevertheless, the issue seems not to be actually throwing an exception, but rather creating an exception object (or |
Thanks for you advise, I tried in my device and create json::parse_error object million times, it's totally OK. |
Not sure what to do now. I would still assume it's not a library issue, but rather an issue in the used STL. |
You are right, may be we can discuss with the customer and take an A/B test for the latest version and the current version, see if it works. |
I won't expect much since we did not touch that part in a while (which is the reason I think it's fine). How often does the signal occur? |
@Johnny-Martin Can you provide more information? Did the issue occur more often? |
Description
Hi guys, we are useing nlohmann for json processing with version 3.7.3.
This library works perfect for most of the time. We alway disable the exceptions when parsing:
This works perfect but we received a few crash report and the dump shows that nlohmann::json::parse crashed for SIGABRT.
Unfortunatelly, we can't get more information from the user because of some security policy.
Reproduction steps
The probability of this crash is very low and we tried to reproduce it for many times but all failed.
Expected vs. actual results
Since we have disabled the exceptions with allow_exceptions=false, so just do not crash the application when parsing json string.
Minimal code example
No response
Error messages
No response
Compiler and operating system
Android application packed by Unreal Engine 4.27
Library version
3.7.3
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: