-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
bpo-31783: Fix a race condition creating workers during shutdown #13171
Conversation
Can you add a test for this, thanks. |
The race condition occurs with the following set of context switches:
At this point there is a new thread added to The bug has a patch with |
I don't think writing a test for this would be feasible because provoking the race condition requires very specific timing that, at least on my machine, I can't provoke without adding |
@brianquinlan: Please replace |
Thanks @brianquinlan for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Thanks @brianquinlan for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, @brianquinlan, I could not cleanly backport this to |
Sorry @brianquinlan, I had trouble checking out the |
…hon#13171) * bpo-31783: Fix a race condition while creating workers during interpreter shutdown * 📜🤖 Added by blurb_it.
…hon#13171) * bpo-31783: Fix a race condition while creating workers during interpreter shutdown * 📜🤖 Added by blurb_it.
https://bugs.python.org/issue31783