<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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/">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">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'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><br><div><div>On May 28, 2013, at 10:37 AM, Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>It has come to my attention that we don't have any systems which define "_GLIBCXX_DEBUG" 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">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-developers<br></blockquote></div><br></div></body></html>