Title: bpo-36402: Fix threading._shutdown() race condition by vstinner · Pull Request #13948 · python/cpython · GitHub
Open Graph Title: bpo-36402: Fix threading._shutdown() race condition by vstinner · Pull Request #13948 · python/cpython
X Title: bpo-36402: Fix threading._shutdown() race condition by vstinner · Pull Request #13948 · python/cpython
Description: Fix a race condition at Python shutdown when waiting for threads. Wait until the Python thread state of threads get deleted, rather than just wait until the Python thread completes. Add threading._shutdown_locks set: set of Thread._tstate_lock locks of non-daemon threads used by _shutdown() wait until all Python thread states get deleted (see Thread._set_tstate_lock()). Add also threading._shutdown_locks_lock to protect access to threading._shutdown_locks. https://bugs.python.org/issue36402
Open Graph Description: Fix a race condition at Python shutdown when waiting for threads. Wait until the Python thread state of threads get deleted, rather than just wait until the Python thread completes. Add threading....
X Description: Fix a race condition at Python shutdown when waiting for threads. Wait until the Python thread state of threads get deleted, rather than just wait until the Python thread completes. Add threading....
Opengraph URL: https://github.com/python/cpython/pull/13948
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b7fe1f58-97a1-7fef-89e5-7fc024c6250b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BA54:24214A:1544D19:1D1644F:6A53D9AE |
| html-safe-nonce | de3d46753a213581ce2912289ee6032fc61c951d727a8f7e33f4e7bab29aa28a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTU0OjI0MjE0QToxNTQ0RDE5OjFEMTY0NEY6NkE1M0Q5QUUiLCJ2aXNpdG9yX2lkIjoiMjQ2NzE3Mjg0NDYwNzYyNTY0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fd6ca1783ad8a8d479022fc89abd015c27d9a6d4c8a23a2f97cd2e937b290214 |
| hovercard-subject-tag | pull_request:286862008 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/13948/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Fix a race condition at Python shutdown when waiting for threads. Wait until the Python thread state of threads get deleted, rather than just wait until the Python thread completes. Add threading.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width