<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 - Apple Clang bundled with Xcode 8 does not reject -fsanitize=undefined when it should"
   href="https://bugs.llvm.org/show_bug.cgi?id=33201">33201</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Apple Clang bundled with Xcode 8 does not reject -fsanitize=undefined when it should
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>noloader@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We are testing with the Undefined Behavior sanitizer on Travis CI. Travis
provides OS X with Xcode 8.2.

Our build results in (<a href="https://travis-ci.org/noloader/cryptopp/jobs/236976227">https://travis-ci.org/noloader/cryptopp/jobs/236976227</a>):

ld: file not found:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [cryptest.exe] Error 1


If Clang cannot compile/link a program with Undefined Behavior sanitizer, then
it should reject -fsanitize=undefined and fail the compile.

We cannot use -fsanitize=address,undefined because Address Santizier has some
bugs, and it produces incorrect results with GCC inline assembly when ebp/rbp
is used as a general purpose register. Effectively we had to suspend Asan
testing and only use Valgrind.

-----

My apologies for filing an Apple Clang bug in the LLVM bug tracker. We don't
have an iTunes account, so this is the only way we know to bring it to the
Apple developers attention.</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>