[llvm-bugs] [Bug 28040] New: ELF executable generated with lld crashes when reading DYNAMIC link_map on x86-64

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 7 12:43:47 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28040

            Bug ID: 28040
           Summary: ELF executable generated with lld crashes when reading
                    DYNAMIC link_map on x86-64
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ck at remobjects.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I'm having a curious issue with LLD/x86_64 linux/elf (Ubuntu 14.04); Where
the l_addr of the link_map is invalid when linked with lld, but is fine with
gnu ld.

I'm using the libgc (boehm) code which when initializing reads the
DYNAMIC/DEBUG link_map data, and crashes because the l_addr field has value
out of readable memory. The strange this is that it happens only on some
linux systems even though they're the same ubuntu version. This is implemented
in a custom language but . libgc.a is basically a clang compiled version of the
a files.

it crashes here:
https://github.com/ivmai/bdwgc/blob/a126fd4cf264d740c2824071022e12c307e498de/dyn_load.c#L729

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160607/6e42f393/attachment.html>


More information about the llvm-bugs mailing list