Skip to content
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

pprof: go tool pprof cannot read the pprof file normally #66227

Closed
sellskin opened this issue Mar 10, 2024 · 4 comments
Closed

pprof: go tool pprof cannot read the pprof file normally #66227

sellskin opened this issue Mar 10, 2024 · 4 comments

Comments

@sellskin
Copy link

Go version

go version go1.21rc2 darwin/arm64

Output of go env in your module/workspace:

GO111MODULE='auto'
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/ss/Library/Caches/go-build'
GOENV='/Users/ss/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/ss/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/ss/go'
GOPRIVATE=''
GOPROXY=''
GOROOT='/Users/ss/.g/go'
GOSUMDB='off'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/ss/.g/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.21rc2'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='0'
GOMOD=''
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/9t/839s3jmj73bcgyp5x_xh3gw00000gn/T/go-build581398422=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?

go tool pprof memory_pprof_2024_03_10_02:11:49

What did you see happen?

Fetching profile over HTTP from http://memory_pprof_2024_03_10_02:11:49/debug/pprof/profile
memory_pprof_2024_03_10_02:11:49: Get "http://memory_pprof_2024_03_10_02:11:49/debug/pprof/profile": dial tcp: lookup memory_pprof_2024_03_10_02:11: no such host
failed to fetch any source profiles

What did you expect to see?

Hope to enter the expected interactive interface

@seankhliao
Copy link
Member

seankhliao commented Mar 10, 2024

this is an upstream pprof issue of how it treats names with colons

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2024
@sellskin
Copy link
Author

this is an upstream pprof issue of how it treats names with colons

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

Thanks for your reply!

But according to my understanding, isn't this a bug?

@ianlancetaylor
Copy link
Contributor

The pprof program that is included with the Go distribution comes from https://github.com/google/pprof. That is where bugs against pprof should be reported. Thanks.

@cuishuang
Copy link
Contributor

this is an upstream pprof issue of how it treats names with colons
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions

Thanks for your reply!

But according to my understanding, isn't this a bug?

I have made corresponding modifications to the upstream warehouse and it has been merged(google/pprof#817). At the same time, go also requires minor changes and is currently in a ready state (https://go-review.googlesource.com/c/go/+/539595). The new version of Go will not have similar situations again

For now, the simplest way is to modify the file name so that it does not contain a colon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants