<div dir="ltr">Do you have a bot that provides an up-to-date list of these reports? r207031 probably fixes many of the convertCommentToXML stacks.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 6:25 AM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Manuel mentions that clang has some intentional leaks.<br></div><div>That's right, and we handle them using BuryPointer (./lib/Frontend/CompilerInvocation.cpp).</div>
<div>So if there are more *intentional* leaks we need to bury them too to let LSan find the interesting ones.</div>
<div><br></div><div>--kcc </div><div><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 4:25 PM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi, </span><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div><div>TL;DR: there are tons of leaks in Clang, please help us fix them. <br>
<div><br></div><div>We have a <a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap" target="_blank">build bot</a> that runs clang bootstrap under <a href="http://clang.llvm.org/docs/AddressSanitizer.html" target="_blank">AddressSanitizer</a> (ASan). </div>


<div><a href="http://clang.llvm.org/docs/LeakSanitizer.html" target="_blank">LeakSanitizer</a> (LSan, a leak detector that runs as part of ASan) is enabled on that bot,<br></div><div>but as we've learned today only on part of the bootstrap actually runs LSan.</div>


<div>LSan is enabled by the env. var ASAN_OPTIONS=detect_leaks=1 and we have <br></div><div>this env. var. set on the bot so the 3-rd stage build uses it.</div><div>However the lit runner clears the environment and the lit</div>


<div>tests were not running under lsan until today, when I tried to enable lsan by default.</div><br>This has discovered tons of leaks and I reverted the change. <br>The leaks happen in various modes that are not exercised during regular self-compilation on linux,  <br>


e.g. static analyzer, -emit-llvm, Windows ABI, etc.<br>I've filed a few bugs (19520 19522 19523 19524) but there are dozens more reports left. <br><br></div></div>If you care about leaks in clang, please check <a href="http://llvm.org/bugs/attachment.cgi?id=12423" target="_blank">http://llvm.org/bugs/attachment.cgi?id=12423</a> </div>


<div style="font-family:arial,sans-serif;font-size:13px">and see if any of these leaks are in your code. <br><br>Thanks, <br><br>--kcc</div></div>
</blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>