-
Notifications
You must be signed in to change notification settings - Fork 44
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
ValueId with uninitialized members #305
Comments
Can you create a core file of when the test fails? or break at this point in time to see member values of valueID? It would be interesting to see the callchain and identify who does not initialize the members... |
Default-Initializing |
Still it would be nice to understand where the call comes from... |
|
I experienced an issue in an unrelated area (adding an stx btree in the DeltaIndex caused JSONTests.parse_selection to fail even though it uses the SimpleTableScan) and believe that I have tracked it down to memory corruption / an uninitialized member:
The code in question is this:
In fact, there is a ValueId constructor (ValueId()) that does not set valueId or table. That constructor is used quite frequently. Is there any reason for doing so?
If I initialize valueId and table to 0 in that constructor, my bug disappears; if I initialize it to -1, I get even more failing tests (7 of 382).
The text was updated successfully, but these errors were encountered: