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

TiFlash failed to generate flamegraph #6228

Closed
CalvinNeo opened this issue Nov 1, 2022 · 5 comments · Fixed by pingcap/tidb-engine-ext#213 or #6244
Closed

TiFlash failed to generate flamegraph #6228

CalvinNeo opened this issue Nov 1, 2022 · 5 comments · Fixed by pingcap/tidb-engine-ext#213 or #6244
Assignees

Comments

@CalvinNeo
Copy link
Member

CalvinNeo commented Nov 1, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

After pingcap/tidb-engine-ext#193, we have to move from fp back to dwarf to unwind on x86 platforms. However, after this, flamegraph just can not work.

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiFlash version? (Required)

@CalvinNeo
Copy link
Member Author

We have already tried to recover:

  1. no-omit-frame-pointer on rust side
  2. rebuild std

However, only enable pprof-rs feature can make flamegraph work.

For any other cases, just stop at backtrace::trace_unsynchronized and never forward.

image

@CalvinNeo
Copy link
Member Author

image

@CalvinNeo
Copy link
Member Author

CalvinNeo commented Nov 2, 2022

@CalvinNeo
Copy link
Member Author

Change debug to 2, no help

[profile.test]
opt-level = 0
debug = 2
codegen-units = 16
lto = false
incremental = true
debug-assertions = true
overflow-checks = true
rpath = false

@CalvinNeo CalvinNeo self-assigned this Nov 2, 2022
@mornyx
Copy link

mornyx commented Nov 3, 2022

Should be resolved by tikv/pprof-rs#172.

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