Title: Forking in a thread raises RuntimeError · Issue #51491 · python/cpython · GitHub
Open Graph Title: Forking in a thread raises RuntimeError · Issue #51491 · python/cpython
X Title: Forking in a thread raises RuntimeError · Issue #51491 · python/cpython
Description: BPO 7242 Nosy @loewis, @Yhg1s, @gpshead, @csernazs, @pitrou, @dhellmann Files thread_test.py: A test demonstrating the issue.patch_1.diff: A possible fix for this issue created for python 2.6.4.patch_2.diff: Patch re-initializing import_...
Open Graph Description: BPO 7242 Nosy @loewis, @Yhg1s, @gpshead, @csernazs, @pitrou, @dhellmann Files thread_test.py: A test demonstrating the issue.patch_1.diff: A possible fix for this issue created for python 2.6.4.pat...
X Description: BPO 7242 Nosy @loewis, @Yhg1s, @gpshead, @csernazs, @pitrou, @dhellmann Files thread_test.py: A test demonstrating the issue.patch_1.diff: A possible fix for this issue created for python 2.6.4.pat...
Opengraph URL: https://github.com/python/cpython/issues/51491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Forking in a thread raises RuntimeError","articleBody":"BPO | [7242](https://bugs.python.org/issue7242)\n--- | :---\nNosy | @loewis, @Yhg1s, @gpshead, @csernazs, @pitrou, @dhellmann\nFiles | \u003cli\u003e[thread_test.py](https://bugs.python.org/file15232/thread_test.py \"Uploaded as text/plain at 2009-10-30.10:57:59 by @csernazs\"): A test demonstrating the issue.\u003c/li\u003e\u003cli\u003e[patch_1.diff](https://bugs.python.org/file15247/patch_1.diff \"Uploaded as text/plain at 2009-11-02.15:51:53 by @csernazs\"): A possible fix for this issue created for python 2.6.4.\u003c/li\u003e\u003cli\u003e[patch_2.diff](https://bugs.python.org/file16011/patch_2.diff \"Uploaded as text/plain at 2010-01-26.13:27:07 by @csernazs\"): Patch re-initializing import_lock on all platforms after fork().\u003c/li\u003e\u003cli\u003e[thread_unittest.py](https://bugs.python.org/file16378/thread_unittest.py \"Uploaded as text/plain at 2010-02-26.10:18:16 by @csernazs\"): Unittest for the patch\u003c/li\u003e\u003cli\u003e[7242_unittest.diff](https://bugs.python.org/file16381/7242_unittest.diff \"Uploaded as text/plain at 2010-02-26.20:27:32 by jednaszewski\"): Unit test that tests the issue\u003c/li\u003e\u003cli\u003e[issue7242-gps01.diff](https://bugs.python.org/file16395/issue7242-gps01.diff \"Uploaded as text/plain at 2010-02-28.09:01:15 by @gpshead\"): update of patch_2 + thread_unittest\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 = 'https://github.com/gpshead'\nclosed_at = \u003cDate 2010-03-01.04:41:35.268\u003e\ncreated_at = \u003cDate 2009-10-30.10:58:01.329\u003e\nlabels = ['extension-modules', 'type-bug']\ntitle = 'Forking in a thread raises RuntimeError'\nupdated_at = \u003cDate 2010-12-18.16:55:12.147\u003e\nuser = 'https://github.com/csernazs'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2010-12-18.16:55:12.147\u003e\nactor = 'Oren_Held'\nassignee = 'gregory.p.smith'\nclosed = True\nclosed_date = \u003cDate 2010-03-01.04:41:35.268\u003e\ncloser = 'gregory.p.smith'\ncomponents = ['Extension Modules']\ncreation = \u003cDate 2009-10-30.10:58:01.329\u003e\ncreator = 'csernazs'\ndependencies = []\nfiles = ['15232', '15247', '16011', '16378', '16381', '16395']\nhgrepos = []\nissue_num = 7242\nkeywords = ['patch']\nmessage_count = 26.0\nmessages = ['94701', '94702', '94704', '94765', '94820', '94822', '94832', '95075', '98148', '98211', '98287', '98299', '98335', '99202', '100090', '100100', '100143', '100144', '100171', '100200', '100204', '100211', '100231', '100233', '100245', '124294']\nnosy_count = 9.0\nnosy_names = ['loewis', 'twouters', 'gregory.p.smith', 'csernazs', 'pitrou', 'doughellmann', 'dagobert', 'Oren_Held', 'jednaszewski']\npr_nums = []\npriority = 'high'\nresolution = 'fixed'\nstage = None\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue7242'\nversions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/csernazs","@type":"Person","name":"csernazs"},"datePublished":"2009-10-30T10:58:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":26},"url":"https://github.com/51491/cpython/issues/51491"}
| 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:b58fc8fc-847f-780a-3b2b-cfa2fbd34cf8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C23C:102667:3D4010:559D0F:6A59CC29 |
| html-safe-nonce | 5e0995788a3f6832f148d444abaa315dd13aa3efd60f71537e1d3a2b323bb7c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjNDOjEwMjY2NzozRDQwMTA6NTU5RDBGOjZBNTlDQzI5IiwidmlzaXRvcl9pZCI6IjMwODY1NzU1MDg4NjU1MzUwMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 06c0efe16a9132848ce730d29d7f306b61038266356cd8cfbcbaad548b7a9cff |
| hovercard-subject-tag | issue:1198849417 |
| 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/51491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f1feeb7544bcc690804d337daa14559d6d7a9d539109df8a182f2060c1611df/python/cpython/issues/51491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f1feeb7544bcc690804d337daa14559d6d7a9d539109df8a182f2060c1611df/python/cpython/issues/51491 |
| og:image:alt | BPO 7242 Nosy @loewis, @Yhg1s, @gpshead, @csernazs, @pitrou, @dhellmann Files thread_test.py: A test demonstrating the issue.patch_1.diff: A possible fix for this issue created for python 2.6.4.pat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | csernazs |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| 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 | ab680789ae4a316cdaf0d5a292a1760140931cc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width