[llvm-bugs] [Bug 32118] New: segfault while linking w/ -r an object in FreeBSD buildworld
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Mar 2 06:56:56 PST 2017
http://bugs.llvm.org/show_bug.cgi?id=32118
Bug ID: 32118
Summary: segfault while linking w/ -r an object in FreeBSD
buildworld
Product: lld
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: emaste at freebsd.org
CC: llvm-bugs at lists.llvm.org
Created attachment 18042
--> http://bugs.llvm.org/attachment.cgi?id=18042&action=edit
reproducer
This is with https://reviews.llvm.org/D30500 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>
>::run() + 6508
frame #3: 0x0000000000628886 ld.lld`void
lld::elf::writeResult<llvm::object::ELFType<(llvm::support::endianness)1, true>
>() + 102
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
--
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/20170302/243a1f48/attachment.html>
More information about the llvm-bugs
mailing list