Closed myzhan closed 6 days ago
Puzzling contents in the zip. 'file' says ._lua.dSYM is AppleDouble encoded Macintosh file
and I don't really know what that means. It's not just an apple universal binary (those the library knows about).
I see wikipedia has some comments about this (that lack clarity, IMO).
To put this another way: There is nothing in the zip file that is longer than 219 bytes. Way too short to be any sort of executable or .dSYM.
What you reference above is not in the zip file.
Ah. No, I find lua is 740K. Overlooked it before.
.debug_aranges From the .dSYM named lua: ERROR: dwarf_offdie_b() gets a return of error finding the compilation-unit DIE for arange number 0 and that should never happen. fails. Major error
dwarfdump ERROR: printing the aranges section had a problem.: DW_DLE_MISSING_NEEDED_DEBUG_ADDR_SECTION(257). Attempting to continue.
Yet .debug_addr is present. Odd.
Oh. This is the first DWARF5 macos file I've seen, it names sections new to DWARF5 and the library did not expect them. So I added the translations and will try that now.
Pushed to github. Seems to work ok now.
Adding __debug_names .debug_names on the assumption Apple might generate that section.
Now, I think there is a related issue.
Not just related, but the same. I believe libbacktrace uses libdwarf and I fixed this in libdwarf yesterday.
I believe this is fixed. If not reopen or create a new Issue and attach a (small-ish if possible) testcase. Thanks for advising us of the problem.
OS: Mac sequoia on Mac M3 Compiler: Apple clang version 16.0.0 (clang-1600.0.26.4) Target: arm64-apple-darwin24.1.0 libdwarf version: 0.11.0 (installed by homebrew)
dwarf_srclines_b returns an error. DW_DLE_ATTR_FORM_SIZE_BAD: An Attribute value (offset into .debug_str_offsets) is impossibly large. Corrupt Dwarf.
dwarfdump is ok.
File to reproduce. lua.dSYM.zip