Title: threading module can deadlock after fork · Issue #39802 · python/cpython · GitHub
Open Graph Title: threading module can deadlock after fork · Issue #39802 · python/cpython
X Title: threading module can deadlock after fork · Issue #39802 · python/cpython
Description: BPO 874900 Nosy @gpshead, @jcea, @amauryfa, @pitrou, @benjaminp Files fork_threading.py: demo scriptfork-and-threading5-gps01.patch: fixes fork-and-thread4, pitrou's fork_threading.py works with this patch.threading-874900-improvement-gp...
Open Graph Description: BPO 874900 Nosy @gpshead, @jcea, @amauryfa, @pitrou, @benjaminp Files fork_threading.py: demo scriptfork-and-threading5-gps01.patch: fixes fork-and-thread4, pitrou's fork_threading.py works with th...
X Description: BPO 874900 Nosy @gpshead, @jcea, @amauryfa, @pitrou, @benjaminp Files fork_threading.py: demo scriptfork-and-threading5-gps01.patch: fixes fork-and-thread4, pitrou's fork_threading.py works wit...
Opengraph URL: https://github.com/python/cpython/issues/39802
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"threading module can deadlock after fork","articleBody":"BPO | [874900](https://bugs.python.org/issue874900)\n--- | :---\nNosy | @gpshead, @jcea, @amauryfa, @pitrou, @benjaminp\nFiles | \u003cli\u003e[fork_threading.py](https://bugs.python.org/file9288/fork_threading.py \"Uploaded as text/plain at 2008-01-25.21:58:04 by @pitrou\"): demo script\u003c/li\u003e\u003cli\u003e[fork-and-threading5-gps01.patch](https://bugs.python.org/file10889/fork-and-threading5-gps01.patch \"Uploaded as text/plain at 2008-07-12.22:22:53 by @gpshead\"): fixes fork-and-thread4, pitrou's fork_threading.py works with this patch.\u003c/li\u003e\u003cli\u003e[threading-874900-improvement-gps01.diff](https://bugs.python.org/file10932/threading-874900-improvement-gps01.diff \"Uploaded as text/plain at 2008-07-17.23:33:45 by @gpshead\"): is this an improvement? is it needed?\u003c/li\u003e\u003cli\u003e[forkthread.patch](https://bugs.python.org/file11378/forkthread.patch \"Uploaded as text/plain at 2008-09-04.22:55:55 by @pitrou\")\u003c/li\u003e\u003cli\u003e[forkthread2.patch](https://bugs.python.org/file11379/forkthread2.patch \"Uploaded as text/plain at 2008-09-04.23:17:39 by @pitrou\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2008-09-06.23:04:57.802\u003e\ncreated_at = \u003cDate 2004-01-11.14:28:06.000\u003e\nlabels = ['interpreter-core', 'type-bug', 'release-blocker']\ntitle = 'threading module can deadlock after fork'\nupdated_at = \u003cDate 2011-07-11.06:04:45.798\u003e\nuser = 'https://bugs.python.org/mikemccand'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2011-07-11.06:04:45.798\u003e\nactor = 'nirai'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2008-09-06.23:04:57.802\u003e\ncloser = 'pitrou'\ncomponents = ['Interpreter Core']\ncreation = \u003cDate 2004-01-11.14:28:06.000\u003e\ncreator = 'mikemccand'\ndependencies = []\nfiles = ['9288', '10889', '10932', '11378', '11379']\nhgrepos = []\nissue_num = 874900\nkeywords = ['patch', 'needs review']\nmessage_count = 54.0\nmessages = ['60453', '60454', '60455', '61693', '61695', '69423', '69437', '69466', '69467', '69468', '69470', '69476', '69477', '69478', '69479', '69492', '69512', '69549', '69550', '69569', '69601', '69603', '69607', '69696', '69702', '69784', '69793', '69795', '69825', '69867', '69868', '69878', '69888', '69889', '69893', '69894', '69928', '70174', '71297', '71298', '71301', '71315', '71818', '71824', '72546', '72549', '72550', '72551', '72552', '72591', '72716', '72717', '72721', '72727']\nnosy_count = 10.0\nnosy_names = ['gregory.p.smith', 'jcea', 'mikemccand', 'tzot', 'amaury.forgeotdarc', 'Rhamphoryncus', 'pitrou', 'benjamin.peterson', 'jnoller', 'bobbyi']\npr_nums = []\npriority = 'release blocker'\nresolution = 'fixed'\nstage = None\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue874900'\nversions = ['Python 3.0']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/mikemccand","@type":"Person","name":"mikemccand"},"datePublished":"2004-01-11T14:28:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":54},"url":"https://github.com/39802/cpython/issues/39802"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:df56e3f5-7637-5ba1-587c-a31de6d6512c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C684:2C03D:1B4AC89:25B37E9:6A4EB3CD |
| html-safe-nonce | 976e528bb9567d0c1df563c9606affd5a7c7c355bd59004e7b3ecf2c642e7d8c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjg0OjJDMDNEOjFCNEFDODk6MjVCMzdFOTo2QTRFQjNDRCIsInZpc2l0b3JfaWQiOiI1ODc3MTU1MjIyOTU5MDc2MzAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1945c5d83719547d27486dc2e3e8d1e850e8beaa25778fe438d5319af3a82d76 |
| hovercard-subject-tag | issue:1198799971 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/39802/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51ade2e0a81ffb70c9238e0973a9da939869c76a6bb86be99cfa7c1d1cd96c81/python/cpython/issues/39802 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51ade2e0a81ffb70c9238e0973a9da939869c76a6bb86be99cfa7c1d1cd96c81/python/cpython/issues/39802 |
| og:image:alt | BPO 874900 Nosy @gpshead, @jcea, @amauryfa, @pitrou, @benjaminp Files fork_threading.py: demo scriptfork-and-threading5-gps01.patch: fixes fork-and-thread4, pitrou's fork_threading.py works with th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikemccand |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width