-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/yacc: generated code panics with index out of range. #7184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
This is not a bug per se, it's similar to a stack overflow with unbounded recursion. yacc has a limit on the stack size it uses. this panic is simply because the input is nested too deep. increase the variable stacksize in cmd/yacc/yacc.go is the only way if you want to solve this (or rewrite your grammar). we have several alternatives, for example: 1. allocate a larger stack when it's about to overflow. 2. make the stacksize configurable. 3. return syntax error when the stack overflows. Labels changed: added release-none, repo-main. |
Owner changed to @robpike. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by [email protected]:
The text was updated successfully, but these errors were encountered: