Skip to content
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: internal compiler error: large ONEW with EscNone: new() #15733

Closed
ianlancetaylor opened this issue May 18, 2016 · 1 comment
Closed
Milestone

Comments

@ianlancetaylor
Copy link
Contributor

go version devel +466cae6 Mon May 16 20:16:50 2016 +0000 linux/amd64

https://play.golang.org/p/1apk9BeFeU

go build foo.go
# command-line-arguments
foo.go:10: internal compiler error: large ONEW with EscNone: new()

goroutine 1 [running]:
runtime/debug.Stack(0x0, 0x0, 0x0)
    /home/iant/go/src/runtime/debug/stack.go:24 +0x6f
cmd/compile/internal/gc.Fatalf(0x8c262a, 0x1b, 0xc42042e3c0, 0x1, 0x1)
    /home/iant/go/src/cmd/compile/internal/gc/subr.go:158 +0x236
cmd/compile/internal/gc.walkexpr(0xc420421c20, 0xc42042f710, 0x0)
    /home/iant/go/src/cmd/compile/internal/gc/walk.go:1275 +0xa632
cmd/compile/internal/gc.anylit(0x0, 0xc420421320, 0xc420421b90, 0xc42042f710)
    /home/iant/go/src/cmd/compile/internal/gc/sinit.go:1054 +0xae0
cmd/compile/internal/gc.walkexpr(0xc420421320, 0xc42042f710, 0xc420420e00)
    /home/iant/go/src/cmd/compile/internal/gc/walk.go:1553 +0x5d10
cmd/compile/internal/gc.walkexpr(0xc420421290, 0xc42042f710, 0x0)
    /home/iant/go/src/cmd/compile/internal/gc/walk.go:716 +0x1225
cmd/compile/internal/gc.walkstmt(0xc420421290, 0xc420421440)
    /home/iant/go/src/cmd/compile/internal/gc/walk.go:193 +0xe69
cmd/compile/internal/gc.walkstmtlist(0xc42041c3e0, 0x3, 0x4)
    /home/iant/go/src/cmd/compile/internal/gc/walk.go:81 +0x43
cmd/compile/internal/gc.walk(0xc420420a20)
    /home/iant/go/src/cmd/compile/internal/gc/walk.go:66 +0x1c7
cmd/compile/internal/gc.compile(0xc420420a20)
    /home/iant/go/src/cmd/compile/internal/gc/pgen.go:391 +0x1c4
cmd/compile/internal/gc.funccompile(0xc420420a20)
    /home/iant/go/src/cmd/compile/internal/gc/dcl.go:1278 +0x178
cmd/compile/internal/gc.Main()
    /home/iant/go/src/cmd/compile/internal/gc/main.go:465 +0x199f
cmd/compile/internal/amd64.Main()
    /home/iant/go/src/cmd/compile/internal/amd64/galign.go:96 +0x381
main.main()
    /home/iant/go/src/cmd/compile/main.go:33 +0x286

Also fails with Go 1.5 and Go 1.6. Works with Go 1.4.

CC @dr2chase @randall77

@ianlancetaylor ianlancetaylor added this to the Go1.8 milestone May 18, 2016
@gopherbot
Copy link

CL https://golang.org/cl/23223 mentions this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants