[LLVMbugs] [Bug 11350] New: Assertion `N <= Simplified.size() && "runaway iteration"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 9 12:40:19 PST 2011


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

             Bug #: 11350
           Summary: Assertion `N <= Simplified.size() && "runaway
                    iteration"' 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 tmp054]$ clang -v

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

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

clang: SimplifyIndVar.cpp:351:
void<unnamed>::SimplifyIndvar::simplifyUsers(llvm::PHINode*, llvm::IVVisitor*):
Assertion `N <= Simplified.size() && "runaway iteration"' failed.
0  clang           0x0000000001cf4f9f
1  clang           0x0000000001cf7212
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           0x0000000001a7dfd8 llvm::simplifyUsersOfIV(llvm::PHINode*,
llvm::ScalarEvolution*, llvm::LPPassManager*,
llvm::SmallVectorImpl<llvm::WeakVH>&, llvm::IVVisitor*) + 2872
7  clang           0x000000000194a878
8  clang           0x000000000194d171
9  clang           0x0000000001af1b57
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1287
10 clang           0x0000000001c49b0b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
11 clang           0x0000000001a856ad
12 clang           0x0000000001c49607
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
13 clang           0x0000000001c4979b llvm::PassManagerImpl::run(llvm::Module&)
+ 187
14 clang           0x00000000008308b1
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1505
15 clang           0x000000000082e081
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 353
16 clang           0x000000000097a2ff clang::ParseAST(clang::Sema&, bool) + 431
17 clang           0x000000000082cc64 clang::CodeGenAction::ExecuteAction() +
68
18 clang           0x00000000006ec265
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 373
19 clang           0x00000000006cffc9
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1401
20 clang           0x00000000006c6257 cc1_main(char const**, char const**, char
const*, void*) + 791
21 clang           0x00000000006ced97 main + 7175
22 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
23 clang           0x00000000006c3e59
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/tmp054 -ferror-limit 19
-fmessage-length 97 -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_37'
5.    Running pass 'Induction Variable Simplification' on basic block
'%for.cond.outer'
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-XAPfQt.i
clang: note: diagnostic msg: /tmp/small-XAPfQt.sh

[regehr at gamow tmp054]$ cat small.c


int
func_8 (int si1, int si2)
{
  return si1;
}

int g_106;
int g_152;
int g_251;
int g_494;
int g_509;
static const int func_37 (int, unsigned short, int, unsigned, unsigned short);
int func_44 ();
const unsigned char func_67 (int, unsigned);
int
func_1 ()
{
  int l_3;
  for (l_3 = 0;; l_3--)
    if (func_37 (0, 0, 0, 1, 0))
      {
      }
}

const int
func_37 (int p_38, unsigned short p_39, int p_40, unsigned p_41,
     unsigned short p_42)
{
  if (func_44 ())
    {
      int l_774[][1] = {
    1
      };
      for (;;)
    if (l_774[0][g_251])
      {
        for (g_494 = 0; g_494; g_494++)
          0 <= g_494 && (p_41 = 0);
        g_509 = p_41 == func_67 (p_41, 0);
      }
    else
      for (;; g_494++)
        {
          if (g_106)
        break;
          return 0;
        }
    }
  return 0;
}

const unsigned char
func_67 (int p_68, unsigned p_69)
{
  g_152 = func_8 (0 <= p_68, 0);
  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