René's URL Explorer Experiment


Title: `asyncio` `Task` created from a finalizer during `PyThreadState_Clear()` registers into memory that is about to be freed (3.14 regression) · Issue #159041 · python/cpython · GitHub

Open Graph Title: `asyncio` `Task` created from a finalizer during `PyThreadState_Clear()` registers into memory that is about to be freed (3.14 regression) · Issue #159041 · python/cpython

X Title: `asyncio` `Task` created from a finalizer during `PyThreadState_Clear()` registers into memory that is about to be freed (3.14 regression) · Issue #159041 · python/cpython

Description: Bug report PyThreadState_Clear() merges the exiting thread's asyncio task list into the interpreter's list, then, later in the same function, clears tstate->context, tstate->dict, tstate->current_exception and a few other fields that can...

Open Graph Description: Bug report PyThreadState_Clear() merges the exiting thread's asyncio task list into the interpreter's list, then, later in the same function, clears tstate->context, tstate->dict, tstate->current_e...

X Description: Bug report PyThreadState_Clear() merges the exiting thread's asyncio task list into the interpreter's list, then, later in the same function, clears tstate->context, tstate->dict, tst...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`asyncio` `Task` created from a finalizer during `PyThreadState_Clear()` registers into memory that is about to be freed (3.14 regression)","articleBody":"### Bug report\n\n`PyThreadState_Clear()` merges the exiting thread's asyncio task list into the interpreter's list, then, later in the same function, clears `tstate->context`, `tstate->dict`, `tstate->current_exception` and a few other fields that can run arbitrary Python code through a finalizer:\n\nhttps://github.com/python/cpython/blob/c63aec69bd59c55314c06c23f4c22c03de76fe45/Python/pystate.c#L1783-L1818\n\nIf one of those finalizers creates a new `asyncio.Task`, `register_task()` inserts it into `_PyThreadState_GET()`'s own task list:\n\nhttps://github.com/python/cpython/blob/c63aec69bd59c55314c06c23f4c22c03de76fe45/Modules/_asynciomodule.c#L2199-L2209\n\n`_PyThreadState_GET()` still returns the thread calling `PyThreadState_Clear()` on itself, now past the merge point. The Task is otherwise ordinary: nothing is wrong with it, and the event loop that owns it runs it to completion normally, on another thread. The thread that creates the Task is not the loop's thread, but that is not the bug: `register_task()` runs synchronously inside `Task.__init__` and always reads `_PyThreadState_GET()`. A loop on another thread is needed only so the Task outlives the thread and is finished there. Finishing it calls `unregister_task()`, which removes it from the list it was registered on:\n\nhttps://github.com/python/cpython/blob/c63aec69bd59c55314c06c23f4c22c03de76fe45/Modules/_asynciomodule.c#L2211-L2220\n\nBy then the thread that registered it has exited and its `PyThreadState` has been freed. The list the Task's `task_node` points into is embedded in that freed struct. `llist_remove()` writes into it.\n\nIn the reproducer, a background thread runs an event loop. Short-lived threads each store, in a `contextvars.ContextVar`, an object whose `__del__` creates a task on that loop:\n\n```python\nimport _thread\nimport asyncio\nimport contextvars\nimport sys\nimport threading\nimport time\n\nloop = asyncio.new_event_loop()\nthreading.Thread(target=loop.run_forever, daemon=True).start()\nvar = contextvars.ContextVar(\"var\")\n\n\nasync def noop():\n    pass\n\n\nclass CreatesTaskOnClear:\n    def __del__(self):\n        # Runs inside PyThreadState_Clear(), on the thread being cleared.\n        loop.create_task(noop())\n        loop.call_soon_threadsafe(lambda: None)  # wake the loop to run it\n\n\ndef body():\n    var.set(CreatesTaskOnClear())  # dropped by Py_CLEAR(tstate->context)\n\n\nn = int(sys.argv[1]) if len(sys.argv) > 1 else 50\nfor _ in range(n):\n    _thread.start_new_thread(body, ())\n    time.sleep(0.01)  # several threads overlap in mid-teardown at once\ntime.sleep(1)\nprint(f\"{sys.version.split()[0]}: ran {n} threads, \"\n      f\"{len(asyncio.all_tasks(loop))} tasks still tracked\", flush=True)\n```\n\nThreads started and joined one at a time, with nothing else running, did not reproduce this for me. Several threads overlapping in their last moments, as under real load, did, reliably. Under AddressSanitizer the finalizer-created task triggers a heap-use-after-free in `llist_remove`: 6 of 6 runs on 3.14.6 and 10 of 10 on 3.15.0rc3. The identical script on 3.13.16 under the same sanitizer ran clean, 0 of 10, because 3.13 still tracks tasks in a Python-level `weakref.WeakSet`, not a per-thread C list, so this ordering does not occur. (3.12.13 is the same WeakSet design and did not reproduce either.)\n\nAddressSanitizer trace (3.14.6 built `--with-address-sanitizer --without-pymalloc --with-assertions`, frames inside glibc/ASan runtime trimmed):\n\n```\nERROR: AddressSanitizer: heap-use-after-free ... WRITE of size 8 ... thread T1\n    #0 llist_remove Include/internal/pycore_llist.h:83\n    #1 unregister_task_safe Modules/_asynciomodule.c:2219\n    #2 unregister_task Modules/_asynciomodule.c:2240\n    #3 future_schedule_callbacks Modules/_asynciomodule.c:440\n    #4 future_set_result Modules/_asynciomodule.c:653\n    #5 task_step_impl Modules/_asynciomodule.c:3144\n    #6 task_step Modules/_asynciomodule.c:3460\n    #7 TaskStepMethWrapper_call Modules/_asynciomodule.c:2121\n\nfreed by another thread here:\n    #2 free_threadstate Python/pystate.c:1519\n    #3 _PyThreadState_DeleteCurrent Python/pystate.c:1963\n    #4 thread_run Modules/_threadmodule.c:377\n\npreviously allocated by thread T0 here:\n    #3 alloc_threadstate Python/pystate.c:1497\n    #4 new_threadstate Python/pystate.c:1624\n    #5 _PyThreadState_New Python/pystate.c:1690\n    #6 ThreadHandle_start Modules/_threadmodule.c:428\n```\n\nA stock (non-sanitized) build did not visibly crash from this for me, up to 1000 threads in one run. That is consistent with a narrow corruption of a few freed bytes that does not always get reinterpreted as a bad pointer soon enough to show as a fault.\n\nNo fork is involved: this fires on ordinary thread exit alone. Any threaded process that creates asyncio tasks from `contextvars`-held (or `threading.local()`-held, or thread-dict-held) finalizers is exposed.\n\nI looked for an existing report of this before filing. The closest issues are a different mechanism in the same function family: #142556 (re-registration inside `call_exception_handler` during a Task's own dealloc, fixed) and #153809 (a free-threaded-only GC-tracking race in the same dealloc path, fixed). Neither is this ordering hazard between the per-thread task-list merge and the later clearing of `context`/`dict`/`current_exception` in `PyThreadState_Clear()`.\n\nThis could have been introduced in https://github.com/python/cpython/pull/128869.\n\n### Potential fix\n\nEither clear `tstate->context` (and the other fields that can run a finalizer) before the task-list merge, so a task created by one of them is still merged along with the rest, or re-check and re-merge the thread's task list after those clears, in case a finalizer added to it. I have not attempted a patch; I don't know this code well enough to judge GIL-disabled-build implications.\n\n---\n\nI used Opus 5.5 for assistance with investigation and the writeup.\n\n### CPython versions tested on:\n\n3.12, 3.14, 3.13, 3.15\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-159073\n* gh-159319\n* gh-159694\n* gh-159695\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/krassowski","@type":"Person","name":"krassowski"},"datePublished":"2026-10-08T21:16:10Z","url":"https://github.com/python/cpython/issues/159041"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e34dc63e-8994-cc9b-c214-377de2fefb86
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD4EC:2AF0D8:37BC6D:457B3D:6B01FA24
html-safe-nonce2baf25c73a25cf6660969b895136b7a16fd20283a7067012338381796480ed14
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEVDOjJBRjBEODozN0JDNkQ6NDU3QjNEOjZCMDFGQTI0IiwidmlzaXRvcl9pZCI6IjUxMDkzMTA5NTEyOTU5NDExNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3141ad5358309214a706068d9973b515d5618e36a6c901fbededdaa95edba627
hovercard-subject-tagissue:5769023542
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/159041/issue_layout
twitter:imagehttps://opengraph.githubassets.com/53d6dcfbc81ce02f3ddaa867031523b971f8b8ae9b70a7eb82f7a5c7b823dc96/python/cpython/issues/159041
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/53d6dcfbc81ce02f3ddaa867031523b971f8b8ae9b70a7eb82f7a5c7b823dc96/python/cpython/issues/159041
og:image:altBug report PyThreadState_Clear() merges the exiting thread's asyncio task list into the interpreter's list, then, later in the same function, clears tstate->context, tstate->dict, tstate->current_e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekrassowski
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/159041#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F159041
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F159041
Sign uphttps://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/159041
Reloadhttps://github.com/python/cpython/issues/159041
Reloadhttps://github.com/python/cpython/issues/159041
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/159041
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/159041
asyncio Task created from a finalizer during PyThreadState_Clear() registers into memory that is about to be freed (3.14 regression)https://github.com/python/cpython/issues/159041#top
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-asynciohttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-asyncio%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/krassowski
krassowskihttps://github.com/krassowski
on Oct 8, 2026https://github.com/python/cpython/issues/159041#issue-5769023542
cpython/Python/pystate.chttps://github.com/python/cpython/blob/c63aec69bd59c55314c06c23f4c22c03de76fe45/Python/pystate.c#L1783-L1818
c63aec6https://github.com/python/cpython/commit/c63aec69bd59c55314c06c23f4c22c03de76fe45
cpython/Modules/_asynciomodule.chttps://github.com/python/cpython/blob/c63aec69bd59c55314c06c23f4c22c03de76fe45/Modules/_asynciomodule.c#L2199-L2209
c63aec6https://github.com/python/cpython/commit/c63aec69bd59c55314c06c23f4c22c03de76fe45
cpython/Modules/_asynciomodule.chttps://github.com/python/cpython/blob/c63aec69bd59c55314c06c23f4c22c03de76fe45/Modules/_asynciomodule.c#L2211-L2220
c63aec6https://github.com/python/cpython/commit/c63aec69bd59c55314c06c23f4c22c03de76fe45
#142556https://github.com/python/cpython/issues/142556
#153809https://github.com/python/cpython/issues/153809
#128869https://github.com/python/cpython/pull/128869
gh-159041: Fix use-after-free in asyncio task tracking during thread state cleanup #159073https://github.com/python/cpython/pull/159073
gh-159041: Fix asyncio task tracking during thread state clear #159319https://github.com/python/cpython/pull/159319
[3.15] gh-159041: Fix use-after-free in asyncio task tracking during thread state cleanup (GH-159073) #159694https://github.com/python/cpython/pull/159694
[3.14] gh-159041: Fix use-after-free in asyncio task tracking during thread state cleanup (#159073) #159695https://github.com/python/cpython/pull/159695
krassowskihttps://github.com/krassowski
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Oct 8, 2026https://github.com/python/cpython/issues/159041#event-32826305334
aiskhttps://github.com/aisk
topic-asynciohttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-asyncio%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
on Oct 9, 2026https://github.com/python/cpython/issues/159041#event-32857501026
github-project-automationhttps://github.com/apps/github-project-automation
asynciohttps://github.com/orgs/python/projects/29
on Oct 9, 2026https://github.com/python/cpython/issues/159041#event-33120193656
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 9, 2026https://github.com/python/cpython/issues/159041#issuecomment-6082324390
#150456https://github.com/python/cpython/pull/150456
ngoldbaumhttps://github.com/ngoldbaum
on Oct 9, 2026https://github.com/python/cpython/issues/159041#event-32890159683
pythongh-159041: Strengthen asyncio task cleanup checkshttps://github.com/ngoldbaum/cpython/commit/ddf0d98fec96e7f5420dee341644beadea0cd289
pythongh-159041https://github.com/python/cpython/issues/159041
ddf0d98https://github.com/ngoldbaum/cpython/commit/ddf0d98fec96e7f5420dee341644beadea0cd289
mikegit123githttps://github.com/mikegit123git
on Oct 14, 2026https://github.com/python/cpython/issues/159041#event-33199131316
Merge branch 'main' into pythongh-159041-asyncio-task-finalizerhttps://github.com/mikegit123git/cpython/commit/da6789bbe5f549378a84e32317f71aa6f14335f6
pythongh-159041https://github.com/python/cpython/issues/159041
da6789bhttps://github.com/mikegit123git/cpython/commit/da6789bbe5f549378a84e32317f71aa6f14335f6
Merge branch 'main' into pythongh-159041-asyncio-task-finalizerhttps://github.com/mikegit123git/cpython/commit/db3311732b5d2294452bf13c2bf62f708979c067
pythongh-159041https://github.com/python/cpython/issues/159041
db33117https://github.com/mikegit123git/cpython/commit/db3311732b5d2294452bf13c2bf62f708979c067
ngoldbaumhttps://github.com/ngoldbaum
on Oct 16, 2026https://github.com/python/cpython/issues/159041#event-33460619898
pythongh-159041: Transfer asyncio tasks after late interpreter cleanuphttps://github.com/ngoldbaum/cpython/commit/a2a41a3850889835d97e8704c66123b2bc64e0a2
pythongh-159041https://github.com/python/cpython/issues/159041
a2a41a3https://github.com/ngoldbaum/cpython/commit/a2a41a3850889835d97e8704c66123b2bc64e0a2
pythongh-159041: Fix asyncio task tracking during detached interprete…https://github.com/ngoldbaum/cpython/commit/f37e91cb07c1f043f113ad77b00a0fbc648aebb8
pythongh-159041https://github.com/python/cpython/issues/159041
f37e91chttps://github.com/ngoldbaum/cpython/commit/f37e91cb07c1f043f113ad77b00a0fbc648aebb8
pythongh-159041: Simplify the interpreter-clear regression test and m…https://github.com/ngoldbaum/cpython/commit/eb4cb96c06007404795146f9483e068058d79c77
pythongh-159041https://github.com/python/cpython/issues/159041
eb4cb96https://github.com/ngoldbaum/cpython/commit/eb4cb96c06007404795146f9483e068058d79c77
manually backport fix for pythongh-159041https://github.com/ngoldbaum/cpython/commit/9bda69435b09d5575d14f8f83ae6960511331e06
pythongh-159041https://github.com/python/cpython/issues/159041
9bda694https://github.com/ngoldbaum/cpython/commit/9bda69435b09d5575d14f8f83ae6960511331e06
pythongh-159041: Transfer asyncio tasks only during thread state dele…https://github.com/ngoldbaum/cpython/commit/6a867a2a68e70df1b488bc8e5dadc843ec9f2d66
pythongh-159041https://github.com/python/cpython/issues/159041
6a867a2https://github.com/ngoldbaum/cpython/commit/6a867a2a68e70df1b488bc8e5dadc843ec9f2d66
pythongh-159041: Centralize asyncio task transfer during thread-state…https://github.com/ngoldbaum/cpython/commit/c897961336c0e84d116afc3bbb2a4c6ecedd8d6c
pythongh-159041https://github.com/python/cpython/issues/159041
c897961https://github.com/ngoldbaum/cpython/commit/c897961336c0e84d116afc3bbb2a4c6ecedd8d6c
pythongh-159041: Centralize asyncio task transfer during thread-state…https://github.com/ngoldbaum/cpython/commit/fc12f5edd05484280e9042f68050bd75f6cbdc95
pythongh-159041https://github.com/python/cpython/issues/159041
fc12f5ehttps://github.com/ngoldbaum/cpython/commit/fc12f5edd05484280e9042f68050bd75f6cbdc95
pythongh-159041: Simplify asyncio task transfer during thread-state c…https://github.com/ngoldbaum/cpython/commit/ee847580387b39dec239e0d66c9b51b21734923c
pythongh-159041https://github.com/python/cpython/issues/159041
ee84758https://github.com/ngoldbaum/cpython/commit/ee847580387b39dec239e0d66c9b51b21734923c
pythongh-159041: Simplify asyncio task transfer during thread-state c…https://github.com/ngoldbaum/cpython/commit/9af2b9f55375290484fcfbd47f8e6aa6f81a9b21
pythongh-159041https://github.com/python/cpython/issues/159041
9af2b9fhttps://github.com/ngoldbaum/cpython/commit/9af2b9f55375290484fcfbd47f8e6aa6f81a9b21
kevinprimeraquecreo-stackhttps://github.com/kevinprimeraquecreo-stack
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/159041#event-33592155481
github-project-automationhttps://github.com/apps/github-project-automation
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/159041
github-project-automationhttps://github.com/apps/github-project-automation
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/159041
kevinprimeraquecreo-stackhttps://github.com/kevinprimeraquecreo-stack
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/159041#event-33592174663
kumaraditya303https://github.com/kumaraditya303
on Oct 19, 2026https://github.com/python/cpython/issues/159041#event-33611251544
gh-159041: Fix use-after-free in asyncio task tracking during thread …https://github.com/python/cpython/commit/999855b07f9b795ca88ac3349060a06c116a1037
gh-159041https://github.com/python/cpython/issues/159041
999855bhttps://github.com/python/cpython/commit/999855b07f9b795ca88ac3349060a06c116a1037
[3.15] gh-159041: Fix use-after-free in asyncio task tracking during …https://github.com/python/cpython/commit/faf16ef2563afc3af1f220b0ec5e68a12579d201
gh-159041https://github.com/python/cpython/issues/159041
faf16efhttps://github.com/python/cpython/commit/faf16ef2563afc3af1f220b0ec5e68a12579d201
kumaraditya303https://github.com/kumaraditya303
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 19, 2026https://github.com/python/cpython/issues/159041#event-33615720110
github-project-automationhttps://github.com/apps/github-project-automation
asynciohttps://github.com/orgs/python/projects/29
on Oct 19, 2026https://github.com/python/cpython/issues/159041
kumaraditya303https://github.com/kumaraditya303
on Oct 19, 2026https://github.com/python/cpython/issues/159041#event-33617121890
[3.14] gh-159041: Fix use-after-free in asyncio task tracking during …https://github.com/python/cpython/commit/c542ecdec89a60acc968cba3ae75dd89fb03e5fc
gh-159041https://github.com/python/cpython/issues/159041
c542ecdhttps://github.com/python/cpython/commit/c542ecdec89a60acc968cba3ae75dd89fb03e5fc
rjpowerhttps://github.com/rjpower
on Oct 26, 2026https://github.com/python/cpython/issues/159041#event-34302277987
boil: test_embed drops the -X showrefcount leak test and keeps the in…https://github.com/rjpower/cpython/commit/0f2eb6fd0927625fb8ad03d3c1b2d6b07e82094f
0f2eb6fhttps://github.com/rjpower/cpython/commit/0f2eb6fd0927625fb8ad03d3c1b2d6b07e82094f
boil: test_asyncio.test_tasks drops a thread-state finalizer testhttps://github.com/rjpower/cpython/commit/1e5542baf7e2e6f95aff8c3b6ecaa279a36e703f
1e5542bhttps://github.com/rjpower/cpython/commit/1e5542baf7e2e6f95aff8c3b6ecaa279a36e703f
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/159041
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/159041
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-asynciohttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-asyncio%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
asynciohttps://github.com/orgs/python/projects/29
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.