-
-
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
Segmentation fault on saving json to file #326
Comments
I cannot reproduce it on a normal Ubuntu with a gcc 4.9.3. Must be something raspberrypi-specific. Can't you simply debug with the standard gdb and look at the backtrace after the program crashes? |
Maybe @navybk can reproduce this on a Raspberry. |
Actually, It works on a raspberry. I just tried. There error occures on a odroid xu4. |
Ok. Thanks! |
I guess this can be closed as I susspect even thou the error occures when using anything json related, it is not the real root of it. |
Thanks for reporting anyway. If you can find anything more, I would be happy to have a look! |
Just in case of the very unlikely event that someone would run into the same problem in the future. |
I get a segmentation fault when saving a json data object to a file like this:
The problem is, I cant even debug anything. Because even if I don't use the function I get the segmentation fault.
When changing:
jsonFile << data;
tojsonFile << "Test String";
, I dont get any errors.I am using Visual GDB with gcc 4.9.2 (from here: http://gnutoolchains.com/raspberry/).
Please ask if any other information or clarification is needed!
The text was updated successfully, but these errors were encountered: