Might be worth finding out exactly what is on the stack and what rules are being parsed when the stack overflows. Run yacc with -D1 or -D2 or something.
> On Aug 6, 2025, at 7:31 AM, 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-M73374e6d8c010ce750f3bcc6 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
