runtime/pprof: non-self-recursive function (runtime.pcvalue) shows self-calls #52764
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
What version of Go are you using (
go version
)?This is broken in tip, working in go1.18.1
Does this issue reproduce with the latest release?
No, working in go1.18.1
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I added a test to src/runtime/pprof/pprof_test.go for the duplicate
runtime.pcvalue
entries I saw in #52693.What did you expect to see?
Because
runtime.pcvalue
does not call itself, the CPU profiler should never indicate that it does.What did you see instead?
The test fails on the development branch / tip about 25% of the time on my darwin/arm64 machine. (The failures are much less likely in -short mode.) It does not fail with go1.18.1 (passes 60+ times).
Maybe this is a recurrence of #50996, or maybe the fix for that broke this behavior? I plan to bisect. CC @prattmic
The text was updated successfully, but these errors were encountered: