GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — _Py_make_parameters recurses without a guard: a self-referential/deeply-nested generic-alias arg crashes the interpreter · Issue #154275 · python/cpython Closed Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-typingtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump DescriptionCrash reportWhat happened?Computing Minimal reproducer: L = [] L.append(L) # L = [L], self-referential list[L].__parameters__ # SIGSEGV
A non-cyclic but deeply nested list crashes it too, which shows the path is simply unguarded rather than something cycle-specific: x = [0] for _ in range(500_000): x = [x] list[x].__parameters__ # SIGSEGV (C stack overflow) Backtrace (debug build); the interpreter dies in Analysis
if (!subparams && (PyTuple_Check(t) || PyList_Check(t))) { // Recursively call _Py_make_parameters for lists/tuples and // add the results to the current parameters. subparams = _Py_make_parameters(t); // Objects/genericaliasobject.c:231 ... } There is no Fix direction: wrap the recursive descent in Not free-threading- or JIT-specific: reproduces on GIL and free-threaded, release and debug builds. (Found via fuzzing with fusil; the same reproducer also crashes RustPython, whose CPython versions tested on:3.14, CPython main branch Operating systems tested on:Linux Output from running 'python -VV' on the command line:Python 3.16.0a0 (heads/main:a1d580430c8, Jul 18 2026, 20:16:15) [Clang 21.1.8 (6ubuntu1)] Linked PRs
Activity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-typingtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |