-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: panic: runtime error: invalid memory address or nil pointer dereference [1.18 backport] #54308
Comments
gopherbot is not yet sentient. |
Reportedly this affects Go 1.18.5 too. The fix is very non-invasive, so maybe we should still consider it for backporting to Go 1.18, if it's something that worked in earlier 1.18 point releases. |
I'm happy to backport as the CL is clearly safe. |
In Go 1.18.5, DynamicTypeAssertExpr still had just one T field. It wasn't split into the separate RType and ITab fields until 2a6e138 (which I can see added the issue), and was first released in Go 1.19. So I don't think there's anything to backport actually. I'm also not able to reproduce the minimized test case failure with Go 1.18. @borzovplus You said this issue is affecting you with Go 1.18.5? Can you please file a new issue with repro steps? Thanks. |
unfortunately, I didn't figure out how to lay out the playback steps correctly for the new issue, so I attach the archive of the test project where this problem is reproduced in 1.18.5 and also in 1.19 (it might be worth checking out your fix on this project) |
@borzovplus Thanks, I can reproduce the failure. It looks like a regression introduced in Go 1.18.4. I can also confirm it's unrelated to this issue. The back trace with -gcflags=-h is:
I'll file a new issue once I have a shorter repro. |
@mdempsky requested issue #54302 to be considered for backport to the next 1.18 minor release.
The text was updated successfully, but these errors were encountered: