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

Profiler does not run properly on Linux #157

Closed
viglia opened this issue Aug 16, 2022 · 2 comments
Closed

Profiler does not run properly on Linux #157

viglia opened this issue Aug 16, 2022 · 2 comments

Comments

@viglia
Copy link
Contributor

viglia commented Aug 16, 2022

In the past I've used the profiler on a Mac with Intel processor (with default features) and on a M1 Mac (with frame-pointer feature).
Everything worked fine.

I've tried to run the same program on Linux (default features) and got several problem:

  1. if I didn't remove pthread from the blocklist ["libc", "libgcc", "pthread", "vdso"] it would not collect samples. Actually it would collect 2 samples in total, no matter how long I profiled, with only 2 frames belonging to the signal_handler and nothing else
  2. removing pthread (or the whole blocklist) most of the time resulted in the program crashing, for the reason explained in the readme as well
  3. when the program was not crashing, the resulting stack traces were incoherent. For example, the frame belonging to the main function sometimes appears twice in the same stack traces and in different positions

I've run this on the following system: Debian 4.19.249-2 x86_64 GNU/Linux
And the version of the pprof-rs crate I've used is: 0.10.0

@mornyx
Copy link
Contributor

mornyx commented Nov 3, 2022

Should be resolved by #172.

@breezewish
Copy link
Member

Closing the issue according to feedbacks in #135.

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

3 participants