René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:879867d1-2974-3de1-e359-e1c3c7193548
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD768:CBF8E:130ADC:1AA66D:696A6231
html-safe-nonce8559c93efeb086e3497e80be6ed878cf49db59df806a243e0161e1eee40dd964
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzY4OkNCRjhFOjEzMEFEQzoxQUE2NkQ6Njk2QTYyMzEiLCJ2aXNpdG9yX2lkIjoiMzg5MjIwNjg4MTMyMDEwMDQwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacea7b960e43a91f7687af879965092e92e4772cc856e5ee56bb5f8a309f84fdd0
hovercard-subject-tagissue:3537249507
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/140431/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f3ec8b8e3bc89f7de251bb5a727be9f9cff3c699c003f75c7f1e10753638aa69/python/cpython/issues/140431
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f3ec8b8e3bc89f7de251bb5a727be9f9cff3c699c003f75c7f1e10753638aa69/python/cpython/issues/140431
og:image:altBug 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameashm-dev
hostnamegithub.com
expected-hostnamegithub.com
None9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392
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
release87cbd411c2982752221b5751d583a515b23bf5fa
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/140431#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F140431
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%2F140431
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/140431
Reloadhttps://github.com/python/cpython/issues/140431
Reloadhttps://github.com/python/cpython/issues/140431
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/140431
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/140431
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/140431
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/140431
Segfault in gc_free_threading.c after PR #140262 with ASAN build and free-threading testshttps://github.com/python/cpython/issues/140431#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%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/ashm-dev
https://github.com/ashm-dev
ashm-devhttps://github.com/ashm-dev
on Oct 21, 2025https://github.com/python/cpython/issues/140431#issue-3537249507
#140262https://github.com/python/cpython/pull/140262
gh-140431: Fix GC crash due to partially initialized coroutines #140470https://github.com/python/cpython/pull/140470
[3.14] gh-140431: Fix GC crash due to partially initialized coroutines (gh-140470) #140504https://github.com/python/cpython/pull/140504
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%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
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.