runtime: a program built with a too-high GOAMD64 value will dump core on startup #49586
Labels
FrozenDueToAge
okay-after-beta1
Used by release team to mark a release-blocker issue as okay to resolve either before or after beta1
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No, since Go 1.17 doesn't support GOAMD64.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
If I build a Go program (even the playground's "Hello world") with a value of GOAMD64 that's too high for the machine I'm trying to run the program on, the program will dump core on startup. This happens even for GOAMD64 values that work on the machine I build the program on, but not on a machine with an older CPU; I can compile with GOAMD64=v3 on one machine where it works, copy the binary to another, and it dumps core on startup instead of running. On the original test machine, GOAMD64=v4 produces a binary that doesn't even run on the machine itself.
Gdb says that this is happening in:
Delve agrees with this trace and shows the relevant runtime source as:
Delve further reports the crash (dis)assembly and fault address as:
The text was updated successfully, but these errors were encountered: