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
cmd/compile: missing stackmap internal compiler error #22200
Comments
Please do give us the source code we need to replicate this ourselves. Thanks. |
https://ptpb.pw/lVYL |
Thanks. Your test case does not build for me.
I tried running
For this kind of error I doubt it is necessary to include all the dependencies. Can you give us a standalone test case? If that is too hard, we do at least need a test case that we can build ourselves. Thanks. |
Oh, sorry. Its set up for my personal folder setup (I have it put in github.com/moonheart08/starlight, its not on github yet) |
This should compile with no dependencies. Also a uncompressed tar file: |
Thanks. Here is a smaller test case.
|
This is just a problem with an ICE when the original program is bad. |
Just to ask, how would it be recommended to fix the code's stack frame? I kinda need that recursion. (64x64 map of 16x 16y 255z chunks getting a heightmap generated) |
@moonheart08 An important tip is that |
@ianlancetaylor Thanks. Thats a little tidbit I didnt know. I always assumed the results of the range (the key and value) were copies. |
Change https://golang.org/cl/69810 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Go 1.9
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?Arch Linux amd64
What did you do?
It crashed when i added the following to the SRC:
chunk.Voxels[cx][cy][cz] = new(core.HMVoxel)
I cant provide a recipe, but i can make a ZIP of the effected code when i get home.
What did you expect to see?
A successful compilation and/or a compile error
What did you see instead?
An internal compiler error:
# github.com/moonheart08/starlight/worldgen
./algorithms.go:46:2: internal compiler error: missing stack map index for v14 = CALLstatic
<mem> {runtime.newobject} [16] v13
goroutine 1 [running]:
runtime/debug.Stack(0x0, 0x0, 0x0)
/usr/lib/go/src/runtime/debug/stack.go:24 +0xa7
cmd/compile/internal/gc.Fatalf(0xb66f0a, 0x1e, 0xc420471108, 0x1, 0x1)
/usr/lib/go/src/cmd/compile/internal/gc/subr.go:181 +0x230
cmd/compile/internal/gc.(*SSAGenState).Call(0xc42036ea20, 0xc420390620,
0xc4200c6678)
/usr/lib/go/src/cmd/compile/internal/gc/ssa.go:4780 +0x364
cmd/compile/internal/amd64.ssaGenValue(0xc42036ea20, 0xc420390620)
/usr/lib/go/src/cmd/compile/internal/amd64/ssa.go:757 +0x38db
cmd/compile/internal/gc.genssa(0xc42000e3c0, 0xc4203585f0)
/usr/lib/go/src/cmd/compile/internal/gc/ssa.go:4448 +0x2bd
cmd/compile/internal/gc.compileSSA(0xc420374160, 0x0)
/usr/lib/go/src/cmd/compile/internal/gc/pgen.go:242 +0x7e
cmd/compile/internal/gc.compile(0xc420374160)
/usr/lib/go/src/cmd/compile/internal/gc/pgen.go:219 +0x218
cmd/compile/internal/gc.funccompile(0xc420374160)
/usr/lib/go/src/cmd/compile/internal/gc/dcl.go:1049 +0xb7
cmd/compile/internal/gc.Main(0xb73f90)
/usr/lib/go/src/cmd/compile/internal/gc/main.go:585 +0x29d2
main.main()
/usr/lib/go/src/cmd/compile/main.go:49 +0x95
The text was updated successfully, but these errors were encountered: