-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
runtime/pprof: change in behavior between Go 1.13 and 1.14 #36874
Comments
I think this issue shouldn't be reported to runtime/pprof. symbolize() is implemented by googleapis/google-cloud-go: https://github.com/googleapis/google-cloud-go/blob/master/profiler/symbolizer.go#L80. The failure is probably because the newer Go version starts symbolizing the mutex profile. googleapis/google-cloud-go should fix the issue. |
@jqll I suspect that's the case too, but I suggested to @tbpg that it's worth reporting here so that we can confirm that is indeed harmless, and not a real problem in 1.14 being surfaced. /cc @hyangah per owners. Do you think it's working as intended that the code in |
Failure of the test is expected since in 1.14, we fixed the inlinining PCs encoding in pprof protobuf generation. (https://go-review.googlesource.com/c/go/+/204636 etc) Go runtime symbolizes mutex profile and others since 1.10, so the extra symbolization step in the test can be skipped now. |
Change https://golang.org/cl/216877 mentions this issue: |
golang.org/cl/204636 golang.org/cl/205097 Updates #36874 Change-Id: I773868fd027e9cc2187f0a738900f0fcb7711635 Reviewed-on: https://go-review.googlesource.com/c/go/+/216877 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Thank you for the explanations and updating the release notes! Closing this. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
@eclipseo originally reported this at googleapis/google-cloud-go#1761. A test started failing for 1.14beta1 that wasn't failing for Go 1.13.
I copied the test case into a standalone test below. The
symbolize
call is what is causing problems:If you comment out/delete the call to
symbolize
, the test passes. golang.org/issue/21474 is marked as fixed in Go 1.10.We (cloud.google.com/go) are OK to remove
symbolize
since we no longer need to support Go < 1.10. But, I'm wondering if this is an expected behavior change of Go.Test case that passes on Go 1.13 and fails on Go 1.14beta1 (weird formatting)
What did you expect to see?
No changes in behavior.
What did you see instead?
A change of behavior of the
symbolize
function above between Go 1.13 and Go 1.14beta1.cc @dmitshur
The text was updated successfully, but these errors were encountered: