-
Notifications
You must be signed in to change notification settings - Fork 38.7k
test: Avoid accessing free'd memory in validation_chainstatemanager_tests #18615
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
Conversation
fa6b144 to
fa87f1a
Compare
fa22c66 to
fac4a97
Compare
|
Concept ACK Did any of the sanitizers find this issue? |
|
Yes, this should be hit in sanitizers when additionally the validationinterface debug log category is enabled. |
|
ACK fac4a97 Thanks for fixing this. |
ryanofsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK fac4a9757b3bfd131a78570866c349b590f492ca, but see question below. I think this may not be the ideal fix
fac4a97 to
fa4cb83
Compare
ryanofsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK fa4cb833037a8a59dc511a9773aa5d64a416066e
fa4cb83 to
fa176e2
Compare
ryanofsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK fa176e2, though if you have to update this again, would suggest separating txindex test cleanup and the chainstatemanager test fix in separate commits, or identifying which part of the change is the bugfix fix in the commit description. Also to clean up the txindex test it might make sense to call SyncWithValidationInterfaceQueue in the test destructor to prevent nondeterminism in other tests
It needs to happen before the |
Missed that, thanks. |
…ests Summary: Backport of core [[bitcoin/bitcoin#18615 | PR18615]]. Test Plan: With TSAN: ninja check Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D8639
No description provided.