René's URL Explorer Experiment


Title: Disable GIL by default in free-threaded build · Issue #116749 · python/cpython · GitHub

Open Graph Title: Disable GIL by default in free-threaded build · Issue #116749 · python/cpython

X Title: Disable GIL by default in free-threaded build · Issue #116749 · python/cpython

Description: Feature or enhancement This issue is to track the remaining bugs that prevent the Python test suite from passing with the GIL disabled, as well as the PRs under review that fix known issues. Note that this is not intended to cover all fr...

Open Graph Description: Feature or enhancement This issue is to track the remaining bugs that prevent the Python test suite from passing with the GIL disabled, as well as the PRs under review that fix known issues. Note t...

X Description: Feature or enhancement This issue is to track the remaining bugs that prevent the Python test suite from passing with the GIL disabled, as well as the PRs under review that fix known issues. Note t...

Opengraph URL: https://github.com/python/cpython/issues/116749

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Disable GIL by default in free-threaded build","articleBody":"# Feature or enhancement\r\n\r\nThis issue is to track the remaining bugs that prevent the Python test suite from passing with the GIL disabled, as well as the PRs under review that fix known issues.\r\n\r\nNote that this is not intended to cover all free-threading related issues: some thread-safety issues don't result in tests crashing or failing and are not tracked here. This is intended to cover the *minimum* set of changes needed to ensure that the test suite passes reliably with the GIL disabled.\r\n\r\n### PRs\r\n\r\n* https://github.com/python/cpython/pull/117528\r\n* https://github.com/python/cpython/pull/117824\r\n* https://github.com/python/cpython/pull/118112\r\n\r\n### Integration branch\r\n\r\n* https://github.com/colesbury/cpython/tree/nogil-integration\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eBranches to merge\u003c/summary\u003e\r\n\r\n```\r\ngit merge disable-gil-default \u0026\u0026\r\ngit merge gh-112075-lock-split-keys \u0026\u0026\r\ngit merge gh-117783-immortalize\r\n```\r\n\u003c/details\u003e\r\n\r\nThis branch contains the merge of the above PRs and is used to find bugs that are not covered by outstanding PRs. Note that setting `PYTHON_GIL=0` isn't sufficient because some tests do not propagate the environment variable to tests in subprocesses. Instead, the branch changes the default mode to disable the GIL for testing purposes.\r\n\r\n### Issues without PRs that fix them\r\n\r\n* N/A\r\n\r\n### Bugs without issues\r\n\r\n**Windows**\r\n\r\n* test_no_stale_references times out - https://github.com/python/cpython/actions/runs/8514458340/job/23320231100?pr=117437\r\n\r\n**Linux**\r\n\r\n* `test.test_concurrent_futures.test_deadlock` deadlocks ? - https://buildbot.python.org/all/#/builders/1281/builds/148/steps/5/logs/stdio\r\n\r\n**macOS**\r\n\r\n* `test_interrupt_main_subthread` - `RuntimeError: release unlocked lock` https://buildbot.python.org/all/#/builders/1367/builds/117/steps/5/logs/stdio\r\n* `test.test_multiprocessing_spawn.test_processes.WithProcessesTestPool.test_release_task_refs` - `10 != 0`\r\n\r\nhttps://buildbot.python.org/all/#/builders/1367/builds/119/steps/5/logs/stdio\r\n* `test_daemon_threads_shutdown_stderr_deadlock` - `Assertion failed: (tstate == NULL || tstate-\u003einterp == interp), function _PyEval_ReleaseLock, file ceval_gil.c,`\r\n* `test_queue` `test_shutdown_all_methods_in_many_threads` - AttributeError: 'Queue' object has no attribute '_lock'\r\n\r\n```\r\ntest_shutdown_all_methods_in_many_threads (test.test_queue.CQueueTest.test_shutdown_all_methods_in_many_threads) ... Warning -- Uncaught thread exception: AttributeError\r\nException in thread Thread-2081 (_read_msg_thread):\r\nTraceback (most recent call last):\r\n  File \"/Users/ec2-user/buildbot/buildarea/pull_request.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/threading.py\", line 1039, in _bootstrap_inner\r\n    self.run()\r\n    ~~~~~~~~^^\r\n  File \"/Users/ec2-user/buildbot/buildarea/pull_request.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/threading.py\", line 990, in run\r\n    self._target(*self._args, **self._kwargs)\r\n    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Users/ec2-user/buildbot/buildarea/pull_request.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/test/test_queue.py\", line 352, in _read_msg_thread\r\n    q.get(False)\r\n    ~~~~~^^^^^^^\r\n  File \"/Users/ec2-user/buildbot/buildarea/pull_request.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/queue.py\", line 216, in get\r\n    item = self._get()\r\n           ~~~~~~~~~^^\r\n  File \"/Users/ec2-user/buildbot/buildarea/pull_request.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/threading.py\", line 304, in __enter__\r\n    return self._lock.__enter__()\r\n           ^^^^^^^^^^\r\nAttributeError: 'Queue' object has no attribute '_lock'\r\n```\r\n\r\n**Old bugs?**\r\n\r\n* `test.test_smtpnet.SmtpSSLTest.test_connect_default_port` connection closed (*possibly* related)\r\n* `test.test_multiprocessing_forkserver.test_processes` hangs ?\r\n\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-117437\r\n* gh-118295\n* gh-141804\n* gh-141911\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2024-03-13T18:19:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/116749/cpython/issues/116749"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d5d0ca58-caba-6675-55d2-1c02319ac3fb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD064:1531FB:3260F1:479079:696A4C95
html-safe-noncea68abb6c53b31ad29e69b1bd3fabcf4a11f2b50d7d63534bceb1b1e73959ca2d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDY0OjE1MzFGQjozMjYwRjE6NDc5MDc5OjY5NkE0Qzk1IiwidmlzaXRvcl9pZCI6IjM2NDQ4MDc3NjcxMTQwMDk3NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8564283cbacb46091f1cf06eb353563d680b7eb5dece9f3d3a1842ea614079d9
hovercard-subject-tagissue:2184624265
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/116749/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b11296388389030d8de0b110849416a84a76ac7eac98ec54ec41ecb44d7463fe/python/cpython/issues/116749
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b11296388389030d8de0b110849416a84a76ac7eac98ec54ec41ecb44d7463fe/python/cpython/issues/116749
og:image:altFeature or enhancement This issue is to track the remaining bugs that prevent the Python test suite from passing with the GIL disabled, as well as the PRs under review that fix known issues. Note t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecolesbury
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/116749#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F116749
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F116749
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/116749
Reloadhttps://github.com/python/cpython/issues/116749
Reloadhttps://github.com/python/cpython/issues/116749
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/116749
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/116749
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/116749
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/116749
Disable GIL by default in free-threaded buildhttps://github.com/python/cpython/issues/116749#top
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/colesbury
https://github.com/colesbury
colesburyhttps://github.com/colesbury
on Mar 13, 2024https://github.com/python/cpython/issues/116749#issue-2184624265
gh-112075: _Py_dict_lookup needs to lock shared keys #117528https://github.com/python/cpython/pull/117528
gh-112075: Lock when inserting into shared keys #117824https://github.com/python/cpython/pull/117824
gh-117783: Immortalize objects that use deferred reference counting #118112https://github.com/python/cpython/pull/118112
https://github.com/colesbury/cpython/tree/nogil-integrationhttps://github.com/colesbury/cpython/tree/nogil-integration
https://github.com/python/cpython/actions/runs/8514458340/job/23320231100?pr=117437https://github.com/python/cpython/actions/runs/8514458340/job/23320231100?pr=117437
https://buildbot.python.org/all/#/builders/1281/builds/148/steps/5/logs/stdiohttps://buildbot.python.org/all/#/builders/1281/builds/148/steps/5/logs/stdio
https://buildbot.python.org/all/#/builders/1367/builds/117/steps/5/logs/stdiohttps://buildbot.python.org/all/#/builders/1367/builds/117/steps/5/logs/stdio
https://buildbot.python.org/all/#/builders/1367/builds/119/steps/5/logs/stdiohttps://buildbot.python.org/all/#/builders/1367/builds/119/steps/5/logs/stdio
gh-116749: Run test suite with the GIL disabled #117437https://github.com/python/cpython/pull/117437
gh-116749: Disable GIL by default in free-threaded build #118295https://github.com/python/cpython/pull/118295
gh-116749: Fix code comment for _PyConfig_GIL_DEFAULT #141804https://github.com/python/cpython/pull/141804
[3.14] gh-116749: Fix code comment for _PyConfig_GIL_DEFAULT (gh-141804) #141911https://github.com/python/cpython/pull/141911
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.