[llvm-bugs] [Bug 51482] New: Crash when linking two bitcode modules with gvar/alias definitions
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 15 03:02:47 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51482
Bug ID: 51482
Summary: Crash when linking two bitcode modules with gvar/alias
definitions
Product: libraries
Version: 12.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Linker
Assignee: unassignedbugs at nondot.org
Reporter: itay.bookstein at nextsilicon.com
CC: llvm-bugs at lists.llvm.org
// a.ll
@g_bar = external dso_local local_unnamed_addr constant i32, align 4
@g_foo = alias i32, i32* @g_bar
// b.ll
@g_foo = external dso_local local_unnamed_addr constant i32, align 4
@g_bar = dso_local constant i32 1, align 4
Invoke llvm-link-12 a.ll b.ll -S -o c.ll
Stack dump:
0. Program arguments: llvm-link-12 bla1.ll bla2.ll -S -o bla3.ll
#0 0x00007f70c7e8c3d3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xcfc3d3)
#1 0x00007f70c7e8a700 llvm::sys::RunSignalHandlers()
(/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xcfa700)
#2 0x00007f70c7e8ca3f (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0xcfca3f)
#3 0x00007f70c7181730 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12730)
#4 0x00007f70c8df487a (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x1c6487a)
#5 0x00007f70c88a9119 (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x1719119)
#6 0x00007f70c88a8b08 (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x1718b08)
#7 0x00007f70c88a908f llvm::ValueMapper::mapValue(llvm::Value const&)
(/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x171908f)
#8 0x00007f70c8df1f42 (/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x1c61f42)
#9 0x00007f70c8df068b llvm::IRMover::move(std::unique_ptr<llvm::Module,
std::default_delete<llvm::Module> >, llvm::ArrayRef<llvm::GlobalValue*>,
std::function<void (llvm::GlobalValue&, std::function<void
(llvm::GlobalValue&)>)>, bool)
(/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x1c6068b)
#10 0x00007f70c8dfa311 llvm::Linker::linkInModule(std::unique_ptr<llvm::Module,
std::default_delete<llvm::Module> >, unsigned int, std::function<void
(llvm::Module&, llvm::StringSet<llvm::MallocAllocator> const&)>)
(/lib/x86_64-linux-gnu/libLLVM-12.so.1+0x1c6a311)
#11 0x00000000004083f0 llvm::errorCodeToError(std::error_code)
(/usr/lib/llvm-12/bin/llvm-link+0x4083f0)
#12 0x0000000000405d8c llvm::errorCodeToError(std::error_code)
(/usr/lib/llvm-12/bin/llvm-link+0x405d8c)
#13 0x00007f70c6cb109b __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2409b)
#14 0x000000000040575a llvm::errorCodeToError(std::error_code)
(/usr/lib/llvm-12/bin/llvm-link+0x40575a)
fish: “llvm-link-12 bla1.ll bla2.ll -S…” terminated by signal SIGSEGV (Address
boundary error)
--
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/20210815/93ff1901/attachment.html>
More information about the llvm-bugs
mailing list