[LLVMbugs] [Bug 24163] New: Assertion failure with indirect symbols on OSX
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 16 19:45:46 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24163
Bug ID: 24163
Summary: Assertion failure with indirect symbols on OSX
Product: libraries
Version: 3.7
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: alex at crichton.co
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following IR causes llc to trip an assertion (when running with
-filetype=obj)
target triple = "x86_64-apple-darwin"
@r1 = external constant i64
@r2 = internal unnamed_addr constant i64* @r1
@r3 = constant i64** @r2
define internal void @foo(i64*** %slot) {
store i64** @r2, i64*** %slot
ret void
}
llc: /home/alex/code/llvm/include/llvm/Support/Casting.h:95: static bool
llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To =
llvm::GlobalValue; From = llvm::Constant]: Assertion `Val && "isa<> used on a
null pointer"' failed.
0 llc 0x00000000022db008
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 44
1 llc 0x00000000022db31d
2 llc 0x00000000022d9e1e
3 libpthread.so.0 0x00007f3f9f2ac340
4 libc.so.6 0x00007f3f9e2c0cc9 gsignal + 57
5 libc.so.6 0x00007f3f9e2c40d8 abort + 328
6 libc.so.6 0x00007f3f9e2b9b86
7 libc.so.6 0x00007f3f9e2b9c32
8 llc 0x0000000000f8d418
9 llc 0x0000000000f8c828
10 llc 0x0000000000f8ab47
11 llc 0x0000000000f87a74
12 llc 0x0000000000f8488c
13 llc 0x00000000019514c8
14 llc 0x0000000001951bac
15 llc 0x0000000001951c62
llvm::AsmPrinter::EmitGlobalConstant(llvm::Constant const*) + 96
16 llc 0x0000000001949db7
llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable const*) + 3241
17 llc 0x000000000194c945
llvm::AsmPrinter::doFinalization(llvm::Module&) + 237
18 llc 0x000000000221ce31
llvm::FPPassManager::doFinalization(llvm::Module&) + 83
19 llc 0x000000000221d22b
20 llc 0x000000000221d75d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 249
21 llc 0x000000000221d997
llvm::legacy::PassManager::run(llvm::Module&) + 39
22 llc 0x0000000000c718d1
23 llc 0x0000000000c7075e main + 242
24 libc.so.6 0x00007f3f9e2abec5 __libc_start_main + 245
25 llc 0x0000000000c6d339
Stack dump:
0. Program arguments: ./Debug+Asserts/bin/llc ./bug2.ll
zsh: abort (core dumped) ./Debug+Asserts/bin/llc ./bug2.ll
This seems similar to https://llvm.org/bugs/show_bug.cgi?id=23779, but I'm not
sure if the fix is the exact same.
--
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/20150717/94df7d13/attachment.html>
More information about the llvm-bugs
mailing list