-
Notifications
You must be signed in to change notification settings - Fork 107
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
Trace/BPT trap on Mac #131
Comments
I have now encountered the same error when not using |
Reopening. The problem is presumably with libunwind, but it makes pprof unusable on a Mac, or more precisely on my Mac. Another person reproduced the problem on a non-M1 Mac. Maybe the problem occurs on all Macs. |
I'm having this problem as well, on a Mac M1 pro, same thing as yours, no profile.dev settings. Throws somewhere on libunwind when calling .pprof() at this part: libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_arm64>::step() (@libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_arm64>::step():162) |
I've actually been unable to get any form of profiling to work on my Mac, so for me at least, getting this to work would be phenomenally helpful. |
For mac user, the In the latest nightly of If you insist on using the |
Yes, that works really well, thank you! |
This code:
yields
Trace/BPT trap
when I run it, at least most of the time. Other similar code does this most of the time.It is exceptionally finicky. For example, changing
vec!["woof".to_string()]
tovec![]
eliminates the problem.This is using master on
pprof
, but also occurs in0.6
.I believe that the problem may be restricted to particular Mac versions. I have:
rustc 1.60.0
OSX 12.4
chip = apple M1 Pro
[profile.dev]
debug = 1
opt-level = 3
split-debuginfo = "unpacked"
The text was updated successfully, but these errors were encountered: