[llvm-bugs] [Bug 25283] New: Executable crashes when linked with lld & -O2
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 22 05:45:19 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=25283
Bug ID: 25283
Summary: Executable crashes when linked with lld & -O2
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: ismail at i10z.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15141
--> https://llvm.org/bugs/attachment.cgi?id=15141&action=edit
Testcase
This is on Linux x86_64:
λ clang -v
clang version 3.8.0 (trunk 250995)
Target: x86_64-suse-linux
Thread model: posix
InstalledDir: /opt/clang/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/5
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/5
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
λ clang++ -x c++ -O2 -std=c++11 -fuse-ld=lld2 mandelbrot-mp.ii
λ ./a.out
[1] 30266 segmentation fault (core dumped) ./a.out
Works fine if I use -O1 or gold linker. Testcase attached.
--
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/20151022/b45a98dc/attachment.html>
More information about the llvm-bugs
mailing list