<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 --- - Enable LeakSanitizer by default and make clang bootstrap LeakSanitizer-clean"
   href="http://llvm.org/bugs/show_bug.cgi?id=19521">19521</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Enable LeakSanitizer by default and make clang bootstrap LeakSanitizer-clean
          </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>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>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kcc@google.com
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>earthdok@google.com, llvmbugs@cs.uiuc.edu, samsonov@google.com
          </td>
        </tr>

        <tr>
          <th>Depends on</th>
          <td>19520
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is a meta bug for cleaning up clang from leaks.
If we enable lsan by default there will be quite a few leaks during
the clang bootstrap -- we need to clean them first. 

reproduce on x86_64 linux: 

1. Enable lsan by editing projects/compiler-rt/lib/asan/asan_rtl.cc
-  cf->detect_leaks = false;  // CAN_SANITIZE_LEAKS;
+  cf->detect_leaks = CAN_SANITIZE_LEAKS;
You can not achieve the same by setting ASAN_OPTIONS because the lit runner
strips env vars. 

2. Build clang
3. Build another clang using the clang from step 2 with
-DLLVM_USE_SANITIZER=Address 
4. Run "make check-clang check-llvm"</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>