<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 - ASan failures within LLVM using new pass manager"
   href="https://bugs.llvm.org/show_bug.cgi?id=46608">46608</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ASan failures within LLVM using new pass manager
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>jistone@redhat.com
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cmake -G Ninja \
  -DCMAKE_INSTALL_PREFIX=${HOME}/${LLVM_INSTALL}/llvm-install-release \
  -DLLVM_ENABLE_ASSERTIONS=ON \
  -DCMAKE_BUILD_TYPE=Debug \
  -DCMAKE_C_COMPILER=clang  \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=ON \
  -DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt;mlir" \
  -DLLVM_EXTERNAL_PROJECTS="clang;lld;compiler-rt;mlir" \
  -DLLVM_ENABLE_LLD=1 \
  -DLLVM_USE_SANITIZER=Address \
  ../llvm

$ ninja check-all

Some tests seem to fail when LLVM itself is built with ASan and when the new
pass manager is enabled. Likely there is some UB in LLVM.

Some examples:
  MLIR-Unit ::
Dialect/SPIRV/./MLIRSPIRVTests/DeserializationTest.EmptyModuleFailure
  Builtins-x86_64-linux :: absvdi2_test.c
  CRT-x86_64-linux :: ctor_dtor.c
  Clang :: Driver/fuse-ld.c</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>