[LLVMbugs] [Bug 11335] New: Assertion `HasInsideLoopSuccs && "Loop block has no in-loop successors!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 8 07:46:10 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11335

             Bug #: 11335
           Summary: Assertion `HasInsideLoopSuccs && "Loop block has no
                    in-loop successors!"' 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: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


[regehr at gamow tmp051]$ clang -v

clang version 3.1 (trunk 144028)
Target: x86_64-unknown-linux-gnu
Thread model: posix

[regehr at gamow tmp051]$ clang -O2 small.c

small.c:9:5: warning: tentative array definition assumed to have one element
int g_91[];
    ^
clang:
/uusoc/exports/scratch/regehr/z/compiler-build/llvm-r144028/include/llvm/Analysis/LoopInfo.h:464:
void llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::verifyLoop() const:
Assertion `HasInsideLoopSuccs && "Loop block has no in-loop successors!"'
failed.
0  clang           0x0000000001a2512f
1  clang           0x0000000001a25649
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           0x000000000185c27d llvm::LoopBase<llvm::BasicBlock,
llvm::Loop>::verifyLoop() const + 2317
7  clang           0x000000000185f4d9
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1081
8  clang           0x000000000198e9ff
llvm::FPPassManager::runOnFunction(llvm::Function&) + 351
9  clang           0x0000000001800e14
10 clang           0x000000000198eddb
llvm::MPPassManager::runOnModule(llvm::Module&) + 283
11 clang           0x000000000198f3a1 llvm::PassManagerImpl::run(llvm::Module&)
+ 289
12 clang           0x000000000198f8ba llvm::PassManager::run(llvm::Module&) +
10
13 clang           0x00000000007f404e
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4782
14 clang           0x00000000007f24e3
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 595
15 clang           0x00000000009009e9 clang::ParseAST(clang::Sema&, bool) + 441
16 clang           0x00000000007f1621 clang::CodeGenAction::ExecuteAction() +
865
17 clang           0x00000000006c6907
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
18 clang           0x00000000006af4d0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2848
19 clang           0x00000000006a632e cc1_main(char const**, char const**, char
const*, void*) + 5694
20 clang           0x00000000006ab715 main + 757
21 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
22 clang           0x00000000006a4c29
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r144028-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 -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r144028-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/compiler-install/llvm-gcc-r144028-install/bin/../lib/clang/3.1/include
-internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir
/home/regehr/volatile/bugs/tmp051 -ferror-limit 19 -fmessage-length 100
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/small-VE799Q.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_1'
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-RfO5Lo.i
clang: note: diagnostic msg: /tmp/small-RfO5Lo.sh

[regehr at gamow tmp051]$ cat small.c


int
func_5 (int si1, int si2)
{
  return 0 <= si1 && 1 / si1 ? 1 : 0;
}

int g_2;
int g_82;
int g_91[];
int g_148;
static int func_61 (int);
unsigned char func_85 (char);
int
func_1 ()
{
  for (g_2 = 0; g_2;)
    func_61 (0);
  int i;
  for (i = 0;; i++);
}

int
func_61 (p_62)
{
  int l_361;
  int l_568;
lbl_616:{
    int l_461;
    int i;
    for (i = 0; l_361 <= 0; l_361 = 1)
      {
    for (; l_461; l_461 += 1)
      func_85 (0);
    for (;;)
      {
        if (l_568)
          break;
        return 0;
      }
      }
    for (l_361 = 0;; l_568 += 1)
      if (g_91[0] | func_85 (0))
    goto lbl_616;
  }
}

unsigned char
func_85 (char p_86)
{
  for (; g_82; g_82++)
    for (;;)
      {
    if (func_5 (g_82, 0) != g_2)
      break;
    for (;; g_148--);
      }
  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