-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
The captured pprof of Test
and Benchmark
protobuf cannot be decoded properly
#52215
Labels
affects-6.5
affects-7.1
affects-7.5
severity/moderate
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
Comments
5 tasks
Could you add more detail about how to reproduce it? Since I can't reproduce it. BTW, normally, since tidb/pkg/util/cpuprofile/pprof_api.go Lines 184 to 192 in 318e82b
sql .
|
YangKeao
changed the title
Sometimes the captured pprof protobuf cannot be decoded properly
The captured pprof of Apr 1, 2024
Test
and Benchmark
protobuf cannot be decoded properly
This was referenced Apr 3, 2024
Merged
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-6.5
affects-7.1
affects-7.5
severity/moderate
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
This issue does not affect the
/debug/pprof/profile
of tidb server. The labels of profiles are removed inbuildProfileData
. It only affects the developers who wants to profile theBenchmark
orTest
, or profile through thepprof
command directly.It can be easily reproduced by running
go test -run 'BenchmarkPointGet' -bench 'BenchmarkPointGet' . -cpuprofile cpu.out
in/pkg/session
.With the output, the
pprof
command will return:It's because we are using non-utf8 bytes in the goroutine labels. If you use
dot
to dump a dot file (which allows non-utf8 bytes, at least didn't return an error), you will find following things:We are using
sqlDigest
bytes directly in the label 😠 . It should be replaced by using the hex string.The text was updated successfully, but these errors were encountered: