Skip to content

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

Closed

Description

@quitehimself

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

Activity

  1. ALTree commented on Oct 19, 2018

    @ALTree
    Member

    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.

  2. changed the title [-]Compiler crash when redefining "len"[/-] [+]cmd/compile: compiler crash when redefining "len"[/+] on Oct 19, 2018
  3. locked and limited conversation to collaborators on Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions