Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Apr 13, 2020

No description provided.

@maflcko maflcko force-pushed the 2004-testNoAccessFreeMem branch from fa6b144 to fa87f1a Compare April 13, 2020 00:15
@fanquake fanquake added the Tests label Apr 13, 2020
@maflcko maflcko force-pushed the 2004-testNoAccessFreeMem branch 3 times, most recently from fa22c66 to fac4a97 Compare April 13, 2020 00:36
@practicalswift
Copy link
Contributor

Concept ACK

Did any of the sanitizers find this issue?

@maflcko
Copy link
Member Author

maflcko commented Apr 13, 2020

Yes, this should be hit in sanitizers when additionally the validationinterface debug log category is enabled.

@jamesob
Copy link
Contributor

jamesob commented Apr 14, 2020

ACK fac4a97

Thanks for fixing this.

Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK fac4a97, but see question below. I think this may not be the ideal fix

@maflcko maflcko force-pushed the 2004-testNoAccessFreeMem branch from fac4a97 to fa4cb83 Compare April 15, 2020 15:05
Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK fa4cb83

Copy link
Contributor

@ryanofsky ryanofsky left a 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

@maflcko
Copy link
Member Author

maflcko commented Apr 15, 2020

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 TestingSetup is destructed, because txindex is scoped inside the test case.

@ryanofsky
Copy link
Contributor

It needs to happen before the TestingSetup is destructed, because txindex is scoped inside the test case.

Missed that, thanks.

@maflcko maflcko merged commit 4bd6bc5 into bitcoin:master Apr 15, 2020
@maflcko maflcko deleted the 2004-testNoAccessFreeMem branch April 15, 2020 19:06
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Dec 9, 2020
…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
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this pull request Sep 5, 2021
…n_chainstatemanager_tests

fa176e2 test: Avoid accessing free'd memory in validation_chainstatemanager_tests (MarcoFalke)

Pull request description:

ACKs for top commit:
  ryanofsky:
    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

Tree-SHA512: 34c5dca283a7c205cd42b6aa59f00a71fd1bd980bc3d6640a18b280be11470bfabb2fd8c93fadde6fb8e084bcf96c80ec3aa72bbccccfde8a8260d173eaad08f
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants