[llvm-bugs] [Bug 34433] New: polly crashes with "opt -jump-threading -gvn -polly-dependences": running pass 'Polly - Detect static control parts (SCoPs)'

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 2 17:50:38 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34433

            Bug ID: 34433
           Summary: polly crashes with "opt -jump-threading -gvn
                    -polly-dependences": running pass 'Polly - Detect
                    static control parts (SCoPs)'
           Product: Polly
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Optimizer
          Assignee: polly-dev at googlegroups.com
          Reporter: su at cs.ucdavis.edu
                CC: llvm-bugs at lists.llvm.org

$ clangpolly -v
clang version 6.0.0 (http://llvm.org/git/clang.git
48231c128c697271508e83b487d436a071e62f09) (http://llvm.org/git/llvm.git
aedd47f9e210dc3ce82a1f885043d7d005b52dd7)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/su/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ clangpolly -O3 -mllvm -disable-llvm-optzns -c -emit-llvm -o small.bc small.c
$ optpolly -jump-threading -gvn -polly-dependences -o small-opt.bc small.bc
#0 0x00000000038af852 (optpolly+0x38af852)
#1 0x00000000038af8e3 (optpolly+0x38af8e3)
#2 0x00000000038adcf8 (optpolly+0x38adcf8)
#3 0x00000000038af1d5 (optpolly+0x38af1d5)
#4 0x00007fdfe4683330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#5 0x0000000003110a18 (optpolly+0x3110a18)
#6 0x0000000003ca492d (optpolly+0x3ca492d)
#7 0x0000000003bef5c2 (optpolly+0x3bef5c2)
#8 0x0000000003bf11fd (optpolly+0x3bf11fd)
#9 0x0000000003bf1ce2 (optpolly+0x3bf1ce2)
#10 0x0000000003bf09a4 (optpolly+0x3bf09a4)
#11 0x0000000003bf0aa6 (optpolly+0x3bf0aa6)
#12 0x0000000003bebb4b (optpolly+0x3bebb4b)
#13 0x0000000003bf2ac5 (optpolly+0x3bf2ac5)
#14 0x0000000003193724 (optpolly+0x3193724)
#15 0x00000000031938b7 (optpolly+0x31938b7)
#16 0x0000000003193c52 (optpolly+0x3193c52)
#17 0x00000000031943a9 (optpolly+0x31943a9)
#18 0x00000000031945e9 (optpolly+0x31945e9)
#19 0x00000000017fe118 (optpolly+0x17fe118)
#20 0x00007fdfe3456f45 __libc_start_main
/build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:321:0
#21 0x00000000017d7a29 (optpolly+0x17d7a29)
Stack dump:
0.      Program arguments: optpolly -jump-threading -gvn -polly-dependences -o
small-opt.bc small.bc 
1.      Running pass 'Function Pass Manager' on module 'small.bc'.
2.      Running pass 'Polly - Detect static control parts (SCoPs)' on function
'@foo'
Segmentation fault (core dumped)
$ 


-----------------------------------


int a, b, c, d;
unsigned short e;

void foo ()
{
  while (c) 
    for (d = 0; d < 0; d = e)
      while (b)
        while (a)
          ;
}

int main ()
{
  foo ();
  return 0;
}

-- 
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/20170903/bf3c2fe8/attachment.html>


More information about the llvm-bugs mailing list