[LLVMbugs] [Bug 6487] New: ice: Cannot create empty or backwards range

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 3 20:11:29 PST 2010


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

           Summary: ice: Cannot create empty or backwards range
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu


Seen on Ubuntu 9.10 on x64 using clang r97662.

[regehr at gamow tmp273]$ clang -O2 small.c
clang:
/tmp/z/compiler-build/llvm-r97662/include/llvm/CodeGen/LiveInterval.h:231:
llvm::LiveRange::LiveRange(llvm::SlotIndex, llvm::SlotIndex, llvm::VNInfo*):
Assertion `S < E && "Cannot create empty or backwards range"' failed.
0  clang           0x000000000117320f
1  clang           0x00000000011739fd
2  libpthread.so.0 0x00007f11e745e190
3  libc.so.6       0x00007f11e67644b5 gsignal + 53
4  libc.so.6       0x00007f11e6767f50 abort + 384
5  libc.so.6       0x00007f11e675d481 __assert_fail + 241
6  clang           0x0000000000e5263f
7  clang           0x0000000000e4db7b
8  clang           0x0000000000e4fa69
9  clang           0x0000000000e5036f
10 clang           0x0000000000e50e8e
11 clang           0x0000000000e51d6c
12 clang           0x00000000010fd596
13 clang           0x00000000010fd771
14 clang           0x00000000010fd99e
15 clang           0x0000000000413436
16 clang           0x0000000000413a75
17 clang           0x00000000005f8544
18 clang           0x0000000000416c09
19 clang           0x00000000004095ce
20 clang           0x000000000040c36b main + 1771
21 libc.so.6       0x00007f11e674fabd __libc_start_main + 253
22 clang           0x0000000000407149
Stack dump:
0.    Program arguments:
/tmp/z/compiler-install/llvm-gcc-r97662-install/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/tmp/z/compiler-install/llvm-gcc-r97662-install/lib/clang/1.1 -O2
-fmessage-length 85 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics
-o /tmp/cc-IZAtF0.s -x c small.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Simple Register Coalescing' on function '@int325'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
[regehr at gamow tmp273]$ cat small.c
static unsigned char
foo (unsigned char ui1, unsigned char ui2)
{
  return ui2 == 0 ? : (ui1 % ui2);
}

static unsigned bar (unsigned ui1, unsigned ui2)
{
  return ui2 ? ui1 : (ui1 / ui2);
}

int safe (int);

short g_5;
short *g_37 = &g_5;

void int325 (int * p_66)
{
  short l_71 = 7L;
  if (*p_66 & safe (foo (bar (l_71, *g_37), l_71)), 1)
    {
    }
}
[regehr at gamow tmp273]$ clang -v
clang version 1.1 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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