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
Domain: github.com
{"@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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:31cc1f9c-170b-4bc6-7fcf-f40547e959e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C20:245D90:342A85:4626DC:6969DA68 |
| html-safe-nonce | 4eabcefcb95e76074a7130345ed87bd96cf5fb64ffca88362aec19d3ffdd5384 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzIwOjI0NUQ5MDozNDJBODU6NDYyNkRDOjY5NjlEQTY4IiwidmlzaXRvcl9pZCI6IjM3MDU4MTU4NjkzMjUyMTU3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9eea9d1989f5d723136fc7afd906e22a9d14452f6b979b0abbb7f746adf88330 |
| hovercard-subject-tag | issue:2776606233 |
| 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/128656/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4995a95558b6c1339f6f608233859e9279d6be34fb64c3a664a5552f7590e7d9/python/cpython/issues/128656 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4995a95558b6c1339f6f608233859e9279d6be34fb64c3a664a5552f7590e7d9/python/cpython/issues/128656 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mpage |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width