You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because in go 1.5 the contentID did not exist, so the slash seperator is not present, causing issues. The buildid tool doesn't consider legacy buildID/actionID/contentID layouts.
What did you expect to see?
The buildID / contentID to be written
What did you see instead?
crash
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
affected/package: go tool buildid
cmd/buildid: crashes trying to write buildid in binary built by Go 1.5
Jan 25, 2022
Also fails with Go 1.6 through Go 1.9. Go 1.10 and later seem to work.
Those older versions of Go are not supported. If someone wants to contribute a fix that would be fine but I don't think we are going to actively work on this.
Change https://go.dev/cl/409535 mentions this issue: cmd/buildid: reject rewriting legacy buildids
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Jun 6, 2022
What version of Go are you using (
go version
)?1.17.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux
go env
OutputWhat did you do?
run
go tool buildid -w <filepath>
on a go 1.5 binary and the following error will occur:The line:
go/src/cmd/buildid/buildid.go
Line 56 in cfad1ff
This is because in go 1.5 the contentID did not exist, so the slash seperator is not present, causing issues. The buildid tool doesn't consider legacy buildID/actionID/contentID layouts.
What did you expect to see?
The buildID / contentID to be written
What did you see instead?
crash
The text was updated successfully, but these errors were encountered: