[llvm-bugs] [Bug 24488] New: EarlyCSE Assertion `Val && "isa<> used on a null pointer"'

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 18 10:06:16 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24488

            Bug ID: 24488
           Summary: EarlyCSE Assertion `Val && "isa<> used on a null
                    pointer"'
           Product: libraries
           Version: 3.7
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14740
  --> https://llvm.org/bugs/attachment.cgi?id=14740&action=edit
repro IR

Found by fuzz testing.  Fails on 3.7 and trunk.
Bugpoint-reduced IR attached.  'opt' crash log from 3.7 follows.

$ opt bugpoint-reduced-simplified.ll -early-cse
opt:
/home/probinson/projects/llvm-org/llvm3.7/llvm/include/llvm/Support/Casting.h:95:
static bool llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To =
llvm::ConstantInt; From = llvm::Constant]: Assertion `Val && "isa<> used on a
null pointer"' failed.
0  opt             0x00000000015af018
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56
1  opt             0x00000000015ae159
2  libpthread.so.0 0x00007f79cf845340
3  libc.so.6       0x00007f79cea6dcc9 gsignal + 57
4  libc.so.6       0x00007f79cea710d8 abort + 328
5  libc.so.6       0x00007f79cea66b86
6  libc.so.6       0x00007f79cea66c32
7  opt             0x0000000001173d63
8  opt             0x0000000000f0be3e llvm::findScalarElement(llvm::Value*,
unsigned int) + 142
9  opt             0x0000000000e64c3f
llvm::SimplifyInstruction(llvm::Instruction*, llvm::DataLayout const&,
llvm::TargetLibraryInfo const*, llvm::DominatorTree const*,
llvm::AssumptionCache*) + 383
10 opt             0x00000000014358c9
11 opt             0x000000000143707f
12 opt             0x000000000125aa90
llvm::FPPassManager::runOnFunction(llvm::Function&) + 480
13 opt             0x000000000125ae2b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
14 opt             0x000000000125b124
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 724
15 opt             0x00000000006437e1 main + 7105
16 libc.so.6       0x00007f79cea58ec5 __libc_start_main + 245
17 opt             0x000000000067df83
Stack dump:
0.    Program arguments: /home/probinson/projects/llvm-org/llvm3.7/cobj/bin/opt
-early-cse bz117445.ll -o bz117445-out.ll 
1.    Running pass 'Function Pass Manager' on module 'bz117445.ll'.
2.    Running pass 'Early CSE' on function '@autogen_SD769023506'
Aborted (core dumped)

-- 
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/20150818/d0660ed8/attachment.html>


More information about the llvm-bugs mailing list