[LLVMbugs] [Bug 11360] New: Assertion `NumVisited == getNumBlocks() && "Unreachable block in loop"' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Nov 11 12:03:45 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11360
Bug #: 11360
Summary: Assertion `NumVisited == getNumBlocks() &&
"Unreachable block in loop"' failed.
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
Classification: Unclassified
[regehr at gamow tmp060]$ clang -v
clang version 3.1 (trunk 144393)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow tmp060]$ clang -c -w -O2 small.c
clang:
/uusoc/exports/scratch/regehr/z/llvm/include/llvm/Analysis/LoopInfo.h:483: void
llvm::LoopBase<N, M>::verifyLoop() const [with BlockT = llvm::BasicBlock, LoopT
= llvm::Loop]: Assertion `NumVisited == getNumBlocks() && "Unreachable block in
loop"' failed.
0 clang 0x0000000001cff99f
1 clang 0x0000000001d01c12
2 libpthread.so.0 0x00007ffff7bcf8f0
3 libc.so.6 0x00007ffff6ebea75 gsignal + 53
4 libc.so.6 0x00007ffff6ec25c0 abort + 384
5 libc.so.6 0x00007ffff6eb7941 __assert_fail + 241
6 clang 0x0000000001ae7de3 llvm::LoopBase<llvm::BasicBlock,
llvm::Loop>::verifyLoop() const + 3443
7 clang 0x0000000001ae9d6c
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1436
8 clang 0x0000000001c5450b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
9 clang 0x0000000001a7d82d
10 clang 0x0000000001c54007
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
11 clang 0x0000000001c5419b llvm::PassManagerImpl::run(llvm::Module&)
+ 187
12 clang 0x0000000000831081
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1505
13 clang 0x000000000082e851
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 353
14 clang 0x000000000097b60f clang::ParseAST(clang::Sema&, bool) + 431
15 clang 0x000000000082d434 clang::CodeGenAction::ExecuteAction() +
68
16 clang 0x00000000006ee055
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 373
17 clang 0x00000000006d06e9
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1401
18 clang 0x00000000006c6977 cc1_main(char const**, char const**, char
const*, void*) + 791
19 clang 0x00000000006cf4b7 main + 7175
20 libc.so.6 0x00007ffff6ea9c4d __libc_start_main + 253
21 clang 0x00000000006c4579
Stack dump:
0. Program arguments: /uusoc/exports/scratch/regehr/z/llvm-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir
/uusoc/exports/scratch/regehr/z/llvm-install/bin/../lib/clang/3.1
-fmodule-cache-path /var/tmp/clang-module-cache -I
/opt/intel/composerxe-2011.5.220/mkl/include -I
/opt/intel/composerxe-2011.5.220/tbb/include -internal-isystem
/usr/local/include -internal-isystem
/uusoc/exports/scratch/regehr/z/llvm-install/bin/../lib/clang/3.1/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-w -fdebug-compilation-dir /home/regehr/z/volatile/bugs/tmp060 -ferror-limit 19
-fmessage-length 101 -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o small.o -x c small.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'small.c'.
4. Running pass 'Loop Pass Manager' on function '@func_45'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-JYQlMi.i
clang: note: diagnostic msg: /tmp/small-JYQlMi.sh
[regehr at gamow tmp060]$ cat small.c
int g_159;
int g_455;
int g_478;
int g_656;
int g_981;
int
func_45 (p_46)
{
int l_49;
int i;
lbl_1056:for (p_46 = 1; 0;)
{
}
for (i = 0; i < 1; i++);
lbl_1276:for (l_49 = 0; l_49 <= 0; l_49 = 1)
{
if (g_478)
goto lbl_1056;
if (g_159)
continue;
for (p_46 = 0; p_46 <= 0; p_46 = 1)
for (g_981 = 0; g_981 >= 0;)
{
}
}
for (; g_455; g_455 += 0)
for (;;)
{
for (; g_656; g_656 += 0);
break;
}
if (p_46);
else
goto lbl_1276;
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list