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: compiler crash when redefining "len" #28285

Closed
quitehimself opened this issue Oct 19, 2018 · 1 comment
Closed

cmd/compile: compiler crash when redefining "len" #28285

quitehimself opened this issue Oct 19, 2018 · 1 comment

Comments

@quitehimself
Copy link

Please answer these questions before submitting your issue. Thanks!

What did you do?

https://play.golang.org/p/ilGD2NT2dum

What did you expect to see?

A compiler error admonishing me not to redefine "len," or perhaps berating me for attempting to call an int as a function.

What did you see instead?

The compiler panicked due to a segfault.

Does this issue reproduce with the latest release (go1.11.1)?

Yes - the compiler in the Go Playground crashes, and that is running 1.11.1.

System details

(private information sanitized)

go version go1.11 windows/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="%LocalAppData%\go-build"
GOEXE=".exe"
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="windows"
GOOS="windows"
GOPATH="%USERPROFILE%\go"
GOPROXY=""
GORACE=""
GOROOT="C:\Go"
GOTMPDIR=""
GOTOOLDIR="C:\Go\pkg\tool\windows_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
GOROOT/bin/go version: go version go1.11 windows/amd64
GOROOT/bin/go tool compile -V: compile version go1.11
@ALTree
Copy link
Member

ALTree commented Oct 19, 2018

Thanks for the report.

This is fixed on tip (#27356) and it has already been selected for a 1.11 backport: #27399. It missed 1.11.1, but the fix will be in 1.11.2. Closing here, since there's nothing else left to do.

@ALTree ALTree closed this as completed Oct 19, 2018
@ALTree ALTree changed the title Compiler crash when redefining "len" cmd/compile: compiler crash when redefining "len" Oct 19, 2018
@golang golang locked and limited conversation to collaborators Oct 19, 2019
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