[llvm-bugs] [Bug 34853] New: lld segmentation faults on simple testcase
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 5 16:22:42 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34853
Bug ID: 34853
Summary: lld segmentation faults on simple testcase
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: ben at smart-cactus.org
CC: llvm-bugs at lists.llvm.org
I'm observing a segmentation fault while linking with lld 5.0,
$ git clone git://github.com/bgamari/T14291-repro
$ cd T14291-repro
$ ~/trees/llvm/build/bin/ld.lld -r -T merge_sections.ld -o out.o Concurrent.o
Base.o Err.o
#0 0x000055ce62b9f9e2 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/ben/trees/llvm/lib/Support/Unix/Signals.inc:398:0
#1 0x000055ce62b9fa75 PrintStackTraceSignalHandler(void*)
/home/ben/trees/llvm/lib/Support/Unix/Signals.inc:462:0
#2 0x000055ce62b9df94 llvm::sys::RunSignalHandlers()
/home/ben/trees/llvm/lib/Support/Signals.cpp:49:0
#3 0x000055ce62b9f366 SignalHandler(int)
/home/ben/trees/llvm/lib/Support/Unix/Signals.inc:252:0
#4 0x00007ff095c46e90 __restore_rt
(/nix/store/24k0lj8jix59vgjxwmh9mwxs1aa31sp7-glibc-2.24/lib/libpthread.so.0+0x10e90)
#5 0x000055ce62e5cd86 (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, true>
>::finalizeSections() /home/ben/trees/llvm/tools/lld/ELF/Writer.cpp:1273:0
#6 0x000055ce62e515fa (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, true>
>::run() /home/ben/trees/llvm/tools/lld/ELF/Writer.cpp:204:0
#7 0x000055ce62e7ae62 void
lld::elf::writeResult<llvm::object::ELFType<(llvm::support::endianness)1, true>
>() /home/ben/trees/llvm/tools/lld/ELF/Writer.cpp:125:0
#8 0x000055ce62cd3ad1 void
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1,
true> >(llvm::opt::InputArgList&)
/home/ben/trees/llvm/tools/lld/ELF/Driver.cpp:1060:0
#9 0x000055ce62cc741d lld::elf::LinkerDriver::main(llvm::ArrayRef<char const*>,
bool) /home/ben/trees/llvm/tools/lld/ELF/Driver.cpp:390:0
#10 0x000055ce62cc4277 lld::elf::link(llvm::ArrayRef<char const*>, bool,
llvm::raw_ostream&) /home/ben/trees/llvm/tools/lld/ELF/Driver.cpp:86:0
#11 0x000055ce62b7c4f9 main
/home/ben/trees/llvm/tools/lld/tools/lld/lld.cpp:104:0
#12 0x00007ff0947cb2e0 __libc_start_main
(/nix/store/24k0lj8jix59vgjxwmh9mwxs1aa31sp7-glibc-2.24/lib/libc.so.6+0x202e0)
#13 0x000055ce62b7b6ba _start (/home/ben/trees/llvm/build/bin/ld.lld+0x3556ba)
Stack dump:
0. Program arguments: /home/ben/trees/llvm/build/bin/ld.lld -r -T
merge_sections.ld -o out.o Concurrent.o Base.o Err.o
--
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/20171005/6cb04ad5/attachment.html>
More information about the llvm-bugs
mailing list