-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
The hack for #291 breaks reading DWARF line info from .o files #471
Comments
It is worth noting that |
We don't know when we'll get around to fixing this. Can you run off a fork in the meantime? |
What's your time frame? It's been busted on our end since we upgraded to version 8, which was almost a year ago, so a few weeks is not going to make a huge difference. |
It's probably gonna take us a while. |
Maybe one option would be to allow zero addresses for relocatable objects, similar to what's done here: symbolic/symbolic-debuginfo/src/dwarf.rs Lines 487 to 489 in 6711360
|
This issue is stale. Closing. Please reopen if necessary. |
This still is an issue, but there is no option to reopen. |
Environment
Steps to Reproduce
cargo new testcase
cd testcase
curl -Lo mac-normal.o https://github.com/mozilla/fix-stacks/blob/master/tests/mac-normal.o?raw=true
cargo run mac-normal.o
Expected Result
Two
Function
s printed, both withLineInfo
s.Actual Result
Only one of them has
LineInfo
.Reverting the hack for #291 (c13ac5c) fixes it.
What's worth noting is that while reading DWARF info from mach-o objects generally works except for this, DWARF info from ELF objects is even more broken:
displays only one
Function
, withoutLineInfo
s.displays two
Function
s, withoutLineInfo
s, both with the namefoo
.I presume this is because in the former case, both functions have the same (address, size).
The text was updated successfully, but these errors were encountered: