-
Notifications
You must be signed in to change notification settings - Fork 57
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
Many addresses are missing file + line information #174
Comments
More importantly,
|
Does this only occur for object files? We don't currently process relocations. |
Ah, yes, it's likely that this only happens for object files. How hard would it be to add support for object files? |
The dwarfdump example in gimli can handle them, so not hard to do in the addr2line example. I assume you want this in a library you can use too though? |
We'll want to implement this for split debuginfo support in backtrace-rs too. |
Not sure I completely understand the question, but I'd want (And I have homegrown split debuginfo code here which I'd love to replace with something from |
Thanks for the split debuginfo link, I plan to add that to |
Ooohh, I see. Thanks for the pointers! |
I think I have everything I need then. |
The problem doesn't seem to be related to relocations. If I comment out the call to And
I'm looking into it some more. |
It's because of this check: Line 478 in a8757e5
The first line row starts at address 0 in this object. This check makes us ignore all the rows. |
Ah right. So I'm pretty sure we need that check for executables, because I think the linker leaves the address at 0 for functions that are omitted, instead of deleting the line information (and same for DIEs). So maybe we need to set a flag on |
That check was added based on the investigation I did in #67 (comment). This was when we were still using an interval tree, and so doing a lookup of 0 resulting in poor behaviour. It might be safe to delete the check now. I'll look into it a bit more. |
Deleting the 0 check looks okay and matches other tools. I'll do a PR for that once #178 is merged. |
Awesome, thank you! |
When using addr2line to find file and line information from a local Firefox build on macOS, many addresses end up without file or line information. Here's one example:
Result:
lldb finds file + line + column information for these addresses correctly:
nsEmbedFunctions.cpp:740:34
.(Edit: unnecessary details elided, see next comment for
atos
getting it right)The text was updated successfully, but these errors were encountered: