-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Segfault during Reader::parse() #1195
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
Comments
I noticed that when I checkout tag 1.9.1, the built binary has version 1.9.0, as specified in the CMakeLists.txt file. The fedora source rpm contains a patch that updates the version to 1.9.1. |
The problem is that the version value is not correct in CMakeLists.txt in tag 1.9.1 |
The problem does not seem to reproduce when I use the locally rebuilt package from the source package. |
I missed the fact that the Json::Reader constructors (and therefore, also the other methods, including Reader::parse) were deprecated. We've solved our issues by using the suggested alternatives. |
Ok, that sounds good, so then I will to close this issue. Thanks for your feedback! |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
After upgrading our Fedora 31 buildslaves, I'm experiencing a segfault in our unit tests. Any help will be much appreciated!
Segfault during Reader::parse:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No segfault :).
Desktop (please complete the following information):
Additional context
We run unit tests which fail with a segfault, when compiled with g++. When running locally, I could reproduce the segfault using clang++ (not with g++).
I noticed the ErrorInfo has no implementation of the default ctor (in the .cpp file), and the member variables aren't initialized explicitly. I also noticed when running with valgrind that there were errors w.r.t. jumps depending on uninitialized variables, see the attached log file.
vg.log
jsoncpp Package info
The text was updated successfully, but these errors were encountered: