[llvm-bugs] [Bug 25175] New: Binary crashes in _dl_relocate_object

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 14 05:36:36 PDT 2015


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

            Bug ID: 25175
           Summary: Binary crashes in _dl_relocate_object
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hfinkel at anl.gov
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15079
  --> https://llvm.org/bugs/attachment.cgi?id=15079&action=edit
Crashing binary

$ cat /tmp/hello.cpp 
#include <iostream>

int main() {
  std::cout << "hello\n";
}

$ clang++ -fuse-ld=lld2 -o /tmp/h -O3 /tmp/hello.cpp
$ clang++ -o /tmp/h-ld -O3 /tmp/hello.cpp

$ /tmp/h-ld 
hello
$ /tmp/h
Segmentation fault

$ gdb /tmp/h
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
...
(gdb) r
Starting program: /tmp/h 

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7de8d66 in _dl_relocate_object () from /lib64/ld-linux-x86-64.so.2
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.149.el6_6.5.x86_64
(gdb) bt
#0  0x00007ffff7de8d66 in _dl_relocate_object () from
/lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7de08a3 in dl_main () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff7df2b4e in _dl_sysdep_start () from /lib64/ld-linux-x86-64.so.2
#3  0x00007ffff7dde4a4 in _dl_start () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff7dddb08 in _start () from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x00007fffffffe795 in ?? ()
#7  0x0000000000000000 in ?? ()

This is trunk LLVM/Clang from two days ago and current trunk lld.

This binary also crashes when run on my FC19 machine. If you can't reproduce
the problem, please let me know. I'll happily tar up whatever you need.

-- 
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/20151014/466fe9bb/attachment-0001.html>


More information about the llvm-bugs mailing list