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: esc oas2func #15013

Closed
AlekSi opened this issue Mar 29, 2016 · 2 comments
Closed

cmd/compile: internal compiler error: esc oas2func #15013

AlekSi opened this issue Mar 29, 2016 · 2 comments
Milestone

Comments

@AlekSi
Copy link
Contributor

AlekSi commented Mar 29, 2016

  1. What version of Go are you using (go version)?
  2. What operating system and processor architecture are you using (go env)?
    Tip (or is it HEAD these days? :) ). go version level +d733cef Tue Mar 29 11:19:31 2016 +0000 darwin/amd64.
    Linux build has this problem too.
  3. What did you do?
    go get -u -v github.com/yuin/gopher-lua/pm
  4. What did you expect to see?
    gopher-lua is installed. It works with 1.5.3 and 1.6.
  5. What did you see instead?
…/GOPATH/src/github.com/yuin/gopher-lua/pm/pm.go:546: internal compiler error: esc oas2func

Here is the code: https://github.com/yuin/gopher-lua/blob/e5faab4db06a81efb60d8e16c1d205e1d93736a9/pm/pm.go#L546

@AlekSi
Copy link
Contributor Author

AlekSi commented Mar 29, 2016

Bisected to 7e88826 by @ianlancetaylor

AlekSi referenced this issue Mar 29, 2016
I want to get rid of OTFUNC, which serves no useful purpose.  However,
it turns out that the escape analysis pass looks at the node slices set
up for OTFUNC, even though by the time escape analysis runs the OTFUNC
has been converted to OTYPE.  This CL converts the escape analysis code
to look at the function decls instead, and clears the OTFUNC info when
converting to OTYPE to ensure that nothing else looks at it.

Change-Id: I3f2f5997ea8ea7a127a858e94b20aabfab84a5bf
Reviewed-on: https://go-review.googlesource.com/21202
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@ianlancetaylor ianlancetaylor added this to the Go1.7 milestone Mar 29, 2016
@ianlancetaylor ianlancetaylor self-assigned this Mar 29, 2016
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Mar 30, 2017
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