René's URL Explorer Experiment


Title: heap-use-after-free in _PyFunction_LookupByVersion · Issue #108253 · python/cpython · GitHub

Open Graph Title: heap-use-after-free in _PyFunction_LookupByVersion · Issue #108253 · python/cpython

X Title: heap-use-after-free in _PyFunction_LookupByVersion · Issue #108253 · python/cpython

Description: Crash report CPython versions tested on: CPython main branch Operating systems tested on: macOS Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main:531930f47f, Aug 21 2023, 17:14:02) [Clang 14.0.3 (clang-140...

Open Graph Description: Crash report CPython versions tested on: CPython main branch Operating systems tested on: macOS Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main:531930f47f, Aug 21 ...

X Description: Crash report CPython versions tested on: CPython main branch Operating systems tested on: macOS Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main:531930f47f,...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"heap-use-after-free in _PyFunction_LookupByVersion","articleBody":"# Crash report\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.13.0a0 (heads/main:531930f47f, Aug 21 2023, 17:14:02) [Clang 14.0.3 (clang-1403.0.22.14.1)]\n\n### What happened?\n\nShortest repro I've found so far:\n```\n./python.exe -Xuops -m test test_opcache -v\n```\nI'm guessing I'm doing something wrong with the `func_version_cache` logic (the table contains borrowed pointers which are cleared by `func_dealloc`), but I can't quite figure out what. You can't subclass the function type so clearing the table entry in `func_dealloc` would *seem* to be safe. The output from address sanitizer hasn't jogged my memory yet.\n\nClick for address sanitizer output:\n\u003cdetails\u003e\n```\n0:00:00 load avg: 2.38 Run tests sequentially\n0:00:00 load avg: 2.38 [1/1] test_opcache\n=================================================================\n==48442==ERROR: AddressSanitizer: heap-use-after-free on address 0x610000f109e8 at pc 0x000102bf6885 bp 0x7ff7bd537070 sp 0x7ff7bd537068\nREAD of size 4 at 0x610000f109e8 thread T0\n    #0 0x102bf6884 in _PyFunction_LookupByVersion funcobject.c:285\n    #1 0x102fd3c74 in uop_optimize optimizer.c:792\n    #2 0x102fd0c8d in _PyOptimizer_BackEdge optimizer.c:169\n    #3 0x102e98232 in _PyEval_EvalFrameDefault generated_cases.c.h:2960\n    #4 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #5 0x102b87545 in _PyFunction_Vectorcall call.c\n    #6 0x102b84b0a in _PyObject_VectorcallDictTstate call.c:146\n    #7 0x102b87bbe in _PyObject_Call_Prepend call.c:504\n    #8 0x102cdbd0e in slot_tp_init typeobject.c:9057\n    #9 0x102cc3411 in type_call typeobject.c:1700\n    #10 0x102b85226 in _PyObject_MakeTpCall call.c:242\n    #11 0x102b8473d in _PyObject_VectorcallTstate pycore_call.h:184\n    #12 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #13 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #14 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #15 0x102b87545 in _PyFunction_Vectorcall call.c\n    #16 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #17 0x102b8d9af in method_vectorcall classobject.c:91\n    #18 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #19 0x102b86ebd in _PyObject_Call call.c:348\n    #20 0x102b8723c in PyObject_Call call.c:373\n    #21 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #22 0x102bd92f2 in gen_send_ex2 genobject.c:232\n    #23 0x102bd8c60 in gen_send_ex genobject.c:273\n    #24 0x102bda780 in _gen_throw genobject.c:561\n    #25 0x102bd999e in gen_throw genobject.c:598\n    #26 0x102baa5ab in method_vectorcall_FASTCALL descrobject.c:410\n    #27 0x102b8468a in _PyObject_VectorcallTstate pycore_call.h:186\n    #28 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #29 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #30 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #31 0x102b87545 in _PyFunction_Vectorcall call.c\n    #32 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #33 0x102b8d8c3 in method_vectorcall classobject.c:61\n    #34 0x102b8468a in _PyObject_VectorcallTstate pycore_call.h:186\n    #35 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #36 0x102e840b6 in _PyEval_EvalFrameDefault generated_cases.c.h:3519\n    #37 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #38 0x102b87545 in _PyFunction_Vectorcall call.c\n    #39 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #40 0x102b8d9af in method_vectorcall classobject.c:91\n    #41 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #42 0x102b86ebd in _PyObject_Call call.c:348\n    #43 0x102b8723c in PyObject_Call call.c:373\n    #44 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #45 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #46 0x102b87545 in _PyFunction_Vectorcall call.c\n    #47 0x102b84bd7 in _PyObject_VectorcallDictTstate call.c:135\n    #48 0x102b87bbe in _PyObject_Call_Prepend call.c:504\n    #49 0x102cd971b in slot_tp_call typeobject.c:8813\n    #50 0x102b85226 in _PyObject_MakeTpCall call.c:242\n    #51 0x102b8473d in _PyObject_VectorcallTstate pycore_call.h:184\n    #52 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #53 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #54 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #55 0x102b87545 in _PyFunction_Vectorcall call.c\n    #56 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #57 0x102b8d9af in method_vectorcall classobject.c:91\n    #58 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #59 0x102b86ebd in _PyObject_Call call.c:348\n    #60 0x102b8723c in PyObject_Call call.c:373\n    #61 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #62 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #63 0x102b87545 in _PyFunction_Vectorcall call.c\n    #64 0x102b84bd7 in _PyObject_VectorcallDictTstate call.c:135\n    #65 0x102b87bbe in _PyObject_Call_Prepend call.c:504\n    #66 0x102cd971b in slot_tp_call typeobject.c:8813\n    #67 0x102b85226 in _PyObject_MakeTpCall call.c:242\n    #68 0x102b8473d in _PyObject_VectorcallTstate pycore_call.h:184\n    #69 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #70 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #71 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #72 0x102b87545 in _PyFunction_Vectorcall call.c\n    #73 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #74 0x102b8d9af in method_vectorcall classobject.c:91\n    #75 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #76 0x102b86ebd in _PyObject_Call call.c:348\n    #77 0x102b8723c in PyObject_Call call.c:373\n    #78 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #79 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #80 0x102b87545 in _PyFunction_Vectorcall call.c\n    #81 0x102b84bd7 in _PyObject_VectorcallDictTstate call.c:135\n    #82 0x102b87bbe in _PyObject_Call_Prepend call.c:504\n    #83 0x102cd971b in slot_tp_call typeobject.c:8813\n    #84 0x102b85226 in _PyObject_MakeTpCall call.c:242\n    #85 0x102b8473d in _PyObject_VectorcallTstate pycore_call.h:184\n    #86 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #87 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #88 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #89 0x102b87545 in _PyFunction_Vectorcall call.c\n    #90 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #91 0x102b8d9af in method_vectorcall classobject.c:91\n    #92 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #93 0x102b86ebd in _PyObject_Call call.c:348\n    #94 0x102b8723c in PyObject_Call call.c:373\n    #95 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #96 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #97 0x102b87545 in _PyFunction_Vectorcall call.c\n    #98 0x102b84bd7 in _PyObject_VectorcallDictTstate call.c:135\n    #99 0x102b87bbe in _PyObject_Call_Prepend call.c:504\n    #100 0x102cd971b in slot_tp_call typeobject.c:8813\n    #101 0x102b85226 in _PyObject_MakeTpCall call.c:242\n    #102 0x102b8473d in _PyObject_VectorcallTstate pycore_call.h:184\n    #103 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #104 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #105 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #106 0x102b87545 in _PyFunction_Vectorcall call.c\n    #107 0x103199e70 in _PyObject_VectorcallTstate pycore_call.h:186\n    #108 0x10319ce35 in partial_vectorcall _functoolsmodule.c:230\n    #109 0x102b8468a in _PyObject_VectorcallTstate pycore_call.h:186\n    #110 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #111 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #112 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #113 0x102b87545 in _PyFunction_Vectorcall call.c\n    #114 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #115 0x102b8d8c3 in method_vectorcall classobject.c:61\n    #116 0x102b86b77 in _PyVectorcall_Call call.c:285\n    #117 0x102b86ebd in _PyObject_Call call.c:348\n    #118 0x102b8723c in PyObject_Call call.c:373\n    #119 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #120 0x102e64cc6 in PyEval_EvalCode ceval.c:557\n    #121 0x102e5b47d in builtin_exec bltinmodule.c.h:540\n    #122 0x102c770b2 in cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:441\n    #123 0x102b8468a in _PyObject_VectorcallTstate pycore_call.h:186\n    #124 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #125 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n    #126 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #127 0x102b87545 in _PyFunction_Vectorcall call.c\n    #128 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #129 0x102b86ebd in _PyObject_Call call.c:348\n    #130 0x102b8723c in PyObject_Call call.c:373\n    #131 0x10308900f in pymain_run_module main.c:300\n    #132 0x103086b09 in Py_RunMain main.c:688\n    #133 0x1030888b1 in pymain_main main.c:718\n    #134 0x103088bb0 in Py_BytesMain main.c:742\n    #135 0x1029c1918 in main python.c:15\n    #136 0x7ff80da2d41e in start+0x76e (dyld:x86_64+0xfffffffffff6e41e) (BuildId: 5db85b72c63a318291e55c942ec30e4832000000200000000100000000040d00)\n\n0x610000f109e8 is located 168 bytes inside of 184-byte region [0x610000f10940,0x610000f109f8)\nfreed by thread T0 here:\n    #0 0x10444cee9 in wrap_free+0xa9 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x48ee9) (BuildId: 756bb7515781379f84412f22c4274ffd2400000010000000000a0a0000030d00)\n    #1 0x102c8ca5b in _PyMem_RawFree obmalloc.c:74\n    #2 0x102c90ee5 in _PyMem_DebugFree obmalloc.c:2297\n    #3 0x102c8fb42 in PyObject_Free obmalloc.c:831\n    #4 0x10308eccd in PyObject_GC_Del gcmodule.c:2415\n    #5 0x102bf8228 in func_dealloc funcobject.c:934\n    #6 0x102c8c164 in _Py_Dealloc object.c:2656\n    #7 0x102c0628b in list_dealloc listobject.c:357\n    #8 0x102c8c164 in _Py_Dealloc object.c:2656\n    #9 0x102f594a8 in _PyFrame_ClearExceptCode frame.c:140\n    #10 0x102eb2819 in clear_thread_frame ceval.c:1486\n    #11 0x102eac816 in _PyEval_FrameClearAndPop ceval.c:1513\n    #12 0x102e95dab in _PyEval_EvalFrameDefault generated_cases.c.h:1064\n    #13 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #14 0x102b87545 in _PyFunction_Vectorcall call.c\n    #15 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #16 0x102b8d9af in method_vectorcall classobject.c:91\n    #17 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #18 0x102b86ebd in _PyObject_Call call.c:348\n    #19 0x102b8723c in PyObject_Call call.c:373\n    #20 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #21 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #22 0x102b87545 in _PyFunction_Vectorcall call.c\n    #23 0x102b84bd7 in _PyObject_VectorcallDictTstate call.c:135\n    #24 0x102b87bbe in _PyObject_Call_Prepend call.c:504\n    #25 0x102cd971b in slot_tp_call typeobject.c:8813\n    #26 0x102b85226 in _PyObject_MakeTpCall call.c:242\n    #27 0x102b8473d in _PyObject_VectorcallTstate pycore_call.h:184\n    #28 0x102b86d4f in PyObject_Vectorcall call.c:327\n    #29 0x102e78d52 in _PyEval_EvalFrameDefault generated_cases.c.h:3759\n\npreviously allocated by thread T0 here:\n    #0 0x10444cda0 in wrap_malloc+0xa0 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x48da0) (BuildId: 756bb7515781379f84412f22c4274ffd2400000010000000000a0a0000030d00)\n    #1 0x102c8c9f4 in _PyMem_RawMalloc obmalloc.c:46\n    #2 0x102c90a21 in _PyMem_DebugMalloc obmalloc.c:2282\n    #3 0x102c8f9a7 in PyObject_Malloc obmalloc.c:802\n    #4 0x10308e2a2 in _PyObject_GC_New gcmodule.c:2337\n    #5 0x102bf5d2c in PyFunction_NewWithQualName funcobject.c:188\n    #6 0x102bf6aba in PyFunction_New funcobject.c:312\n    #7 0x102e71421 in _PyEval_EvalFrameDefault generated_cases.c.h:4621\n    #8 0x102e64cc6 in PyEval_EvalCode ceval.c:557\n    #9 0x1030261e8 in run_eval_code_obj pythonrun.c:1725\n    #10 0x103021d94 in run_mod pythonrun.c:1746\n    #11 0x10301f75f in PyRun_StringFlags pythonrun.c:1621\n    #12 0x102e5a6a1 in builtin_eval bltinmodule.c.h:456\n    #13 0x102f3995f in _PyUopExecute executor_cases.c.h:2417\n    #14 0x102e97857 in _PyEval_EvalFrameDefault generated_cases.c.h:2982\n    #15 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #16 0x102b87545 in _PyFunction_Vectorcall call.c\n    #17 0x102b8faf0 in _PyObject_VectorcallTstate pycore_call.h:186\n    #18 0x102b8d9af in method_vectorcall classobject.c:91\n    #19 0x102b86bb1 in _PyVectorcall_Call call.c:273\n    #20 0x102b86ebd in _PyObject_Call call.c:348\n    #21 0x102b8723c in PyObject_Call call.c:373\n    #22 0x102e846a4 in _PyEval_EvalFrameDefault generated_cases.c.h:4601\n    #23 0x102e6511f in _PyEval_Vector ceval.c:1622\n    #24 0x102b87545 in _PyFunction_Vectorcall call.c\n    #25 0x102b84bd7 in _PyObject_VectorcallDictTstate call.c:135\n    #26 0x102b87bbe in _PyObject_Call_Prepend call.c:504\n    #27 0x102cd971b in slot_tp_call typeobject.c:8813\n    #28 0x102b85226 in _PyObject_MakeTpCall call.c:242\n    #29 0x102b8473d in _PyObject_VectorcallTstate pycore_call.h:184\n\nSUMMARY: AddressSanitizer: heap-use-after-free funcobject.c:285 in _PyFunction_LookupByVersion\nShadow bytes around the buggy address:\n  0x1c20001e20e0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\n  0x1c20001e20f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa\n  0x1c20001e2100: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\n  0x1c20001e2110: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa\n  0x1c20001e2120: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\n=\u003e0x1c20001e2130: fd fd fd fd fd fd fd fd fd fd fd fd fd[fd]fd fa\n  0x1c20001e2140: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\n  0x1c20001e2150: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa\n  0x1c20001e2160: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\n  0x1c20001e2170: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd\n  0x1c20001e2180: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd\nShadow byte legend (one shadow byte represents 8 application bytes):\n  Addressable:           00\n  Partially addressable: 01 02 03 04 05 06 07 \n  Heap left redzone:       fa\n  Freed heap region:       fd\n  Stack left redzone:      f1\n  Stack mid redzone:       f2\n  Stack right redzone:     f3\n  Stack after return:      f5\n  Stack use after scope:   f8\n  Global redzone:          f9\n  Global init order:       f6\n  Poisoned by user:        f7\n  Container overflow:      fc\n  Array cookie:            ac\n  Intra object redzone:    bb\n  ASan internal:           fe\n  Left alloca redzone:     ca\n  Right alloca redzone:    cb\n==48442==ABORTING\nFatal Python error: Aborted\n\nCurrent thread 0x00007ff851463640 (most recent call first):\n  File \"/Users/guido/cpython/Lib/traceback.py\", line 357 in _walk_tb_with_full_positions\n  File \"/Users/guido/cpython/Lib/traceback.py\", line 421 in _extract_from_extended_frame_gen\n  File \"/Users/guido/cpython/Lib/traceback.py\", line 697 in __init__\n  File \"/Users/guido/cpython/Lib/traceback.py\", line 139 in format_exception\n  File \"/Users/guido/cpython/Lib/test/support/testresult.py\", line 96 in __makeErrorDict\n  File \"/Users/guido/cpython/Lib/test/support/testresult.py\", line 113 in addFailure\n  File \"/Users/guido/cpython/Lib/unittest/case.py\", line 98 in _addError\n  File \"/Users/guido/cpython/Lib/unittest/case.py\", line 75 in testPartExecutor\n  File \"/Users/guido/cpython/Lib/contextlib.py\", line 159 in __exit__\n  File \"/Users/guido/cpython/Lib/unittest/case.py\", line 633 in run\n  File \"/Users/guido/cpython/Lib/unittest/case.py\", line 690 in __call__\n  File \"/Users/guido/cpython/Lib/unittest/suite.py\", line 122 in run\n  File \"/Users/guido/cpython/Lib/unittest/suite.py\", line 84 in __call__\n  File \"/Users/guido/cpython/Lib/unittest/suite.py\", line 122 in run\n  File \"/Users/guido/cpython/Lib/unittest/suite.py\", line 84 in __call__\n  File \"/Users/guido/cpython/Lib/unittest/suite.py\", line 122 in run\n  File \"/Users/guido/cpython/Lib/unittest/suite.py\", line 84 in __call__\n  File \"/Users/guido/cpython/Lib/test/support/testresult.py\", line 143 in run\n  File \"/Users/guido/cpython/Lib/test/support/__init__.py\", line 1116 in _run_suite\n  File \"/Users/guido/cpython/Lib/test/support/__init__.py\", line 1242 in run_unittest\n  File \"/Users/guido/cpython/Lib/test/libregrtest/runtest.py\", line 294 in _test_module\n  File \"/Users/guido/cpython/Lib/test/libregrtest/runtest.py\", line 330 in _runtest_inner2\n  File \"/Users/guido/cpython/Lib/test/libregrtest/runtest.py\", line 373 in _runtest_inner\n  File \"/Users/guido/cpython/Lib/test/libregrtest/runtest.py\", line 248 in _runtest\n  File \"/Users/guido/cpython/Lib/test/libregrtest/runtest.py\", line 278 in runtest\n  File \"/Users/guido/cpython/Lib/test/libregrtest/main.py\", line 483 in run_tests_sequential\n  File \"/Users/guido/cpython/Lib/test/libregrtest/main.py\", line 621 in run_tests\n  File \"/Users/guido/cpython/Lib/test/libregrtest/main.py\", line 799 in _main\n  File \"/Users/guido/cpython/Lib/test/libregrtest/main.py\", line 758 in main\n  File \"/Users/guido/cpython/Lib/test/libregrtest/main.py\", line 822 in main\n  File \"/Users/guido/cpython/Lib/test/__main__.py\", line 2 in \u003cmodule\u003e\n  File \"/Users/guido/cpython/Lib/runpy.py\", line 88 in _run_code\n  File \"/Users/guido/cpython/Lib/runpy.py\", line 198 in _run_module_as_main\n\nExtension modules: _testcapi, _testinternalcapi (total: 2)\nAbort trap: 6\n```\n\u003c/details\u003e\n\n\n### Error messages\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-108296\n* gh-108383\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2023-08-22T00:27:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/108253/cpython/issues/108253"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1fe87ba4-d739-46b1-ec6a-72317826dd9b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC16:2839F:A1B322:D7F116:69699214
html-safe-nonce84b96dba157da079f65bd31eb1078778017f9a7d121ce5dac9c2921cd6cdd13e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzE2OjI4MzlGOkExQjMyMjpEN0YxMTY6Njk2OTkyMTQiLCJ2aXNpdG9yX2lkIjoiNDM0MjIyNTkxMjU4NDk3NTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9915211784103e9c41be11429d21b459fe43d04bb58a258c891b2a8db411f466
hovercard-subject-tagissue:1860355520
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/108253/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c0ffa8c046dc030d8b1cbb71e9057131003fb94197cd64545bb2428ee5e581be/python/cpython/issues/108253
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c0ffa8c046dc030d8b1cbb71e9057131003fb94197cd64545bb2428ee5e581be/python/cpython/issues/108253
og:image:altCrash report CPython versions tested on: CPython main branch Operating systems tested on: macOS Output from running 'python -VV' on the command line: Python 3.13.0a0 (heads/main:531930f47f, Aug 21 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvanrossum
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/108253#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F108253
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%2F108253
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/108253
Reloadhttps://github.com/python/cpython/issues/108253
Reloadhttps://github.com/python/cpython/issues/108253
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/108253
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/108253
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/108253
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/108253
#108296https://github.com/python/cpython/pull/108296
heap-use-after-free in _PyFunction_LookupByVersionhttps://github.com/python/cpython/issues/108253#top
#108296https://github.com/python/cpython/pull/108296
3.13bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%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/gvanrossum
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Aug 22, 2023https://github.com/python/cpython/issues/108253#issue-1860355520
#1https://github.com/python/cpython/pull/1
#2https://github.com/python/cpython/pull/2
#3https://github.com/python/cpython/pull/3
#4https://github.com/python/cpython/pull/4
#5https://github.com/python/cpython/pull/5
#6https://github.com/python/cpython/pull/6
#7https://github.com/python/cpython/pull/7
#8https://github.com/python/cpython/pull/8
#9https://github.com/python/cpython/pull/9
#10https://github.com/python/cpython/pull/10
#11https://github.com/python/cpython/pull/11
#12https://github.com/python/cpython/pull/12
#13https://github.com/python/cpython/pull/13
#14https://github.com/python/cpython/pull/14
#15https://github.com/python/cpython/pull/15
#16https://github.com/python/cpython/pull/16
#17https://github.com/python/cpython/pull/17
#18https://github.com/python/cpython/pull/18
#19https://github.com/python/cpython/pull/19
#20https://github.com/python/cpython/pull/20
#21https://github.com/python/cpython/pull/21
#22https://github.com/python/cpython/pull/22
#23https://github.com/python/cpython/pull/23
#24https://github.com/python/cpython/pull/24
#25https://github.com/python/cpython/pull/25
#26https://github.com/python/cpython/pull/26
#27https://github.com/python/cpython/pull/27
#28https://github.com/python/cpython/pull/28
#29https://github.com/python/cpython/pull/29
#30https://github.com/python/cpython/pull/30
#31https://github.com/python/cpython/pull/31
#32https://github.com/python/cpython/pull/32
#33https://github.com/python/cpython/pull/33
#34https://github.com/python/cpython/pull/34
#35https://github.com/python/cpython/pull/35
#36https://github.com/python/cpython/pull/36
#37https://github.com/python/cpython/pull/37
#38https://github.com/python/cpython/pull/38
#39https://github.com/python/cpython/pull/39
#40https://github.com/python/cpython/pull/40
#41https://github.com/python/cpython/pull/41
#42https://github.com/python/cpython/pull/42
#43https://github.com/python/cpython/pull/43
#44https://github.com/python/cpython/pull/44
#45https://github.com/python/cpython/pull/45
#46https://github.com/python/cpython/pull/46
#47https://github.com/python/cpython/pull/47
#48https://github.com/python/cpython/pull/48
#49https://github.com/python/cpython/pull/49
#50https://github.com/python/cpython/pull/50
#51https://github.com/python/cpython/pull/51
#52https://github.com/python/cpython/pull/52
#53https://github.com/python/cpython/pull/53
#54https://github.com/python/cpython/pull/54
#55https://github.com/python/cpython/pull/55
#56https://github.com/python/cpython/pull/56
#57https://github.com/python/cpython/pull/57
#58https://github.com/python/cpython/pull/58
#59https://github.com/python/cpython/pull/59
#60https://github.com/python/cpython/pull/60
#61https://github.com/python/cpython/pull/61
#62https://github.com/python/cpython/pull/62
#63https://github.com/python/cpython/pull/63
#64https://github.com/python/cpython/pull/64
#65https://github.com/python/cpython/pull/65
#66https://github.com/python/cpython/pull/66
#67https://github.com/python/cpython/pull/67
#68https://github.com/python/cpython/pull/68
#69https://github.com/python/cpython/pull/69
#70https://github.com/python/cpython/pull/70
#71https://github.com/python/cpython/pull/71
#72https://github.com/python/cpython/pull/72
#73https://github.com/python/cpython/pull/73
#74https://github.com/python/cpython/pull/74
#75https://github.com/python/cpython/pull/75
#76https://github.com/python/cpython/pull/76
#77https://github.com/python/cpython/pull/77
#78https://github.com/python/cpython/pull/78
#79https://github.com/python/cpython/pull/79
#80https://github.com/python/cpython/pull/80
#81https://github.com/python/cpython/pull/81
#82https://github.com/python/cpython/pull/82
#83https://github.com/python/cpython/pull/83
#84https://github.com/python/cpython/pull/84
#85https://github.com/python/cpython/pull/85
#86https://github.com/python/cpython/pull/86
#87https://github.com/python/cpython/pull/87
#88https://github.com/python/cpython/pull/88
#89https://github.com/python/cpython/pull/89
#90https://github.com/python/cpython/pull/90
#91https://github.com/python/cpython/pull/91
#92https://github.com/python/cpython/pull/92
#93https://github.com/python/cpython/pull/93
#94https://github.com/python/cpython/pull/94
#95https://github.com/python/cpython/pull/95
#96https://github.com/python/cpython/pull/96
#97https://github.com/python/cpython/pull/97
#98https://github.com/python/cpython/pull/98
#99https://github.com/python/cpython/pull/99
#100https://github.com/python/cpython/pull/100
#101https://github.com/python/cpython/pull/101
#102https://github.com/python/cpython/pull/102
#103https://github.com/python/cpython/pull/103
#104https://github.com/python/cpython/pull/104
#105https://github.com/python/cpython/pull/105
#106https://github.com/python/cpython/pull/106
#107https://github.com/python/cpython/pull/107
#108https://github.com/python/cpython/pull/108
#109https://github.com/python/cpython/pull/109
#110https://github.com/python/cpython/pull/110
#111https://github.com/python/cpython/pull/111
#112https://github.com/python/cpython/pull/112
#113https://github.com/python/cpython/pull/113
#114https://github.com/python/cpython/pull/114
#115https://github.com/python/cpython/pull/115
#116https://github.com/python/cpython/pull/116
#117https://github.com/python/cpython/pull/117
#118https://github.com/python/cpython/pull/118
#119https://github.com/python/cpython/pull/119
#120https://github.com/python/cpython/pull/120
#121https://github.com/python/cpython/pull/121
#122https://github.com/python/cpython/pull/122
#123https://github.com/python/cpython/pull/123
#124https://github.com/python/cpython/pull/124
#125https://github.com/python/cpython/pull/125
#126https://github.com/python/cpython/pull/126
#127https://github.com/python/cpython/pull/127
#128https://github.com/python/cpython/pull/128
#129https://github.com/python/cpython/pull/129
#130https://github.com/python/cpython/pull/130
#131https://github.com/python/cpython/pull/131
#132https://github.com/python/cpython/pull/132
#133https://github.com/python/cpython/pull/133
#134https://github.com/python/cpython/pull/134
#135https://github.com/python/cpython/pull/135
#136https://github.com/python/cpython/pull/136
#1https://github.com/python/cpython/pull/1
#2https://github.com/python/cpython/pull/2
#3https://github.com/python/cpython/pull/3
#4https://github.com/python/cpython/pull/4
#5https://github.com/python/cpython/pull/5
#6https://github.com/python/cpython/pull/6
#7https://github.com/python/cpython/pull/7
#8https://github.com/python/cpython/pull/8
#9https://github.com/python/cpython/pull/9
#10https://github.com/python/cpython/pull/10
#11https://github.com/python/cpython/pull/11
#12https://github.com/python/cpython/pull/12
#13https://github.com/python/cpython/pull/13
#14https://github.com/python/cpython/pull/14
#15https://github.com/python/cpython/pull/15
#16https://github.com/python/cpython/pull/16
#17https://github.com/python/cpython/pull/17
#18https://github.com/python/cpython/pull/18
#19https://github.com/python/cpython/pull/19
#20https://github.com/python/cpython/pull/20
#21https://github.com/python/cpython/pull/21
#22https://github.com/python/cpython/pull/22
#23https://github.com/python/cpython/pull/23
#24https://github.com/python/cpython/pull/24
#25https://github.com/python/cpython/pull/25
#26https://github.com/python/cpython/pull/26
#27https://github.com/python/cpython/pull/27
#28https://github.com/python/cpython/pull/28
#29https://github.com/python/cpython/pull/29
#1https://github.com/python/cpython/pull/1
#2https://github.com/python/cpython/pull/2
#3https://github.com/python/cpython/pull/3
#4https://github.com/python/cpython/pull/4
#5https://github.com/python/cpython/pull/5
#6https://github.com/python/cpython/pull/6
#7https://github.com/python/cpython/pull/7
#8https://github.com/python/cpython/pull/8
#9https://github.com/python/cpython/pull/9
#10https://github.com/python/cpython/pull/10
#11https://github.com/python/cpython/pull/11
#12https://github.com/python/cpython/pull/12
#13https://github.com/python/cpython/pull/13
#14https://github.com/python/cpython/pull/14
#15https://github.com/python/cpython/pull/15
#16https://github.com/python/cpython/pull/16
#17https://github.com/python/cpython/pull/17
#18https://github.com/python/cpython/pull/18
#19https://github.com/python/cpython/pull/19
#20https://github.com/python/cpython/pull/20
#21https://github.com/python/cpython/pull/21
#22https://github.com/python/cpython/pull/22
#23https://github.com/python/cpython/pull/23
#24https://github.com/python/cpython/pull/24
#25https://github.com/python/cpython/pull/25
#26https://github.com/python/cpython/pull/26
#27https://github.com/python/cpython/pull/27
#28https://github.com/python/cpython/pull/28
#29https://github.com/python/cpython/pull/29
3.13bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%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.