Skip to content

cmd/pprof: negative numbers in go tool pprof heap report in 1.22.3, but not in 1.22.2 #67584

@ruz

Description

@ruz

Go version

1.22.3

Output of go env in your module/workspace:

---

Not sure how to get it from env where docker image is built and where service is executed.

What did you do?

Took a heap profile from a running service (docker/k8s/linux) using instrumentation server opened on a dedicated port with built in pprof handlers. The service was built with 1.22.3. As far as I know all allocations tracking settings are at default values. Opened the profile using go tool pprof 1.22.3 on mac os. Got negatives all over, see screenshot.

Restarted service. Repeated experiment. Same result.

Built the service with 1.22.2. No negatives in the report.

In all experiments used 1.22.3 to view profiles.

Not sure I can provide more details, hope that it's easy to track regression in allocations tracking code.

sceenshot 2024-05-22 в 12 29 45

What did you see happen?

allocation report contained a lot of negative numbers

What did you expect to see?

report without negative "memory in use" numbers

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions