[LLVMbugs] [Bug 11898] New: bogus DW_FORM_strp offset

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 31 11:20:32 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11898

             Bug #: 11898
           Summary: bogus DW_FORM_strp offset
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: fischman at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Building chromium's browser_tests binary with clang & the shared_library build
generates a libcontent.so that makes gdb unhappy:
Error while reading shared library symbols for
/usr/local/google/fischman/src/chromium/src/ninja/Debug/lib/libcontent.so:
DW_FORM_strp pointing outside of .debug_str section [in module
/usr/local/google/fischman/src/chromium/src/ninja/Debug/lib/libcontent.so]

poking at it with readelf -w says:
$ readelf -w libcontent.so > /dev/null
readelf: Warning: DW_FORM_strp offset too big: 662f706d
readelf: Warning: DIE at offset 52f6684 refers to abbreviation number 97 which
does not exist
readelf: Warning: DIE at offset 52f6684 refers to abbreviation number 97 which
does not exist
readelf: Warning: Unable to load/parse the .debug_info section, so cannot
interpret the .debug_line section.
readelf: Warning: Unable to load/parse the .debug_info section, so cannot
interpret the .debug_loc section.
readelf: Warning: Unable to load/parse the .debug_info section, so cannot
interpret the .debug_ranges section.

That first warning seems like a problem, since it's an offset of ~1.7e9 in a
file that's only 1.6e8 big (!).  The particular value also looks like it might
be ASCII ("f/mp") but that string doesn't occur in the chromium source tree, so
probably just a red herring.

The libcontent.so.bz2 in question can be downloaded from:
https://docs.google.com/open?id=0B04xnfIubmoUZmY1ODAwYWYtNDU5MS00OTViLTljZjUtODQ1NWQ0ZDg2YjI3

FWIW, links for how to build in this configuration:
http://code.google.com/p/chromium/wiki/Clang
http://code.google.com/p/chromium/wiki/LinuxFasterBuilds#Shared_libraries_(components)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list