Skip to content

semantic: cap expression nesting depth to avoid stack overflow#9865

Open
zacharyftw wants to merge 1 commit intostarkware-libs:mainfrom
zacharyftw:9800
Open

semantic: cap expression nesting depth to avoid stack overflow#9865
zacharyftw wants to merge 1 commit intostarkware-libs:mainfrom
zacharyftw:9800

Conversation

@zacharyftw
Copy link
Copy Markdown

Closes #9800.

Cap recursion depth in compute_expr_semantic at 256 and emit E2198 instead of aborting with a stack overflow. Verified on all 9 repros.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

@zacharyftw zacharyftw changed the base branch from main to cairo-major-update April 23, 2026 04:37
@zacharyftw zacharyftw changed the base branch from cairo-major-update to main April 23, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Compiler stack overflow crashes on 9 different expression patterns (~420-500 nodes)

2 participants