Skip to content

compile/internal/pgo: show informative error message for missing Function.start_line #57674

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

Closed
lizthegrey opened this issue Jan 8, 2023 · 2 comments
Assignees
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@lizthegrey
Copy link

lizthegrey commented Jan 8, 2023

What version of Go are you using (go version)?

$ go version
go version go1.20rc2 linux/amd64

Does this issue reproduce with the latest release?

Yes.

What did you do?

Pass a default.pgo merged profile that contained some pprof data from 1.19 rather than 1.20rcX.

What did you expect to see?

An informative error message telling me that the profile passed in needed to be entirely from 1.20rcX or newer, specifically containing the patch that enabled start_line passing

What did you see instead?

# vendor/golang.org/x/crypto/cryptobyte/asn1
compile: PGO profile missing Function.start_line data
# sync/atomic
compile: PGO profile missing Function.start_line data
...
@prattmic prattmic self-assigned this Jan 8, 2023
@prattmic prattmic added the NeedsFix The path to resolution is known, but the work has not been done. label Jan 8, 2023
@prattmic
Copy link
Member

prattmic commented Jan 8, 2023

Thanks, this should indeed be more informative.

@prattmic prattmic added this to the Go1.20 milestone Jan 8, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/461195 mentions this issue: cmd/compile/internal/pgo: add hint to missing start_line error

@golang golang locked and limited conversation to collaborators Jan 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants