-
Notifications
You must be signed in to change notification settings - Fork 915
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
[BUG] double free or memory corruption when parsing some JSON #15750
Comments
Just be aware that I have hit other issues with this data too. IllegalMemoryAccess errors, a hang where it looks like we are in an infinite loop, and exceptions saying that the data looks to be incorrectly formatted (top level arrays mixed with structs appears to make this very unhappy). I am happy to share more data/failures as needed. It just takes a lot of work to obfuscate it properly and still have an appropriate repro case. I suspect that they are almost all related to each other in some form. |
Thank you for the repro and the dataset, @revans2 |
I ran via
If this line is commented out, no segfault occurs. |
Minimal repro with valgrind errors
Issue is not in the |
Created a fix for memory errors #15798. Long term fix should be rewriting the device tree creation algorithm |
Discussed with @shrshi offline about the bug and need for refactor of
Here are the list of features that is currently supported by
|
…removal (#15798) Fixes #15750 The references of deleted child columns are not removed, which caused segfault, and also memory errors (found with valgrind). This fix removes references of child columns and deletes them recursively. Authors: - Karthikeyan (https://github.com/karthikeyann) Approvers: - David Wendt (https://github.com/davidwendt) - Bradley Dice (https://github.com/bdice) URL: #15798
Describe the bug
We recently saw a SIGSEGV when trying to parse some customer data using JSON. As I stripped down and obfuscated the data it switched to the process aborting with the error.
The code to reproduce this is
and the file is
from_json_1_10_simplified.json
The text was updated successfully, but these errors were encountered: