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 — Parser stack overflow: deeply-nested source causes SIGSEGV instead of SyntaxError · Issue #7655 · RustPython/RustPython Closed DescriptionSummaryParsing deeply-nested Python source (brackets, parens, etc.) crashes the interpreter with SIGSEGV at ~4000 levels of nesting. CPython caps this at 200 via The crash is in the parser itself ( This is the parser-layer root cause of the class of bugs tracked in #2796. #4857 also still reproduces on current main (closed as fixed in 2023). ExpectedMatches CPython 3.13.4 behavior: (CPython's parser rejects at depth 201 via a hard-coded limit, well before the native stack is exhausted.) ActualThreshold
Identical thresholds confirm the crash is in the parser, not in post-parse conversion. Relation to prior fixes
Both fixes live downstream of the parser. The parser's own recursive descent has no depth guard, so any Python source deeply nested in brackets, parens, unary ops, or binary ops reaches the native stack limit first. Environment
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||
| You are visitor 01402503 — 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. |