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: panic during import method expression #48088
Comments
Would you mind making a minimal reproducer? It's hard to investigate further without more information about the code. |
Here you go: https://github.com/lmb/issue-48088-repro |
Thanks, I can reproduce now. |
Seems we also need to backport this, cc @mdempsky |
Failure started at 6d8ba77. |
Change https://golang.org/cl/346489 mentions this issue: |
@gopherbot please open a backport to go1.17 |
Backport issue(s) opened: #48102 (for 1.17). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compiling our internal codebase with go 1.17 aborts with a panic. Based on the stack trace the problem seems to originate in escape analysis.
I can't share the full source, but this is the bit that escape analysis was working on as it crashed:
env
is simply atype struct
containing somestring
, interfaces and function pointers.The text was updated successfully, but these errors were encountered: