<html>
<head>
<base href="http://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 - segfault while linking w/ -r an object in FreeBSD buildworld"
href="http://bugs.llvm.org/show_bug.cgi?id=32118">32118</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>segfault while linking w/ -r an object in FreeBSD buildworld
</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>FreeBSD
</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>emaste@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18042" name="attach_18042" title="reproducer">attachment 18042</a> <a href="attachment.cgi?id=18042&action=edit" title="reproducer">[details]</a></span>
reproducer
This is with <a href="https://reviews.llvm.org/D30500">https://reviews.llvm.org/D30500</a> applied, as well as a trivial
change to output more diagnostic information in one case. Reproducer attached.
(lldb) bt
* thread #1: tid = 100240, 0x00000000005d4e7e
ld.lld`lld::elf::EhFrameHeader<llvm::object::ELFType<(llvm::support::endianness)1,
true> >::getSize() const + 14, stop reason = invalid address (fault address:
0xb0)
* frame #0: 0x00000000005d4e7e
ld.lld`lld::elf::EhFrameHeader<llvm::object::ELFType<(llvm::support::endianness)1,
true> >::getSize() const + 14
frame #1: 0x000000000059ecc7 ld.lld`void
lld::elf::OutputSection::assignOffsets<llvm::object::ELFType<(llvm::support::endianness)1,
true> >() + 71
frame #2: 0x000000000061c77c ld.lld`(anonymous
namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1, true>
<span class="quote">>::run() + 6508</span >
frame #3: 0x0000000000628886 ld.lld`void
lld::elf::writeResult<llvm::object::ELFType<(llvm::support::endianness)1, true>
<span class="quote">>() + 102</span >
frame #4: 0x00000000005129a9 ld.lld`void
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1,
true> >(llvm::opt::InputArgList&) + 1641
frame #5: 0x000000000050beca
ld.lld`lld::elf::LinkerDriver::main(llvm::ArrayRef<char const*>, bool) + 2698
frame #6: 0x000000000050b30f ld.lld`lld::elf::link(llvm::ArrayRef<char
const*>, bool, llvm::raw_ostream&) + 207
frame #7: 0x0000000000465789 ld.lld`main + 761
frame #8: 0x00000000004653af ld.lld`_start(ap=<unavailable>,
cleanup=<unavailable>) + 367 at crt1.c:72</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>