<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - lld segmentation faults on simple testcase"
href="https://bugs.llvm.org/show_bug.cgi?id=34853">34853</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld segmentation faults on simple testcase
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ben@smart-cactus.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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>
<span class="quote">>::finalizeSections() /home/ben/trees/llvm/tools/lld/ELF/Writer.cpp:1273:0</span >
#6 0x000055ce62e515fa (anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, true>
<span class="quote">>::run() /home/ben/trees/llvm/tools/lld/ELF/Writer.cpp:204:0</span >
#7 0x000055ce62e7ae62 void
lld::elf::writeResult<llvm::object::ELFType<(llvm::support::endianness)1, true>
<span class="quote">>() /home/ben/trees/llvm/tools/lld/ELF/Writer.cpp:125:0</span >
#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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>