René's URL Explorer Experiment


Title: `test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race` crashes intermittently in free-threaded builds · Issue #128656 · python/cpython · GitHub

Open Graph Title: `test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race` crashes intermittently in free-threaded builds · Issue #128656 · python/cpython

X Title: `test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race` crashes intermittently in free-threaded builds · Issue #128656 · python/cpython

Description: Crash report What happened? test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race crashes intermittently in free-threaded builds. The crash is reproducible by running the test repeatedly: > ./python -m test test_asyncio...

Open Graph Description: Crash report What happened? test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race crashes intermittently in free-threaded builds. The crash is reproducible by running the test rep...

X Description: Crash report What happened? test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race crashes intermittently in free-threaded builds. The crash is reproducible by running the test rep...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race` crashes intermittently in free-threaded builds","articleBody":"# Crash report\n\n### What happened?\n\n`test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race` crashes intermittently in free-threaded builds. The crash is reproducible by running the test repeatedly:\n\n```\n\u003e ./python -m test test_asyncio.test_free_threading --match test.test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race -F\nUsing random seed: 1718500416\n0:00:00 load avg: 0.85 Run tests sequentially in a single process\n0:00:00 load avg: 0.85 [  1] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  2] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  3] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  4] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  5] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  6] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  7] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  8] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [  9] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [ 10] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [ 11] test_asyncio.test_free_threading\n0:00:00 load avg: 0.85 [ 12] test_asyncio.test_free_threading\n0:00:01 load avg: 0.85 [ 13] test_asyncio.test_free_threading\n0:00:01 load avg: 0.85 [ 14] test_asyncio.test_free_threading\n0:00:01 load avg: 0.85 [ 15] test_asyncio.test_free_threading\n0:00:01 load avg: 0.85 [ 16] test_asyncio.test_free_threading\nObjects/object.c:578: PyObject_CallFinalizerFromDealloc: Assertion failed: PyObject_CallFinalizerFromDealloc called on object with a non-zero refcount\nEnable tracemalloc to get the memory block allocation traceback\n\nobject address  : 0x200142d6020\nobject refcount : 1\nobject type     : 0x200015ecd10\nobject type name: _asyncio.Task\nobject repr     : \u003cTask finished name='None' coro=\u003cTestFreeThreading.test_all_tasks_race.\u003clocals\u003e.main.\u003clocals\u003e.coro() done, defined at /data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py:20\u003e result=None\u003e\n\nFatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed\nPython runtime state: initialized\n\nThread 0x00007fbb97400640 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 21 in coro\n\nThread 0x00007fbb97e00640 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 208 in _cancel_all_tasks\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 71 in close\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 63 in __exit__\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 42 in runner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 996 in run\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1054 in _bootstrap_inner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1016 in _bootstrap\n\nThread 0x00007fbb9ca00640 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 208 in _cancel_all_tasks\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 71 in close\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 63 in __exit__\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 42 in runner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 996 in run\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1054 in _bootstrap_inner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1016 in _bootstrap\n\nThread 0x00007fbb9d400640 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/asyncio/events.py\", line 98 in _run\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 2026 in _run_once\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 683 in run_forever\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 712 in run_until_complete\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 127 in run\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 45 in runner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 996 in run\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1054 in _bootstrap_inner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1016 in _bootstrap\n\nCurrent thread 0x00007fbb9de00640 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/asyncio/events.py\", line 98 in _run\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 2041 in _run_once\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 683 in run_forever\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 712 in run_until_complete\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 127 in run\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 45 in runner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 996 in run\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1054 in _bootstrap_inner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1016 in _bootstrap\n\nThread 0x00007fbb9e800640 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 2041 in _run_once\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 683 in run_forever\n  File \"/data/users/mpage/cpython/Lib/asyncio/base_events.py\", line 712 in run_until_complete\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 127 in run\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 45 in runner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 996 in run\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1054 in _bootstrap_inner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1016 in _bootstrap\n\nThread 0x00007fbb96000640 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 208 in _cancel_all_tasks\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 71 in close\n  File \"/data/users/mpage/cpython/Lib/asyncio/runners.py\", line 63 in __exit__\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 42 in runner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 996 in run\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1054 in _bootstrap_inner\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1016 in _bootstrap\n\nThread 0x00007fbb94c00640 (most recent call first):\n  \u003cno Python frame\u003e\n\nThread 0x00007fbb9f463740 (most recent call first):\n  File \"/data/users/mpage/cpython/Lib/threading.py\", line 1105 in join\n  File \"/data/users/mpage/cpython/Lib/test/support/threading_helper.py\", line 147 in start_threads\n  File \"/data/users/mpage/cpython/Lib/contextlib.py\", line 148 in __exit__\n  File \"/data/users/mpage/cpython/Lib/test/test_asyncio/test_free_threading.py\", line 53 in test_all_tasks_race\n  File \"/data/users/mpage/cpython/Lib/unittest/case.py\", line 606 in _callTestMethod\n  File \"/data/users/mpage/cpython/Lib/unittest/case.py\", line 660 in run\n  File \"/data/users/mpage/cpython/Lib/unittest/case.py\", line 716 in __call__\n  File \"/data/users/mpage/cpython/Lib/unittest/suite.py\", line 122 in run\n  File \"/data/users/mpage/cpython/Lib/unittest/suite.py\", line 84 in __call__\n  File \"/data/users/mpage/cpython/Lib/unittest/suite.py\", line 122 in run\n  File \"/data/users/mpage/cpython/Lib/unittest/suite.py\", line 84 in __call__\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/testresult.py\", line 148 in run\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 58 in _run_suite\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 38 in run_unittest\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 136 in test_func\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 92 in regrtest_runner\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 139 in _load_run_test\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 184 in _runtest_env_changed_exc\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 284 in _runtest\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/single.py\", line 313 in run_single_test\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/main.py\", line 372 in run_test\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/main.py\", line 406 in run_tests_sequentially\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/main.py\", line 552 in _run_tests\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/main.py\", line 587 in run_tests\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/main.py\", line 759 in main\n  File \"/data/users/mpage/cpython/Lib/test/libregrtest/main.py\", line 767 in main\n  File \"/data/users/mpage/cpython/Lib/test/__main__.py\", line 2 in \u003cmodule\u003e\n  File \"/data/users/mpage/cpython/Lib/runpy.py\", line 88 in _run_code\n  File \"/data/users/mpage/cpython/Lib/runpy.py\", line 198 in _run_module_as_main\nAborted (core dumped)\n\u003e\n```\n\nHere is the C stack trace:\n\n```\n(gdb) bt\n#0  0x00007fbb9f28bacc in __pthread_kill_implementation () from /lib64/libc.so.6\n#1  0x00007fbb9f23e686 in raise () from /lib64/libc.so.6\n#2  0x00007fbb9f228833 in abort () from /lib64/libc.so.6\n#3  0x00000000006f8605 in fatal_error_exit (status=\u003coptimized out\u003e) at Python/pylifecycle.c:3154\n#4  0x00000000007037ec in fatal_error (fd=2, header=header@entry=1, prefix=prefix@entry=0x812aa0 \u003c__func__.6\u003e \"_PyObject_AssertFailed\", msg=msg@entry=0x81284f \"_PyObject_AssertFailed\", status=status@entry=-1)\n    at Python/pylifecycle.c:3370\n#5  0x0000000000703856 in _Py_FatalErrorFunc (func=func@entry=0x812aa0 \u003c__func__.6\u003e \"_PyObject_AssertFailed\", msg=msg@entry=0x81284f \"_PyObject_AssertFailed\") at Python/pylifecycle.c:3386\n#6  0x0000000000539c83 in _PyObject_AssertFailed (obj=obj@entry=\u003c_asyncio.Task() at remote 0x200142d6020\u003e, expr=expr@entry=0x0,\n    msg=msg@entry=0x8121a0 \"PyObject_CallFinalizerFromDealloc called on object with a non-zero refcount\", file=file@entry=0x812637 \"Objects/object.c\", line=line@entry=578,\n    function=function@entry=0x812ee0 \u003c__func__.46\u003e \"PyObject_CallFinalizerFromDealloc\") at Objects/object.c:2968\n#7  0x000000000053b106 in PyObject_CallFinalizerFromDealloc (self=self@entry=\u003c_asyncio.Task() at remote 0x200142d6020\u003e) at Objects/object.c:578\n#8  0x00007fbb9efd6ed9 in TaskObj_dealloc (self=\u003c_asyncio.Task() at remote 0x200142d6020\u003e) at ./Modules/_asynciomodule.c:2818\n#9  0x0000000000539423 in _Py_Dealloc (op=\u003c_asyncio.Task() at remote 0x200142d6020\u003e) at Objects/object.c:2991\n#10 0x0000000000539598 in _Py_MergeZeroLocalRefcount (op=op@entry=\u003c_asyncio.Task() at remote 0x200142d6020\u003e) at Objects/object.c:436\n#11 0x000000000055f43e in Py_DECREF (op=\u003c_asyncio.Task() at remote 0x200142d6020\u003e, lineno=511, filename=0x81c6e5 \"Objects/setobject.c\") at ./Include/refcount.h:343\n#12 set_dealloc (\n    self={\u003c_asyncio.Task() at remote 0x200142d2020\u003e, \u003c_asyncio.Task() at remote 0x200142d4020\u003e, \u003c_asyncio.Task() at remote 0x200142d6020\u003e, \u003c_asyncio.Task() at remote 0x200142d2120\u003e, \u003c_asyncio.Task() at remote 0x200142d4120\u003e, \u003c_asyncio.Task() at remote 0x200142d6120\u003e, \u003c_asyncio.Task() at remote 0x200142d0220\u003e, \u003c_asyncio.Task() at remote 0x200142d2220\u003e, \u003c_asyncio.Task() at remote 0x200142d4220\u003e, \u003c_asyncio.Task() at remote 0x200142d6220\u003e, \u003c_asyncio.Task() at remote 0x200142d0320\u003e, \u003c_asyncio.Task() at remote 0x200142d2320\u003e, \u003c_asyncio.Task() at remote 0x200142d4320\u003e, \u003c_asyncio.Task() at remote 0x200142d6320\u003e, \u003c_asyncio.Task() at remote 0x200142d0420\u003e, \u003c_asyncio.Task() at remote 0x200142d2420\u003e, \u003c_asyncio.Task() at remote 0x200142d4420\u003e, \u003c_asyncio.Task() at remote 0x200142d6420\u003e, \u003c_asyncio.Task() at remote 0x200142d0520\u003e, \u003c_asyncio.Task() at remote 0x200142d2520\u003e, \u003c_asyncio.Task() at remote 0x200142d4520\u003e, \u003c_asyncio.Task() at remote 0x200142d6520\u003e, \u003c_asyncio.Task() at remote 0x200142d0620\u003e, \u003c_asyncio.Task() at remote 0x20014...(truncated)) at Objects/setobject.c:511\n#13 0x0000000000539423 in _Py_Dealloc (\n    op={\u003c_asyncio.Task() at remote 0x200142d2020\u003e, \u003c_asyncio.Task() at remote 0x200142d4020\u003e, \u003c_asyncio.Task() at remote 0x200142d6020\u003e, \u003c_asyncio.Task() at remote 0x200142d2120\u003e, \u003c_asyncio.Task() at remote 0x200142d4120\u003e, \u003c_asyncio.Task() at remote 0x200142d6120\u003e, \u003c_asyncio.Task() at remote 0x200142d0220\u003e, \u003c_asyncio.Task() at remote 0x200142d2220\u003e, \u003c_asyncio.Task() at remote 0x200142d4220\u003e, \u003c_asyncio.Task() at remote 0x200142d6220\u003e, \u003c_asyncio.Task() at remote 0x200142d0320\u003e, \u003c_asyncio.Task() at remote 0x200142d2320\u003e, \u003c_asyncio.Task() at remote 0x200142d4320\u003e, \u003c_asyncio.Task() at remote 0x200142d6320\u003e, \u003c_asyncio.Task() at remote 0x200142d0420\u003e, \u003c_asyncio.Task() at remote 0x200142d2420\u003e, \u003c_asyncio.Task() at remote 0x200142d4420\u003e, \u003c_asyncio.Task() at remote 0x200142d6420\u003e, \u003c_asyncio.Task() at remote 0x200142d0520\u003e, \u003c_asyncio.Task() at remote 0x200142d2520\u003e, \u003c_asyncio.Task() at remote 0x200142d4520\u003e, \u003c_asyncio.Task() at remote 0x200142d6520\u003e, \u003c_asyncio.Task() at remote 0x200142d0620\u003e, \u003c_asyncio.Task() at remote 0x20014...(truncated)) at Objects/object.c:2991\n#14 0x0000000000539598 in _Py_MergeZeroLocalRefcount (\n    op=op@entry={\u003c_asyncio.Task() at remote 0x200142d2020\u003e, \u003c_asyncio.Task() at remote 0x200142d4020\u003e, \u003c_asyncio.Task() at remote 0x200142d6020\u003e, \u003c_asyncio.Task() at remote 0x200142d2120\u003e, \u003c_asyncio.Task() at remote 0x200142d4120\u003e, \u003c_asyncio.Task() at remote 0x200142d6120\u003e, \u003c_asyncio.Task() at remote 0x200142d0220\u003e, \u003c_asyncio.Task() at remote 0x200142d2220\u003e, \u003c_asyncio.Task() at remote 0x200142d4220\u003e, \u003c_asyncio.Task() at remote 0x200142d6220\u003e, \u003c_asyncio.Task() at remote 0x200142d0320\u003e, \u003c_asyncio.Task() at remote 0x200142d2320\u003e, \u003c_asyncio.Task() at remote 0x200142d4320\u003e, \u003c_asyncio.Task() at remote 0x200142d6320\u003e, \u003c_asyncio.Task() at remote 0x200142d0420\u003e, \u003c_asyncio.Task() at remote 0x200142d2420\u003e, \u003c_asyncio.Task() at remote 0x200142d4420\u003e, \u003c_asyncio.Task() at remote 0x200142d6420\u003e, \u003c_asyncio.Task() at remote 0x200142d0520\u003e, \u003c_asyncio.Task() at remote 0x200142d2520\u003e, \u003c_asyncio.Task() at remote 0x200142d4520\u003e, \u003c_asyncio.Task() at remote 0x200142d6520\u003e, \u003c_asyncio.Task() at remote 0x200142d0620\u003e, \u003c_asyncio.Task() at remote 0x20014...(truncated)) at Objects/object.c:436\n#15 0x00000000006b766f in Py_DECREF (\n    op={\u003c_asyncio.Task() at remote 0x200142d2020\u003e, \u003c_asyncio.Task() at remote 0x200142d4020\u003e, \u003c_asyncio.Task() at remote 0x200142d6020\u003e, \u003c_asyncio.Task() at remote 0x200142d2120\u003e, \u003c_asyncio.Task() at remote 0x200142d4120\u003e, \u003c_asyncio.Task() at remote 0x200142d6120\u003e, \u003c_asyncio.Task() at remote 0x200142d0220\u003e, \u003c_asyncio.Task() at remote 0x200142d2220\u003e, \u003c_asyncio.Task() at remote 0x200142d4220\u003e, \u003c_asyncio.Task() at remote 0x200142d6220\u003e, \u003c_asyncio.Task() at remote 0x200142d0320\u003e, \u003c_asyncio.Task() at remote 0x200142d2320\u003e, \u003c_asyncio.Task() at remote 0x200142d4320\u003e, \u003c_asyncio.Task() at remote 0x200142d6320\u003e, \u003c_asyncio.Task() at remote 0x200142d0420\u003e, \u003c_asyncio.Task() at remote 0x200142d2420\u003e, \u003c_asyncio.Task() at remote 0x200142d4420\u003e, \u003c_asyncio.Task() at remote 0x200142d6420\u003e, \u003c_asyncio.Task() at remote 0x200142d0520\u003e, \u003c_asyncio.Task() at remote 0x200142d2520\u003e, \u003c_asyncio.Task() at remote 0x200142d4520\u003e, \u003c_asyncio.Task() at remote 0x200142d6520\u003e, \u003c_asyncio.Task() at remote 0x200142d0620\u003e, \u003c_asyncio.Task() at remote 0x20014...(truncated), lineno=99, filename=0x8802a0 \"Python/frame.c\")\n    at ./Include/refcount.h:343\n#16 _PyFrame_ClearLocals (frame=frame@entry=0x200142001e8) at Python/frame.c:99\n#17 0x00000000006b78e6 in _PyFrame_ClearExceptCode (frame=frame@entry=0x200142001e8) at Python/frame.c:124\n#18 0x000000000064dab3 in clear_gen_frame (tstate=0xb5fb30, frame=0x200142001e8) at Python/ceval.c:1750\n#19 0x0000000000651f66 in _PyEval_FrameClearAndPop (tstate=tstate@entry=0xb5fb30, frame=frame@entry=0x200142001e8) at Python/ceval.c:1763\n#20 0x000000000067a993 in _PyEval_EvalFrameDefault (tstate=tstate@entry=0xb5fb30, frame=0x7fbb9ddff4f0, frame@entry=0x200142001e8, throwflag=throwflag@entry=0) at Python/generated_cases.c.h:7103\n#21 0x00000000004e1144 in _PyEval_EvalFrame (throwflag=0, frame=0x200142001e8, tstate=0xb5fb30) at ./Include/internal/pycore_ceval.h:116\n#22 gen_send_ex2 (gen=0x20014200190, arg=None, presult=0x7fbb9ddff658, exc=exc@entry=0, closing=closing@entry=0) at Objects/genobject.c:245\n#23 0x00000000004e1311 in PyGen_am_send (self=\u003coptimized out\u003e, arg=\u003coptimized out\u003e, result=\u003coptimized out\u003e) at Objects/genobject.c:280\n#24 0x0000000000492d54 in PyIter_Send (iter=iter@entry=\u003ccoroutine at remote 0x20014200190\u003e, arg=None, result=result@entry=0x7fbb9ddff658) at Objects/abstract.c:2927\n#25 0x00007fbb9efdd157 in task_step_impl (state=state@entry=0x20000591eb0, task=task@entry=0x200142d0120, exc=exc@entry=0x0) at ./Modules/_asynciomodule.c:2942\n#26 0x00007fbb9efde105 in task_step (state=state@entry=0x20000591eb0, task=task@entry=0x200142d0120, exc=exc@entry=0x0) at ./Modules/_asynciomodule.c:3265\n#27 0x00007fbb9efde536 in task_wakeup_lock_held (task=task@entry=0x200142d0120, o=o@entry=\u003c_asyncio.Future() at remote 0x200142e0260\u003e) at ./Modules/_asynciomodule.c:3365\n#28 0x00007fbb9efde635 in task_wakeup (task=0x200142d0120, o=\u003c_asyncio.Future() at remote 0x200142e0260\u003e) at ./Modules/_asynciomodule.c:3397\n#29 0x0000000000532a6f in cfunction_vectorcall_O (func=\u003cbuilt-in method task_wakeup of _asyncio.Task object at remote 0x200142d0120\u003e, args=\u003coptimized out\u003e, nargsf=\u003coptimized out\u003e, kwnames=\u003coptimized out\u003e)\n    at ./Include/cpython/methodobject.h:50\n#30 0x00000000006a3456 in _PyObject_VectorcallTstate (tstate=tstate@entry=0xb5fb30, callable=\u003cbuilt-in method task_wakeup of _asyncio.Task object at remote 0x200142d0120\u003e, args=args@entry=0x20014077a20,\n    nargsf=nargsf@entry=1, kwnames=kwnames@entry=0x0) at ./Include/internal/pycore_call.h:167\n#31 0x00000000006a493e in context_run (self=\u003c_contextvars.Context at remote 0x20014070790\u003e, args=0x20014077a18, nargs=2, kwnames=0x0) at Python/context.c:728\n#32 0x0000000000531e1d in cfunction_vectorcall_FASTCALL_KEYWORDS (func=\u003cbuilt-in method run of _contextvars.Context object at remote 0x20014070790\u003e, args=0x20014077a18, nargsf=\u003coptimized out\u003e, kwnames=0x0)\n    at ./Include/cpython/methodobject.h:50\n#33 0x00000000004b7bff in _PyVectorcall_Call (tstate=tstate@entry=0xb5fb30, func=0x531d16 \u003ccfunction_vectorcall_FASTCALL_KEYWORDS\u003e,\n    callable=callable@entry=\u003cbuilt-in method run of _contextvars.Context object at remote 0x20014070790\u003e,\n    tuple=tuple@entry=(\u003cbuilt-in method task_wakeup of _asyncio.Task object at remote 0x200142d0120\u003e, \u003c_asyncio.Future() at remote 0x200142e0260\u003e), kwargs=kwargs@entry=0x0) at ./Include/object.h:783\n#34 0x00000000004b7f6b in _PyObject_Call (tstate=0xb5fb30, callable=callable@entry=\u003cbuilt-in method run of _contextvars.Context object at remote 0x20014070790\u003e,\n    args=(\u003cbuilt-in method task_wakeup of _asyncio.Task object at remote 0x200142d0120\u003e, \u003c_asyncio.Future() at remote 0x200142e0260\u003e), kwargs=0x0) at Objects/call.c:348\n#35 0x00000000004b7fc2 in PyObject_Call (callable=callable@entry=\u003cbuilt-in method run of _contextvars.Context object at remote 0x20014070790\u003e, args=\u003coptimized out\u003e, kwargs=\u003coptimized out\u003e) at Objects/call.c:373\n#36 0x000000000065ec31 in _PyEval_EvalFrameDefault (tstate=tstate@entry=0xb5fb30, frame=0x7fbb9efae540, frame@entry=0x7fbb9efae020, throwflag=throwflag@entry=0) at Python/generated_cases.c.h:1778\n#37 0x000000000068260b in _PyEval_EvalFrame (throwflag=0, frame=0x7fbb9efae020, tstate=0xb5fb30) at ./Include/internal/pycore_ceval.h:116\n#38 _PyEval_Vector (tstate=\u003coptimized out\u003e, func=\u003coptimized out\u003e, locals=locals@entry=0x0, args=0x7fbb9ddffd08, argcount=1, kwnames=\u003coptimized out\u003e) at Python/ceval.c:1911\n#39 0x00000000004b5444 in _PyFunction_Vectorcall (func=\u003coptimized out\u003e, stack=\u003coptimized out\u003e, nargsf=\u003coptimized out\u003e, kwnames=\u003coptimized out\u003e) at Objects/call.c:413\n#40 0x00000000004ba0c6 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=1, args=0x7fbb9ddffd08, callable=\u003cfunction at remote 0x20000b8a810\u003e, tstate=0xb5fb30) at ./Include/internal/pycore_call.h:167\n#41 method_vectorcall (method=\u003coptimized out\u003e, args=\u003coptimized out\u003e, nargsf=\u003coptimized out\u003e, kwnames=0x0) at Objects/classobject.c:71\n#42 0x00000000004b7bff in _PyVectorcall_Call (tstate=tstate@entry=0xb5fb30, func=0x4b9e34 \u003cmethod_vectorcall\u003e, callable=callable@entry=\u003cmethod at remote 0x200019ccbb0\u003e, tuple=tuple@entry=(), kwargs=kwargs@entry=0x0)\n    at ./Include/object.h:783\n#43 0x00000000004b7f6b in _PyObject_Call (tstate=0xb5fb30, callable=\u003cmethod at remote 0x200019ccbb0\u003e, args=(), kwargs=0x0) at Objects/call.c:348\n#44 0x00000000004b7fc2 in PyObject_Call (callable=\u003coptimized out\u003e, args=\u003coptimized out\u003e, kwargs=\u003coptimized out\u003e) at Objects/call.c:373\n#45 0x00000000007b8fc9 in thread_run (boot_raw=boot_raw@entry=0xb52d30) at ./Modules/_threadmodule.c:346\n#46 0x0000000000727ff9 in pythread_wrapper (arg=\u003coptimized out\u003e) at Python/thread_pthread.h:242\n#47 0x00007fbb9f289d82 in start_thread () from /lib64/libc.so.6\n--Type \u003cRET\u003e for more, q to quit, c to continue without paging--\n#48 0x00007fbb9f30ee20 in clone3 () from /lib64/libc.so.6\n(gdb)\n```\n\ncc @kumaraditya303 \n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.14.0a3+ experimental free-threading build (heads/main:58a9133fc2c, Jan  8 2025, 16:10:49) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)]","author":{"url":"https://github.com/mpage","@type":"Person","name":"mpage"},"datePublished":"2025-01-09T00:32:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/128656/cpython/issues/128656"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:31cc1f9c-170b-4bc6-7fcf-f40547e959e6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C20:245D90:342A85:4626DC:6969DA68
html-safe-nonce4eabcefcb95e76074a7130345ed87bd96cf5fb64ffca88362aec19d3ffdd5384
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzIwOjI0NUQ5MDozNDJBODU6NDYyNkRDOjY5NjlEQTY4IiwidmlzaXRvcl9pZCI6IjM3MDU4MTU4NjkzMjUyMTU3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9eea9d1989f5d723136fc7afd906e22a9d14452f6b979b0abbb7f746adf88330
hovercard-subject-tagissue:2776606233
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/128656/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4995a95558b6c1339f6f608233859e9279d6be34fb64c3a664a5552f7590e7d9/python/cpython/issues/128656
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4995a95558b6c1339f6f608233859e9279d6be34fb64c3a664a5552f7590e7d9/python/cpython/issues/128656
og:image:altCrash report What happened? test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race crashes intermittently in free-threaded builds. The crash is reproducible by running the test rep...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamempage
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
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
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/128656#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128656
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%2F128656
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/128656
Reloadhttps://github.com/python/cpython/issues/128656
Reloadhttps://github.com/python/cpython/issues/128656
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/128656
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/128656
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/128656
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128656
#128541https://github.com/python/cpython/pull/128541
test_asyncio.test_free_threading.TestCFreeThreading.test_all_tasks_race crashes intermittently in free-threaded buildshttps://github.com/python/cpython/issues/128656#top
#128541https://github.com/python/cpython/pull/128541
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-asynciohttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-asyncio%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/mpage
https://github.com/mpage
mpagehttps://github.com/mpage
on Jan 9, 2025https://github.com/python/cpython/issues/128656#issue-2776606233
@kumaraditya303https://github.com/kumaraditya303
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-asynciohttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-asyncio%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%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.