-
Notifications
You must be signed in to change notification settings - Fork 261
frames cannot be resolved on macOS #443
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Whether or not you can generate a backtrace with fielnames and line numbers can depend on issues like whether you stripped the binary, whether there's debuginfo, etc. Can you detail more about your build process and how to reproduce this? Locally for me on macOS with |
Oh, I should've mentioned this:
|
IIRC there's something fiddly about M1 macs where something about the system libraries and/or debuginfo don't live in places they used to. I sort of forget though, and without an M1 I unfortunately can't help debug further :( |
Ah, fun. I'd be willing to help figure this out. Where should I start looking in the codebase, what handles the system libraries / debuginfo? |
The relevant code here is gonna be these two files:
The best way to figure this out is probably going to be adding some debugging prints to |
Oh there may also be bits in this file as well to debug -- https://github.com/rust-lang/backtrace-rs/blob/master/src/symbolize/gimli/macho.rs |
The issue is that Now, why is this so? Well, Nix (which is where my toolchain is from) injects
|
🎉 |
For the last line I get that myself locally as well, and I think it's the inability to trace throuh some system libraries perhaps? I think it's definitely indicative of a bug in any case in this library somewhere because I don't believe it has anything to do with the filename/line number reported. |
code
output
rustc version info
backtrace
version: 0.3.61I can also reproduce this with
std::backtrace
on the nightly from2021-10-13
, but I think this is the most fitting place to file this issue (let me know if it isn't, and I'll open an issue in the Rust repo).The text was updated successfully, but these errors were encountered: