[LLVMbugs] [Bug 18752] New: Assertion `index < Weights.size() && "Not a current successor!"' failed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 6 04:25:13 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18752
Bug ID: 18752
Summary: Assertion `index < Weights.size() && "Not a current
successor!"' failed
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
Assignee: unassignedbugs at nondot.org
Reporter: eugeni.stepanov at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 12020
--> http://llvm.org/bugs/attachment.cgi?id=12020&action=edit
reproducer
$ clang++ -target arm-linux-androideabi -O3 -fno-exceptions -S 1.ii
clang-3.5: ../lib/CodeGen/MachineBasicBlock.cpp:1149:
llvm::MachineBasicBlock::const_weight_iterator
llvm::MachineBasicBlock::getWeightIterator(llvm::MachineBasicBlock::const_succ_iterator)
const: Assertion `index < Weights.size() && "Not a current successor!"' failed.
0 clang-3.5 0x0000000000b7d9d2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang-3.5 0x0000000000b7d5f4
2 libpthread.so.0 0x00007fe219e68cb0
3 libc.so.6 0x00007fe2190a6425 gsignal + 53
4 libc.so.6 0x00007fe2190a9b8b abort + 379
5 libc.so.6 0x00007fe21909f0ee
6 libc.so.6 0x00007fe21909f192
7 clang-3.5 0x0000000000f41b7a
8 clang-3.5 0x0000000000f41b95
llvm::MachineBasicBlock::getSuccWeight(__gnu_cxx::__normal_iterator<llvm::MachineBasicBlock*
const*, std::vector<llvm::MachineBasicBlock*,
std::allocator<llvm::MachineBasicBlock*> > >) const + 21
9 clang-3.5 0x0000000000f474af
llvm::MachineBranchProbabilityInfo::getEdgeWeight(llvm::MachineBasicBlock
const*, __gnu_cxx::__normal_iterator<llvm::MachineBasicBlock* const*,
std::vector<llvm::MachineBasicBlock*, std::allocator<llvm::MachineBasicBlock*>
> >) const + 15
10 clang-3.5 0x0000000000f4771f
llvm::MachineBranchProbabilityInfo::getEdgeWeight(llvm::MachineBasicBlock
const*, llvm::MachineBasicBlock const*) const + 255
11 clang-3.5 0x0000000000f236af
12 clang-3.5 0x0000000000f27645
13 clang-3.5 0x00000000008fb01f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
14 clang-3.5 0x00000000008fb4eb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
15 clang-3.5 0x00000000008fb82d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
16 clang-3.5 0x000000000112c3ee
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
2878
17 clang-3.5 0x0000000001127cf6
18 clang-3.5 0x00000000015a25db clang::ParseAST(clang::Sema&, bool, bool)
+ 507
19 clang-3.5 0x000000000112870b clang::CodeGenAction::ExecuteAction() +
59
20 clang-3.5 0x0000000000cc38e9 clang::FrontendAction::Execute() + 249
21 clang-3.5 0x0000000000ca50f0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
22 clang-3.5 0x0000000000d4c804
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1860
23 clang-3.5 0x000000000062b128 cc1_main(char const**, char const**, char
const*, void*) + 936
24 clang-3.5 0x000000000060e31a main + 666
25 libc.so.6 0x00007fe21909176d __libc_start_main + 237
26 clang-3.5 0x0000000000627c49
Stack dump:
0. Program arguments: /code/llvm/build0/bin/clang-3.5 -cc1 -triple
armv4t--linux-androideabi -S -disable-free -main-file-name 1.ii
-mrelocation-model pic -pic-level 1 -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu arm7tdmi
-target-feature +soft-float -target-feature +soft-float-abi -target-feature
-neon -target-abi aapcs-linux -msoft-float -mfloat-abi soft -coverage-file
/code/llvm/z/1.s -resource-dir /code/llvm/build0/bin/../lib/clang/3.5 -O3
-fdeprecated-macro -fdebug-compilation-dir /code/llvm/z -ferror-limit 19
-fmessage-length 116 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o 1.s -x c++-cpp-output 1.ii
C++ source attached. Sorry, it is not fully minimized (creduce gets stuck on
all the templates), but the IR is pretty compact.
--
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/20140206/3b558c8d/attachment.html>
More information about the llvm-bugs
mailing list