<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang segmentation fault slp-vectorize"
   href="http://llvm.org/bugs/show_bug.cgi?id=21944">21944</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang segmentation fault slp-vectorize
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chh@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13559" name="attach_13559" title="script and preprocessed source input to reproduce the bug">attachment 13559</a> <a href="attachment.cgi?id=13559&action=edit" title="script and preprocessed source input to reproduce the bug">[details]</a></span>
script and preprocessed source input to reproduce the bug

When compiling Android Open Source for aosp_fugu-userdebug target, clang has a
segmentation fault:

1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'system/core/libmincrypt/p256_ec.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@felem_square'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6 
Target: i686--linux-android
Thread model: posix



Attached p256.zip file contains the reproducible data p256_ec-872742.{c,sh}


I can avoid the segmentation fault by turning off slp-vectorize, compiled with
-fno-slp-vectorize.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>