<div dir="ltr">Hi, <div><br></div><div>We are trying to enable LeakSanitizer on our asan/msan llvm bootstrap bot</div><div>(<a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/</a>).</div>
<div>In clang itself there are two leaks </div><div>(<a href="http://llvm.org/bugs/show_bug.cgi?id=18318">http://llvm.org/bugs/show_bug.cgi?id=18318</a>, <a href="http://llvm-reviews.chandlerc.com/D2472">http://llvm-reviews.chandlerc.com/D2472</a>)<span style="font-size:13px;font-family:Arial,Helvetica,sans-serif"> </span></div>
<div><span style="font-size:13px;font-family:Arial,Helvetica,sans-serif">and one lsan-hostile feature (</span><font face="Arial, Helvetica, sans-serif"><a href="http://llvm.org/bugs/show_bug.cgi?id=18320">http://llvm.org/bugs/show_bug.cgi?id=18320</a>),</font></div>
<div><font face="Arial, Helvetica, sans-serif">all of which are easy to fix.</font></div><div><font face="Arial, Helvetica, sans-serif"><br></font></div><div><font face="Arial, Helvetica, sans-serif">And there are also lots of leaks in TableGen.</font></div>
<div><font face="Arial, Helvetica, sans-serif">Would anyone be interested in fixing </font><span style="font-family:Arial,Helvetica,sans-serif">TableGen leaks?</span></div><div><span style="font-family:Arial,Helvetica,sans-serif">I'd guess not since TableGen is not a user-facing utility, leaks there are not too harmful.</span></div>
<div><span style="font-family:Arial,Helvetica,sans-serif">If so, I'd like to disable lsan for </span><span style="font-family:Arial,Helvetica,sans-serif">TableGen so that </span></div><div><span style="font-family:Arial,Helvetica,sans-serif">we can enable lsan on the bootstrap bot </span><span style="font-family:Arial,Helvetica,sans-serif">soon. Objections? </span></div>
<div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">--kcc </span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div>
<div><span style="font-family:Arial,Helvetica,sans-serif"><div>Index: utils/TableGen/TableGen.cpp</div><div>===================================================================</div><div>--- utils/TableGen/TableGen.cpp (revision 198007)</div>
<div>+++ utils/TableGen/TableGen.cpp (working copy)</div><div>@@ -180,3 +180,7 @@</div><div> </div><div>   return TableGenMain(argv[0], &LLVMTableGenMain);</div><div> }</div><div>+</div><div>+extern "C" {</div>
<div>+int __lsan_is_turned_off() { return 1; }</div><div>+}  // extern "C"</div><div>Index: tools/clang/utils/TableGen/TableGen.cpp</div><div>===================================================================</div>
<div>--- tools/clang/utils/TableGen/TableGen.cpp     (revision 198007)</div><div>+++ tools/clang/utils/TableGen/TableGen.cpp     (working copy)</div><div>@@ -248,3 +248,7 @@</div><div> </div><div>   return TableGenMain(argv[0], &ClangTableGenMain);</div>
<div> }</div><div>+</div><div>+extern "C" {</div><div>+int __lsan_is_turned_off() { return 1; }</div><div>+}  // extern "C"</div><div><br></div></span></div><div><font face="Arial, Helvetica, sans-serif"><br>
</font></div><div><font face="Arial, Helvetica, sans-serif"><br></font></div></div>