-
Notifications
You must be signed in to change notification settings - Fork 3.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
pprof: quotes in labels break graphviz output #101523
Labels
A-observability-inf
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-testcluster
Issues found or occurred on a test cluster, i.e. a long-running internal cluster
T-observability
Comments
tbg
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-observability-inf
labels
Apr 14, 2023
tbg
changed the title
pprof: tripped up by some label we put in
pprof: quotes in labels break graphviz output
Apr 14, 2023
Filed google/pprof#769 upstream. We should quick-fix on our end by avoiding the quotes, though. |
tbg
added a commit
to tbg/cockroach
that referenced
this issue
Apr 14, 2023
``` range_str: Total 1.6s 1.6s ( 100%): 62/1 ``` Touches cockroachdb#101523. Epic: none Release note: None
craig bot
pushed a commit
that referenced
this issue
Apr 17, 2023
101524: kvserver: avoid quote in range_str profiler tag r=pavelkalinnikov a=tbg ``` range_str: Total 1.6s 1.6s ( 100%): 62/1 ``` Touches #101523. Epic: none Release note: None Co-authored-by: Tobias Grieger <[email protected]>
blathers-crl bot
pushed a commit
that referenced
this issue
Apr 17, 2023
``` range_str: Total 1.6s 1.6s ( 100%): 62/1 ``` Touches #101523. Epic: none Release note: None
tbg
added
the
O-testcluster
Issues found or occurred on a test cluster, i.e. a long-running internal cluster
label
Apr 21, 2023
Hacky work around:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-observability-inf
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-testcluster
Issues found or occurred on a test cluster, i.e. a long-running internal cluster
T-observability
Describe the problem
Make sure
graphviz
is installed. Download this profile, which was taken using the 23.1 test cluster,mv pprof.pb.gz{.txt,}
, thengo tool pprof -http :6060 pprof.pb.gz
. Then try to get the "Graph" view to work; it will instead printbut really the problem is that what
pprof
feeds todot
is not valid input:pprof.pb.gz.txt
To Reproduce
Output of
go tool pprof -dot pprof.pb.gz.txt > pprof.dot
is attached:pprof.dot.txt
and this reproduces:
That line is the
range_str
label, which evidently isn't getting escaped properly:Short term, we should properly escape the range_str label, but really pprof should properly escape the tags, which would be an upstream contribution (which would then take a while to trickle into a Go distribution we'll eventually upgrade to). Arguably this is an upstream bug, will file it as such.
Jira issue: CRDB-26989
The text was updated successfully, but these errors were encountered: