Title: Segfault in gc_free_threading.c after PR #140262 with ASAN build and free-threading tests · Issue #140431 · python/cpython · GitHub
Open Graph Title: Segfault in gc_free_threading.c after PR #140262 with ASAN build and free-threading tests · Issue #140431 · python/cpython
X Title: Segfault in gc_free_threading.c after PR #140262 with ASAN build and free-threading tests · Issue #140431 · python/cpython
Description: Bug report Bug description: Segmentation fault occurs in gc_free_threading.c when running test_asyncio.test_free_threading after PR #140262. Build configuration: CC=clang CXX=clang++ ./configure --with-address-sanitizer --with-pydebug --...
Open Graph Description: Bug report Bug description: Segmentation fault occurs in gc_free_threading.c when running test_asyncio.test_free_threading after PR #140262. Build configuration: CC=clang CXX=clang++ ./configure --...
X Description: Bug report Bug description: Segmentation fault occurs in gc_free_threading.c when running test_asyncio.test_free_threading after PR #140262. Build configuration: CC=clang CXX=clang++ ./configure --...
Opengraph URL: https://github.com/python/cpython/issues/140431
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfault in gc_free_threading.c after PR #140262 with ASAN build and free-threading tests","articleBody":"# Bug report\n\n### Bug description:\n\nSegmentation fault occurs in `gc_free_threading.c` when running `test_asyncio.test_free_threading` after PR #140262.\n\n**Build configuration:**\n```\nCC=clang CXX=clang++ ./configure --with-address-sanitizer --with-pydebug --disable-gil \u0026\u0026 make -j$(nproc)\n```\n\n**Reproduction:**\n```\n./python -X dev -m test -R 3:3 test_asyncio.test_free_threading\n```\n\nThe crash occurs intermittently, but is reproducible 100% of the time with `-R 3:3` or higher.\n\n\u003cdetails\u003e\u003csummary\u003eDetails\u003c/summary\u003e\n\u003cp\u003e\n\n```\nFatal Python error: Segmentation fault\n\n\u003cCannot show all threads while the GIL is disabled\u003e\nStack (most recent call first):\n File \"/home/shamil/oss/cpython/main/Lib/traceback.py\", line 302 in __init__\n File \"/home/shamil/oss/cpython/main/Lib/traceback.py\", line 501 in _extract_from_extended_frame_gen\n File \"/home/shamil/oss/cpython/main/Lib/traceback.py\", line 462 in extract\n File \"/home/shamil/oss/cpython/main/Lib/traceback.py\", line 263 in extract_stack\n File \"/home/shamil/oss/cpython/main/Lib/test/test_asyncio/test_free_threading.py\", line 216 in factory\n File \"/home/shamil/oss/cpython/main/Lib/asyncio/base_events.py\", line 468 in create_task\n File \"/home/shamil/oss/cpython/main/Lib/asyncio/taskgroups.py\", line 196 in create_task\n File \"/home/shamil/oss/cpython/main/Lib/test/test_asyncio/test_free_threading.py\", line 34 in main\n File \"/home/shamil/oss/cpython/main/Lib/asyncio/events.py\", line 94 in _run\n File \"/home/shamil/oss/cpython/main/Lib/asyncio/base_events.py\", line 2038 in _run_once\n File \"/home/shamil/oss/cpython/main/Lib/asyncio/base_events.py\", line 677 in run_forever\n File \"/home/shamil/oss/cpython/main/Lib/asyncio/base_events.py\", line 706 in run_until_complete\n File \"/home/shamil/oss/cpython/main/Lib/asyncio/runners.py\", line 127 in run\n File \"/home/shamil/oss/cpython/main/Lib/test/test_asyncio/test_free_threading.py\", line 52 in runner\n File \"/home/shamil/oss/cpython/main/Lib/threading.py\", line 1017 in run\n File \"/home/shamil/oss/cpython/main/Lib/threading.py\", line 1075 in _bootstrap_inner\n File \"/home/shamil/oss/cpython/main/Lib/threading.py\", line 1037 in _bootstrap\n\nCurrent thread's C stack trace (most recent call first):\n Binary file \"./python\", at ___interceptor_backtrace+0x4a [0x5ca5f227b3ea]\n Binary file \"./python\", at _Py_DumpStack+0x109 [0x5ca5f2aaf979]\n Binary file \"./python\", at +0xb6cd3e [0x5ca5f2b05d3e]\n Binary file \"/lib/x86_64-linux-gnu/libc.so.6\", at +0x45f60 [0x735a10e45f60]\n Binary file \"./python\", at +0x9dd8a5 [0x5ca5f29768a5]\n Binary file \"./python\", at +0x9ced79 [0x5ca5f2967d79]\n Binary file \"./python\", at +0x59abb4 [0x5ca5f2533bb4]\n Binary file \"./python\", at +0x9dcc03 [0x5ca5f2975c03]\n Binary file \"./python\", at +0x69f99c [0x5ca5f263899c]\n Binary file \"./python\", at +0x6a05cd [0x5ca5f26395cd]\n Binary file \"./python\", at +0x9cf324 [0x5ca5f2968324]\n Binary file \"./python\", at +0x9d5964 [0x5ca5f296e964]\n Binary file \"./python\", at +0x9d136d [0x5ca5f296a36d]\n Binary file \"./python\", at _Py_HandlePending+0x165 [0x5ca5f298b4e5]\n Binary file \"./python\", at _PyEval_EvalFrameDefault+0x15b01 [0x5ca5f2891a01]\n Binary file \"./python\", at +0x8e2943 [0x5ca5f287b943]\n Binary file \"./python\", at +0x536686 [0x5ca5f24cf686]\n Binary file \"./python\", at +0x539653 [0x5ca5f24d2653]\n Binary file \"./python\", at +0x72dc43 [0x5ca5f26c6c43]\n Binary file \"./python\", at +0x747a65 [0x5ca5f26e0a65]\n Binary file \"./python\", at +0x7108f9 [0x5ca5f26a98f9]\n Binary file \"./python\", at _PyObject_MakeTpCall+0x2a7 [0x5ca5f24cfd57]\n Binary file \"./python\", at _PyEval_EvalFrameDefault+0x22f3a [0x5ca5f289ee3a]\n Binary file \"./python\", at +0x8e2943 [0x5ca5f287b943]\n Binary file \"./python\", at +0x5362c3 [0x5ca5f24cf2c3]\n Binary file \"./python\", at +0xb5efd1 [0x5ca5f2af7fd1]\n Binary file \"./python\", at +0xb604db [0x5ca5f2af94db]\n Binary file \"./python\", at +0x7108f9 [0x5ca5f26a98f9]\n Binary file \"./python\", at +0x538b88 [0x5ca5f24d1b88]\n Binary file \"./python\", at _PyEval_EvalFrameDefault+0x21486 [0x5ca5f289d386]\n Binary file \"./python\", at +0x8e2943 [0x5ca5f287b943]\n Binary file \"./python\", at +0x542623 [0x5ca5f24db623]\n \u003ctruncated rest of calls\u003e\nAddressSanitizer:DEADLYSIGNAL\n=================================================================\n==1410600==ERROR: AddressSanitizer: SEGV on unknown address 0x03e800158628 (pc 0x735a10ea5fed bp 0x6f5a1003c5b0 sp 0x6f5a1003c580 T894)\n==1410600==The signal is caused by a READ memory access.\n #0 0x735a10ea5fed in __pthread_kill_implementation nptl/pthread_kill.c:44:76\n #1 0x735a10ea5fed in __pthread_kill_internal nptl/pthread_kill.c:89:10\n #2 0x735a10ea5fed in pthread_kill nptl/pthread_kill.c:100:10\n #3 0x735a10e45e2d in raise signal/../sysdeps/posix/raise.c:26:13\n #4 0x5ca5f2b05da1 in faulthandler_fatal_error /home/shamil/oss/cpython/main/./Modules/faulthandler.c:427:5\n #5 0x735a10e45f5f (/lib/x86_64-linux-gnu/libc.so.6+0x45f5f) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)\n #6 0x5ca5f29768a4 in gc_has_bit /home/shamil/oss/cpython/main/Python/gc_free_threading.c:161:17\n #7 0x5ca5f29768a4 in gc_is_unreachable /home/shamil/oss/cpython/main/Python/gc_free_threading.c:185:12\n #8 0x5ca5f29768a4 in visit_clear_unreachable /home/shamil/oss/cpython/main/Python/gc_free_threading.c:1027:9\n #9 0x5ca5f2967d78 in _PyGC_VisitStackRef /home/shamil/oss/cpython/main/Python/gc_free_threading.c:1807:9\n #10 0x5ca5f2533bb3 in gen_traverse /home/shamil/oss/cpython/main/Objects/genobject.c:78:9\n #11 0x5ca5f2975c02 in mark_reachable /home/shamil/oss/cpython/main/Python/gc_free_threading.c:1042:13\n #12 0x5ca5f2975c02 in mark_heap_visitor /home/shamil/oss/cpython/main/Python/gc_free_threading.c:1152:13\n #13 0x5ca5f263899b in _mi_heap_area_visit_blocks /home/shamil/oss/cpython/main/Objects/mimalloc/heap.c:630:14\n #14 0x5ca5f26395cc in mi_heap_area_visitor /home/shamil/oss/cpython/main/Objects/mimalloc/heap.c:681:12\n #15 0x5ca5f26395cc in mi_heap_visit_areas_page /home/shamil/oss/cpython/main/Objects/mimalloc/heap.c:661:10\n #16 0x5ca5f26395cc in mi_heap_visit_pages /home/shamil/oss/cpython/main/Objects/mimalloc/heap.c:46:12\n #17 0x5ca5f26395cc in mi_heap_visit_areas /home/shamil/oss/cpython/main/Objects/mimalloc/heap.c:667:10\n #18 0x5ca5f26395cc in mi_heap_visit_blocks /home/shamil/oss/cpython/main/Objects/mimalloc/heap.c:692:10\n #19 0x5ca5f2968323 in gc_visit_heaps_lock_held /home/shamil/oss/cpython/main/Python/gc_free_threading.c:400:14\n #20 0x5ca5f2968323 in gc_visit_heaps /home/shamil/oss/cpython/main/Python/gc_free_threading.c:439:11\n #21 0x5ca5f296e963 in deduce_unreachable_heap /home/shamil/oss/cpython/main/Python/gc_free_threading.c:1449:9\n #22 0x5ca5f296e963 in gc_collect_internal /home/shamil/oss/cpython/main/Python/gc_free_threading.c:2267:15\n #23 0x5ca5f296a36c in gc_collect_main /home/shamil/oss/cpython/main/Python/gc_free_threading.c:2394:5\n #24 0x5ca5f298b4e4 in _Py_HandlePending /home/shamil/oss/cpython/main/Python/ceval_gil.c:1395:9\n #25 0x5ca5f2891a00 in check_periodics /home/shamil/oss/cpython/main/Python/ceval_macros.h:412:16\n #26 0x5ca5f2891a00 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:10296:31\n #27 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #28 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #29 0x5ca5f24cf685 in _PyObject_VectorcallDictTstate /home/shamil/oss/cpython/main/Objects/call.c:146:15\n #30 0x5ca5f24d2652 in _PyObject_Call_Prepend /home/shamil/oss/cpython/main/Objects/call.c:504:24\n #31 0x5ca5f26c6c42 in call_method /home/shamil/oss/cpython/main/Objects/typeobject.c:3076:19\n #32 0x5ca5f26e0a64 in slot_tp_init /home/shamil/oss/cpython/main/Objects/typeobject.c:10829:21\n #33 0x5ca5f26a98f8 in type_call /home/shamil/oss/cpython/main/Objects/typeobject.c:2460:19\n #34 0x5ca5f24cfd56 in _PyObject_MakeTpCall /home/shamil/oss/cpython/main/Objects/call.c:242:18\n #35 0x5ca5f289ee39 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:3188:35\n #36 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #37 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #38 0x5ca5f24cf2c2 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #39 0x5ca5f2af7fd0 in future_init /home/shamil/oss/cpython/main/./Modules/_asynciomodule.c:551:30\n #40 0x5ca5f2af94da in _asyncio_Task___init___impl /home/shamil/oss/cpython/main/./Modules/_asynciomodule.c:2332:9\n #41 0x5ca5f2af94da in _asyncio_Task___init__ /home/shamil/oss/cpython/main/./Modules/clinic/_asynciomodule.c.h:955:20\n #42 0x5ca5f26a98f8 in type_call /home/shamil/oss/cpython/main/Objects/typeobject.c:2460:19\n #43 0x5ca5f24d1b87 in _PyObject_Call /home/shamil/oss/cpython/main/Objects/call.c:361:18\n #44 0x5ca5f289d385 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2616:32\n #45 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #46 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #47 0x5ca5f24db622 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #48 0x5ca5f24d8e96 in method_vectorcall /home/shamil/oss/cpython/main/Objects/classobject.c:95:18\n #49 0x5ca5f289d385 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2616:32\n #50 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #51 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #52 0x5ca5f24db622 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #53 0x5ca5f24d8e96 in method_vectorcall /home/shamil/oss/cpython/main/Objects/classobject.c:95:18\n #54 0x5ca5f289d385 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2616:32\n #55 0x5ca5f2539066 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #56 0x5ca5f2539066 in gen_send_ex2 /home/shamil/oss/cpython/main/Objects/genobject.c:259:24\n #57 0x5ca5f247c7f2 in PyIter_Send /home/shamil/oss/cpython/main/Objects/abstract.c:2928:28\n #58 0x5ca5f2ae3e06 in task_step_impl /home/shamil/oss/cpython/main/./Modules/_asynciomodule.c:3123:22\n #59 0x5ca5f2ae3568 in task_step /home/shamil/oss/cpython/main/./Modules/_asynciomodule.c:3463:11\n #60 0x5ca5f2ae2cba in TaskStepMethWrapper_call /home/shamil/oss/cpython/main/./Modules/_asynciomodule.c:2120:11\n #61 0x5ca5f24cfd56 in _PyObject_MakeTpCall /home/shamil/oss/cpython/main/Objects/call.c:242:18\n #62 0x5ca5f292307b in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:167:16\n #63 0x5ca5f292307b in context_run /home/shamil/oss/cpython/main/Python/context.c:728:29\n #64 0x5ca5f289d385 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2616:32\n #65 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #66 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #67 0x5ca5f24db622 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #68 0x5ca5f24d8f46 in method_vectorcall /home/shamil/oss/cpython/main/Objects/classobject.c:73:20\n #69 0x5ca5f2922f98 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #70 0x5ca5f2922f98 in context_run /home/shamil/oss/cpython/main/Python/context.c:728:29\n #71 0x5ca5f28acb49 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:3710:35\n #72 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #73 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #74 0x5ca5f24db622 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #75 0x5ca5f24d8f46 in method_vectorcall /home/shamil/oss/cpython/main/Objects/classobject.c:73:20\n #76 0x5ca5f2c3f82d in thread_run /home/shamil/oss/cpython/main/./Modules/_threadmodule.c:387:21\n #77 0x5ca5f2aa8bec in pythread_wrapper /home/shamil/oss/cpython/main/Python/thread_pthread.h:234:5\n #78 0x5ca5f22d350a in asan_thread_start(void*) asan_interceptors.cpp.o\n #79 0x735a10ea3d63 in start_thread nptl/pthread_create.c:448:8\n #80 0x735a10f373bb in __GI___clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78\n\n==1410600==Register values:\nrax = 0x0000000000000000 rbx = 0x000000000000000b rcx = 0x0000735a10ea5fed rdx = 0x000000000000000b \nrdi = 0x0000000000158628 rsi = 0x0000000000158b27 rbp = 0x00006f5a1003c5b0 rsp = 0x00006f5a1003c580 \n r8 = 0x0000000000000016 r9 = 0x00006f59c2fb06c0 r10 = 0x0000000000000000 r11 = 0x0000000000000246 \nr12 = 0x0000000000158b27 r13 = 0x0000000000000002 r14 = 0x00006f59cabc6000 r15 = 0x000000000000000b \nAddressSanitizer can not provide additional info.\nSUMMARY: AddressSanitizer: SEGV nptl/pthread_kill.c:44:76 in __pthread_kill_implementation\nThread T894 created by T0 here:\n #0 0x5ca5f22b9d05 in pthread_create (/home/shamil/oss/cpython/main/python+0x320d05) (BuildId: 886f38cd1398652417865b8c60cf746257ab32cc)\n #1 0x5ca5f2aa7177 in do_start_joinable_thread /home/shamil/oss/cpython/main/Python/thread_pthread.h:281:14\n #2 0x5ca5f2aa6e51 in PyThread_start_joinable_thread /home/shamil/oss/cpython/main/Python/thread_pthread.h:323:9\n #3 0x5ca5f2c3ed4c in ThreadHandle_start /home/shamil/oss/cpython/main/./Modules/_threadmodule.c:474:9\n #4 0x5ca5f2c3ed4c in do_start_new_thread /home/shamil/oss/cpython/main/./Modules/_threadmodule.c:1920:9\n #5 0x5ca5f2c3c4f2 in thread_PyThread_start_joinable_thread /home/shamil/oss/cpython/main/./Modules/_threadmodule.c:2043:14\n #6 0x5ca5f260b434 in cfunction_call /home/shamil/oss/cpython/main/Objects/methodobject.c:564:18\n #7 0x5ca5f24cfd56 in _PyObject_MakeTpCall /home/shamil/oss/cpython/main/Objects/call.c:242:18\n #8 0x5ca5f289ee39 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:3188:35\n #9 0x5ca5f2539066 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #10 0x5ca5f2539066 in gen_send_ex2 /home/shamil/oss/cpython/main/Objects/genobject.c:259:24\n #11 0x5ca5f2533d2b in gen_iternext /home/shamil/oss/cpython/main/Objects/genobject.c:634:9\n #12 0x5ca5f286fd5a in builtin_next /home/shamil/oss/cpython/main/Python/bltinmodule.c:1681:11\n #13 0x5ca5f28a4822 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2249:35\n #14 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #15 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #16 0x5ca5f24db622 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #17 0x5ca5f24d8e96 in method_vectorcall /home/shamil/oss/cpython/main/Objects/classobject.c:95:18\n #18 0x5ca5f289d385 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2616:32\n #19 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #20 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #21 0x5ca5f24cf76b in _PyObject_VectorcallDictTstate /home/shamil/oss/cpython/main/Objects/call.c:135:15\n #22 0x5ca5f24d2652 in _PyObject_Call_Prepend /home/shamil/oss/cpython/main/Objects/call.c:504:24\n #23 0x5ca5f26c6c42 in call_method /home/shamil/oss/cpython/main/Objects/typeobject.c:3076:19\n #24 0x5ca5f24cfd56 in _PyObject_MakeTpCall /home/shamil/oss/cpython/main/Objects/call.c:242:18\n #25 0x5ca5f289eb31 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:4021:35\n #26 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #27 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #28 0x5ca5f24db622 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #29 0x5ca5f24d8e96 in method_vectorcall /home/shamil/oss/cpython/main/Objects/classobject.c:95:18\n #30 0x5ca5f289d385 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2616:32\n #31 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #32 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #33 0x5ca5f24cf76b in _PyObject_VectorcallDictTstate /home/shamil/oss/cpython/main/Objects/call.c:135:15\n #34 0x5ca5f24d2652 in _PyObject_Call_Prepend /home/shamil/oss/cpython/main/Objects/call.c:504:24\n #35 0x5ca5f26c6c42 in call_method /home/shamil/oss/cpython/main/Objects/typeobject.c:3076:19\n #36 0x5ca5f24cfd56 in _PyObject_MakeTpCall /home/shamil/oss/cpython/main/Objects/call.c:242:18\n #37 0x5ca5f289eb31 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:4021:35\n #38 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #39 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #40 0x5ca5f24db622 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #41 0x5ca5f24d8e96 in method_vectorcall /home/shamil/oss/cpython/main/Objects/classobject.c:95:18\n #42 0x5ca5f289d385 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:2616:32\n #43 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #44 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #45 0x5ca5f24cf76b in _PyObject_VectorcallDictTstate /home/shamil/oss/cpython/main/Objects/call.c:135:15\n #46 0x5ca5f24d2652 in _PyObject_Call_Prepend /home/shamil/oss/cpython/main/Objects/call.c:504:24\n #47 0x5ca5f26c6c42 in call_method /home/shamil/oss/cpython/main/Objects/typeobject.c:3076:19\n #48 0x5ca5f24cfd56 in _PyObject_MakeTpCall /home/shamil/oss/cpython/main/Objects/call.c:242:18\n #49 0x5ca5f289eb31 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:4021:35\n #50 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #51 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #52 0x5ca5f287ad6f in PyEval_EvalCode /home/shamil/oss/cpython/main/Python/ceval.c:884:21\n #53 0x5ca5f286d7bd in builtin_exec_impl /home/shamil/oss/cpython/main/Python/bltinmodule.c:1180:17\n #54 0x5ca5f286d7bd in builtin_exec /home/shamil/oss/cpython/main/Python/clinic/bltinmodule.c.h:571:20\n #55 0x5ca5f24cf2c2 in _PyObject_VectorcallTstate /home/shamil/oss/cpython/main/./Include/internal/pycore_call.h:169:11\n #56 0x5ca5f28b0206 in _PyEval_EvalFrameDefault /home/shamil/oss/cpython/main/Python/generated_cases.c.h:1620:35\n #57 0x5ca5f287b942 in _PyEval_EvalFrame /home/shamil/oss/cpython/main/./Include/internal/pycore_ceval.h:121:16\n #58 0x5ca5f287b942 in _PyEval_Vector /home/shamil/oss/cpython/main/Python/ceval.c:2001:12\n #59 0x5ca5f2ad4734 in pymain_run_module /home/shamil/oss/cpython/main/Modules/main.c:353:14\n #60 0x5ca5f2ad2fb5 in pymain_run_python /home/shamil/oss/cpython/main/Modules/main.c:685:21\n #61 0x5ca5f2ad2fb5 in Py_RunMain /home/shamil/oss/cpython/main/Modules/main.c:772:5\n #62 0x5ca5f2ad431e in pymain_main /home/shamil/oss/cpython/main/Modules/main.c:802:12\n #63 0x5ca5f2ad4483 in Py_BytesMain /home/shamil/oss/cpython/main/Modules/main.c:826:12\n #64 0x735a10e2a574 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16\n #65 0x735a10e2a627 in __libc_start_main csu/../csu/libc-start.c:360:3\n #66 0x5ca5f22320d4 in _start (/home/shamil/oss/cpython/main/python+0x2990d4) (BuildId: 886f38cd1398652417865b8c60cf746257ab32cc)\n\n==1410600==ABORTING\n```\n\n\u003c/p\u003e\n\u003c/details\u003e \n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-140470\n* gh-140504\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ashm-dev","@type":"Person","name":"ashm-dev"},"datePublished":"2025-10-21T16:17:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/140431/cpython/issues/140431"}
| 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:879867d1-2974-3de1-e359-e1c3c7193548 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D768:CBF8E:130ADC:1AA66D:696A6231 |
| html-safe-nonce | 8559c93efeb086e3497e80be6ed878cf49db59df806a243e0161e1eee40dd964 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzY4OkNCRjhFOjEzMEFEQzoxQUE2NkQ6Njk2QTYyMzEiLCJ2aXNpdG9yX2lkIjoiMzg5MjIwNjg4MTMyMDEwMDQwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea7b960e43a91f7687af879965092e92e4772cc856e5ee56bb5f8a309f84fdd0 |
| hovercard-subject-tag | issue:3537249507 |
| 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/140431/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3ec8b8e3bc89f7de251bb5a727be9f9cff3c699c003f75c7f1e10753638aa69/python/cpython/issues/140431 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3ec8b8e3bc89f7de251bb5a727be9f9cff3c699c003f75c7f1e10753638aa69/python/cpython/issues/140431 |
| og:image:alt | Bug report Bug description: Segmentation fault occurs in gc_free_threading.c when running test_asyncio.test_free_threading after PR #140262. Build configuration: CC=clang CXX=clang++ ./configure --... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ashm-dev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| 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 | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width