Skip to content
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

[3646] Fix a shutdown problem in block_processor #44

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

gr0vity-dev
Copy link
Owner

2022-01-04T15:26:36Z cryptocode
My node crashed occasionally during shutdown with an invalid mutex termination in the block_processor destructor.

The issue is that processing threads are running while the node is tearing down, leading to UB.

occurs in the destructor rather than , at which point most of the node instance is gone.

The destructor seemed wrong anyway as it calls stop, which the node also calls. The proposed solution is to move the destructor's joining of processing_thread to and remove the destructor.

@gr0vity-dev gr0vity-dev added the bug Something isn't working label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant