-
Notifications
You must be signed in to change notification settings - Fork 108
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
Segmentation fault / memory leak #76
Comments
There are some known situations where If your program is getting backtrace (e.g. other profilers are running, the
I don't know how the |
Ah, it was the latter — this was my first Rust program more-or-less, and initially I had
Thanks, I was suspecting that there wasn't an actual leak. Looks like LeakSanitizer blamed pprof-rs for incorrect reasons, but removing it made the segmentation fault go away. |
@shreevatsa I'm sorry. There are memory leaks 😿 and they have been fixed by the latest version. If you are still facing segmentation fault, you could try |
As #84 has merged, I would close this issue. If you have more questions / bugs, feel free to reopen or create a new issue 😃 |
@YangKeao Thank you! Sorry I couldn't get around to testing again after the fix, but I will re-enable profiling in my toy project, and let you know if any issue happens again. Thanks for the fix! |
Hi, thank you for this really nice crate. I couldn't get most other profilers to work on a macOS laptop (
x86_64-apple-darwin
), while this one works easily and generates useful flamegraphs.Unfortunately it seems to be causing a segmentation fault in my program when I use it. There's no backtrace and the location of the crash seems to be non-deterministic so I have only indirect evidence:
pprof::ProfilerGuard
and it went away when I removed it.Maybe the issue is not with this pprof directly but with the combination of this and some other dependency, but I doubt I have the ability to debug further. Just filing this here in case the issue is obvious or it helps somehow,
The text was updated successfully, but these errors were encountered: