You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A 24 KB string literal overflows the stack in both emitters, while the check and the interpreter pass #1127
python3 gen.py > big.bend # a 24 KB string literal
bend big.bend # prints 24000
bend big.bend -o big.c
bend big.bend -o big.js
What happened
Error: the machine stack overflowed (a deep recursion, or a literal too large to expand)
Both emitters overflow; the check and the interpreter pass. WONTFIX (#993) covers the checker's recursion, but here the checker is fine and only emission fails. A string literal expands to one nested SCon chain, so its depth is its length; the fuzzer met this building its own Base table as one literal and splits it into a list of line literals instead.
changed the title [-]`Array.set(..);` in an inline match arm is read as the write statement and swallows the next row[/-][+]A 24 KB string literal overflows the stack in both emitters, while the check and the interpreter pass[/+]on Sep 27, 2026
Closing under WONTFIX: "The checker is not optimal: some terms are exponential or overflow (#993)". The emitters recurse on the machine stack the same way, so a literal this large is the same class.
Activity
[-]`Array.set(..);` in an inline match arm is read as the write statement and swallows the next row[/-][+]A 24 KB string literal overflows the stack in both emitters, while the check and the interpreter pass[/+]nicolas-abril commentedon Sep 27, 2026
Closing under WONTFIX: "The checker is not optimal: some terms are exponential or overflow (#993)". The emitters recurse on the machine stack the same way, so a literal this large is the same class.