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

Fix very rare race condition in ThreadPool #11314

Merged
merged 1 commit into from
May 31, 2020

Conversation

alexey-milovidov
Copy link
Member

@alexey-milovidov alexey-milovidov commented May 30, 2020

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix very rare race condition in ThreadPool.

Detailed description / Documentation draft:
It was introduced in #9154. The reason it that we access exception object without locking mutex. At the same time, exception may be rethrown in another thread, then catched by non-const reference and modified. See link. Found here: #11301

@alexey-milovidov alexey-milovidov added the testing Special issue with list of bugs found by CI label May 30, 2020
@alexey-milovidov alexey-milovidov mentioned this pull request May 30, 2020
14 tasks
@blinkov blinkov added the pr-bugfix Pull request with bugfix, not backported by default label May 30, 2020
@alexey-milovidov
Copy link
Member Author

test_ttl_move

  • flacky test, reported.

@alexey-milovidov
Copy link
Member Author

Stress test (thread) — Sanitizer assert (in stderr.log)

Actually it's OOM on CI machine (false message).

@alexey-milovidov alexey-milovidov merged commit 1df5c28 into master May 31, 2020
@alexey-milovidov alexey-milovidov deleted the fix-race-condition-thread-pool branch May 31, 2020 13:58
KochetovNicolai pushed a commit that referenced this pull request Jun 8, 2020
Fix very rare race condition in ThreadPool

(cherry picked from commit 1df5c28)
KochetovNicolai pushed a commit that referenced this pull request Jun 8, 2020
Fix very rare race condition in ThreadPool

(cherry picked from commit 1df5c28)
KochetovNicolai pushed a commit that referenced this pull request Jun 8, 2020
Fix very rare race condition in ThreadPool

(cherry picked from commit 1df5c28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-docs-needed pr-bugfix Pull request with bugfix, not backported by default testing Special issue with list of bugs found by CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants