-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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/buildid: crashes trying to write buildid in binary built by Go 1.5 #50809
Labels
Milestone
Comments
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. |
ianlancetaylor
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Jan 25, 2022
Change https://go.dev/cl/409535 mentions this issue: |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
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: