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
There are hard-coded limits in yacc that remain from when it was a C program. This should be fixed, but not for 1.7 (and see also #11229). For 1.7 I'll send a CL for an error rather than a panic.
ianlancetaylor
changed the title
cmd/yacc: panic: runtime error: index out of range
cmd/yacc: remove hardcoded limits TEMPSIZE and NSTATES
Jun 22, 2016
I tried simply increasing the size of the slice but then I got an error
because NSTATES was too small. Leaving a real fix for after 1.7.
Update golang#16144.
Change-Id: I8676772cb79845dd4ca1619977d4d54a2ce6de59
Reviewed-on: https://go-review.googlesource.com/24321
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
1.5 & 1.7rc2 on amd64 mac
go get github.com/snadrus/sqlin
cd $GOPATH/github.com/snadrus/sqlin/src/parse
go tool yacc -o parser.go -p parse parser.y
sql2003 spec becoming parser.go, or an actionable error.
In Go 1.7rc2:
panic: runtime error: index out of range
goroutine 1 [running]:
panic(0x1124a0, 0xc42000e150)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
main.aryfil(0xc4200a6000, 0x7d0, 0x7d0, 0x883, 0x0)
/usr/local/go/src/cmd/yacc/yacc.go:1522 +0x41
main.stagen()
/usr/local/go/src/cmd/yacc/yacc.go:1781 +0x3f3
main.main()
/usr/local/go/src/cmd/yacc/yacc.go:359 +0x5d
The text was updated successfully, but these errors were encountered: