[Dwarf-Discuss] dsymutil: "could not find referenced DIE" followed by a segmentation fault and other newbie questions

Cary Coutant ccoutant@gmail.com
Sun Dec 9 22:22:47 GMT 2018


> 0x0001415e:       DW_TAG_imported_declaration [99]
>                     DW_AT_decl_file [DW_FORM_data1]     ("/Applications/Xcode7.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_time_t.h")
>                     DW_AT_decl_line [DW_FORM_data2]     (20047)
>                     DW_AT_import [DW_FORM_ref4] (cu + 0x4c4f5254 => {0x4c4f5254})
> ============
>
> How do I go about understanding the error, what caused it and how to solve it?
> BTW, the lib size being built is around 350MB. Could there be a size issue causing this seg fault?

The offset it gives, 0x4c4f5254, is much too large for a file in the
350MB range, so this is clearly bogus. The value is ASCII for "LORT"
-- it looks like an ASCII string has made its way into your DWARF info
somehow.

-cary



More information about the Dwarf-discuss mailing list