[LLVMbugs] [Bug 5032] New: Bad DWARF encoding in EH frames.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Sep 22 17:24:10 PDT 2009


           Summary: Bad DWARF encoding in EH frames.
           Product: new-bugs
           Version: 2.6
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: miscompilation
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: wilsons at start.ca
                CC: llvmbugs at cs.uiuc.edu, wilsons at start.ca

I am seeing the following exception table header generated on x86_64,

        .byte   0x0           # Padding
        .byte   0x0           # Padding
        .byte   0xFF          # @LPStart format (DW_EH_PE_omit)
        .byte   0             # @TType format (DW_EH_PE_absptr)
        .uleb128  5           # @TType base offset

Now, @TType format says to expect an absptr, but what follows is a uleb128.

I am _not_ an expert on DWARF.  But I think this is wrong.  Shouldn't @TType
format be DW_EH_PE_uleb128?  Otherwise a dwarf reader would take @TType offset
as an absoulte pointer address.


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