[llvm-bugs] [Bug 45381] New: Stack overflow with recursive linker script
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 31 23:16:24 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45381
Bug ID: 45381
Summary: Stack overflow with recursive linker script
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: raul+llvm at tambre.ee
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
script:
GROUP(script)
clang++ -fuse-ld=ld.lld script
#5 0x0000000000e8b646 llvm::sys::fs::openFileForRead(llvm::Twine const&,
int&, llvm::sys::fs::OpenFlags, llvm::SmallVectorImpl<char>*)
/opt/llvm-project/llvm/lib/Support/Unix/Path.inc:984:7
#6 0x0000000000e8ead7 llvm::sys::fs::openNativeFileForRead(llvm::Twine
const&, llvm::sys::fs::OpenFlags, llvm::SmallVectorImpl<char>*)
/opt/llvm-project/llvm/lib/Support/Unix/Path.inc:1021:24
#7 0x0000000000ed619a llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer,
std::default_delete<llvm::MemoryBuffer> > >
getFileAux<llvm::MemoryBuffer>(llvm::Twine const&, long, unsigned long,
unsigned long, bool, bool)
/opt/llvm-project/llvm/lib/Support/MemoryBuffer.cpp:263:8
#8 0x0000000000ed60bd llvm::MemoryBuffer::getFile(llvm::Twine const&, long,
bool, bool) /opt/llvm-project/llvm/lib/Support/MemoryBuffer.cpp:247:10
#9 0x0000000001080be8 lld::elf::readFile(llvm::StringRef)
/opt/llvm-project/lld/ELF/InputFiles.cpp:113:25
#10 0x000000000101bc99 lld::elf::LinkerDriver::addFile(llvm::StringRef, bool)
/opt/llvm-project/lld/ELF/Driver.cpp:194:15
#11 0x00000000011535c2 lld::elf::(anonymous
namespace)::ScriptParser::addFile(llvm::StringRef)
/opt/llvm-project/lld/ELF/ScriptParser.cpp:304:3
#12 0x000000000115115f lld::elf::(anonymous
namespace)::ScriptParser::readInput()
/opt/llvm-project/lld/ELF/ScriptParser.cpp:363:3
#13 0x0000000001150dc7 lld::elf::(anonymous
namespace)::ScriptParser::readGroup()
/opt/llvm-project/lld/ELF/ScriptParser.cpp:339:3
#14 0x000000000114ffb9 lld::elf::(anonymous
namespace)::ScriptParser::readLinkerScript()
/opt/llvm-project/lld/ELF/ScriptParser.cpp:240:5
#15 0x000000000114fc2c lld::elf::readLinkerScript(llvm::MemoryBufferRef)
/opt/llvm-project/lld/ELF/ScriptParser.cpp:1592:3
#16 0x000000000101bde5 lld::elf::LinkerDriver::addFile(llvm::StringRef, bool)
/opt/llvm-project/lld/ELF/Driver.cpp:206:5
#17 0x00000000011535c2 lld::elf::(anonymous
namespace)::ScriptParser::addFile(llvm::StringRef)
/opt/llvm-project/lld/ELF/ScriptParser.cpp:304:3
#18 0x000000000115115f lld::elf::(anonymous
namespace)::ScriptParser::readInput()
/opt/llvm-project/lld/ELF/ScriptParser.cpp:363:3
#19 0x0000000001150dc7 lld::elf::(anonymous
namespace)::ScriptParser::readGroup()
/opt/llvm-project/lld/ELF/ScriptParser.cpp:339:3
#20 0x000000000114ffb9 lld::elf::(anonymous
namespace)::ScriptParser::readLinkerScript()
/opt/llvm-project/lld/ELF/ScriptParser.cpp:240:5
[repeating]
--
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/20200401/2c864076/attachment.html>
More information about the llvm-bugs
mailing list