I changed the Limbo one to pass the initial stack size through (the value
of YYMAXDEPTH, default 200) but the parser grows the stack if it needs to.
I don't remember anything noticing.

On Wed, 6 Aug 2025 at 15:35, Anthony Sorace <[email protected]> wrote:

> I've just run into awk code where yacc's default YYMAXDEPTH of 150 causes
> stack exhaustion; increasing it lets the code work fine. It's been 150
> since at least v7 Unix (I didn't have earlier on hand to check), and our
> systems are a little bigger now; it seems safe to bump up quite a bit.
> 
> Is anyone aware of yacc-generated code which uses this value as a check,
> rather than just being the more obvious guard against using too much system
> resources?
> 

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td74874a3700432ac-M5138ee43829825c59352b4cb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to