<div dir="ltr"><div><br></div>Sean is the debug flags master. For VTK, he has enabled most everything and found lots of issues. I&#39;ll let him comment on his experiences...<br><br><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, May 28, 2013 at 2:16 PM, Bradley Lowekamp <span dir="ltr">&lt;<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Hi,</div><div><br></div><div>I am looking through more gcc debug flags and I have come across a couple interesting new ones with gcc 4.8:</div><div><br></div><div><dt style="font-family:Times">
<code>-fsanitize=address</code></dt><dd style="font-family:Times">Enable AddressSanitizer, a fast memory error detector. Memory access instructions will be instrumented to detect out-of-bounds and use-after-free bugs. See <a href="http://code.google.com/p/address-sanitizer/" target="_blank">http://code.google.com/p/address-sanitizer/</a> for more details. <br>
</dd><dt style="font-family:Times"><code>-fsanitize=thread</code></dt><dd style="font-family:Times">Enable ThreadSanitizer, a fast data race detector. Memory access instructions will be instrumented to detect data race bugs. See <a href="http://code.google.com/p/data-race-test/wiki/ThreadSanitizer" target="_blank">http://code.google.com/p/data-race-test/wiki/ThreadSanitizer</a> for more details. </dd>
<div><br></div></div><div><br></div><div>It looks like they are ported from clang/llvm projects. They looks quite useful!</div><div><br></div><div>I&#39;d be curios if any one has tried them out in clang or gcc, and what they think of them.</div>
<div><br></div><div>Brad</div><div><div class="h5"><div><br><div><div>On May 28, 2013, at 10:37 AM, Bradley Lowekamp &lt;<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>&gt; wrote:</div><br>
<blockquote type="cite">Hello,<br><br>It has come to my attention that we don&#39;t have any systems which define &quot;_GLIBCXX_DEBUG&quot; on the dashboard or in the robot builds. This is a very useful option to add for testing. It can detect things like going pass the end with iterators :)<br>
<br>I am going to add this flag to some of my dashboard builds.<br><br>Brad <br>_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>