Open
Description
Hi team, I originally posted this issue in chromium here https://issues.chromium.org/issues/423955484, but I think it may help to put it from the LLVM project as well.
Chrome Version : The code from main branch
OS version : Mac OS 15.5 (24F74), ARM
We find that if we build chromium with is_offcial_build = true
enabled, then the generated dSYM file will be malformatted or corrupted, and we can't use the LLDB to debug the core .dmp file with that dSYM.
When using dwarfdump to dump the contents of the dSYM binary, we are going to get lots of errors like below:
.debug_info contents:
0x00000000: Compile Unit: length = 0x00000099, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x0000009d)
<compile unit can't be parsed!>
0x0000009d: Compile Unit: length = 0x00000045, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x000000e6)
<compile unit can't be parsed!>
0x000000e6: Compile Unit: length = 0x0000005a, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x00000144)
<compile unit can't be parsed!>
0x00000144: Compile Unit: length = 0x00000045, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x0000018d)
<compile unit can't be parsed!>
0x0000018d: Compile Unit: length = 0x0000006f, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x00000200)
<compile unit can't be parsed!>
0x00000200: Compile Unit: length = 0x00000045, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x00000249)
<compile unit can't be parsed!>
0x00000249: Compile Unit: length = 0x00000045, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x00000292)
<compile unit can't be parsed!>
0x00000292: Compile Unit: length = 0x00000045, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x000002db)
<compile unit can't be parsed!>
0x000002db: Compile Unit: length = 0x0000005a, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x00000339)
<compile unit can't be parsed!>
0x00000339: Compile Unit: length = 0x00000045, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x00000382)
<compile unit can't be parsed!>
0x00000382: Compile Unit: length = 0x00000030, format = DWARF32, version = 0x0004, abbr_offset = 0x0000 (invalid), addr_size = 0x08 (next unit at 0x000003b6)
......
.....
....