[LLVMbugs] [Bug 14133] New: Segmentation fault running pass 'Basic Block Vectorization'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Oct 20 08:30:49 PDT 2012


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

             Bug #: 14133
           Summary: Segmentation fault running pass 'Basic Block
                    Vectorization'
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: merkil at savhon.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


With LLVM/Clang as of 166293 :

$ cat vectorize.c
int a, b, c, d;

void f(void)
{
    unsigned long long int *p1, *l = 1;
    int i;
    a = 1;

    if(d)
    {
        if(c)
            a /= *l;

        while(*l);
    }

    if(!(b < 0 ? c : a))
        c = 0;

    for(;; i++)
        (c += i) && a < 0 ? : (*p1 = 0);
}


$ clang -O3 -mllvm -vectorize vectorize.c -w
0  clang           0x0000000001a7ce5f
1  clang           0x0000000001a7d343
2  libpthread.so.0 0x00007f42a14dd970
3  clang           0x00000000011fb1f8
4  clang           0x00000000011f9533
5  clang           0x0000000001204407
6  clang           0x00000000019e39a9
7  clang           0x00000000019e3fcd
Stack dump:
0.    Program arguments: /home/merkil/git/clang/build/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
vectorize.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22.90.20120727 -momit-leaf-frame-pointer -resource-dir
/home/merkil/git/clang/build/Release+Asserts/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/home/merkil/git/clang/build/Release+Asserts/bin/../lib/clang/3.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-w -fdebug-compilation-dir /home/merkil -ferror-limit 19 -fmessage-length 0
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -mllvm -vectorize
-o /tmp/vectorize-Sqi2jN.o -x c vectorize.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'vectorize.c'.
4.    Running pass 'BasicBlock Pass Manager' on function '@f'
5.    Running pass 'Basic-Block Vectorization' on basic block '%for.cond.us'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 166290) (llvm/trunk 166293)
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