-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: go:linkname causes "internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference" #59621
Comments
@golang/compiler |
The tip playground shows the actual stack trace:
Looks like a panic trying to print a build error at https://cs.opensource.google/go/go/+/master:src/cmd/internal/obj/plist.go;l=172;drc=76ac54b50ea39bbb1389ecfed71f4f0991cb4289. I'd guess |
This is not a supported use of |
I think this warrants fixing. This use of linkname isn't supported, but it shouldn't crash the compiler. |
I agree it would be better that the compiler never crashed, but I also agree with @thanm that |
Change https://go.dev/cl/484759 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, i downloaded the latest release from https://go.dev/doc/install.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/P2iv3ERVhbb
What did you expect to see?
A regular compiler error, not internal panic.
What did you see instead?
The text was updated successfully, but these errors were encountered: