<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 bus error at optimization level 1 or higher"
   href="https://bugs.llvm.org/show_bug.cgi?id=33127">33127</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang bus error at optimization level 1 or higher
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>OpenBSD
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Todd.Miller@courtesan.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18488" name="attach_18488" title="qsort_test.c (unprocessed)">attachment 18488</a> <a href="attachment.cgi?id=18488&action=edit" title="qsort_test.c (unprocessed)">[details]</a></span>
qsort_test.c (unprocessed)

$ /usr/local/bin/clang -v -O1 -c /usr/src/regress/lib/libc/qsort/qsort_test.c
clang version 4.0.0 (tags/RELEASE_400/final)
Target: amd64-unknown-openbsd6.1
Thread model: posix
InstalledDir: /usr/local/bin
 "/usr/local/bin/clang-4.0" -cc1 -triple amd64-unknown-openbsd6.1 -emit-obj
-disable-free -disable-llvm-verifier -discard-value-names -main-file-name
qsort_test.c -mrelocation-model pic -pic-level 1 -pic-is-pie -mthread-model
posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -v -dwarf-column-info -debugger-tuning=gdb
-coverage-notes-file /usr/src/regress/lib/libc/qsort/qsort_test.gcno
-resource-dir /usr/local/bin/../lib/clang/4.0.0 -O1 -fdebug-compilation-dir
/usr/src/regress/lib/libc/qsort -ferror-limit 19 -fmessage-length 80
-stack-protector 2 -fobjc-runtime=gnustep -fdiagnostics-show-option -o
qsort_test.o -x c /usr/src/regress/lib/libc/qsort/qsort_test.c
clang -cc1 version 4.0.0 based upon LLVM 4.0.0 default target
amd64-unknown-openbsd6.1
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/bin/../lib/clang/4.0.0/include
 /usr/include
End of search list.
clang-4.0: error: unable to execute command: Bus error (core dumped)
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0 (tags/RELEASE_400/final)
Target: amd64-unknown-openbsd6.1
Thread model: posix
InstalledDir: /usr/local/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/qsort_test-108960.c
clang-4.0: note: diagnostic msg: /tmp/qsort_test-108960.sh
clang-4.0: note: diagnostic msg:

********************
xerxes [/usr/src/regress/lib/libc/qsort] %</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>