<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">As others mentioned, you are trying to mix two tools.<div><br></div><div>There is the clang static analyzer. That's the tool, which uses scan-build. It statically analyzes the code and reports probable bugs (<a href="http://clang-analyzer.llvm.org/">http://clang-analyzer.llvm.org/</a>).</div><div><br></div><div>The Address Sanitizer tool is an alternative to Valgrind. ASan is using compiler-rt and "-faddress-sanitizer" option, which I see in your logs.</div><div><br></div><div>Both tools are bug finding tools but are based on different technology. ASan is dynamic - you find issues while executing the program. ASan almost always produces real issues, but only catches memory issues (is in process of being extended to catch threading issues as well). However, it only produces the issues that are exercisable by your tests. The static analyzer is like a super heavy weight compiler. The static analyzer has a wider variety of checks and does not depend on tests; however, it will produce more false alarms and its analyzes are currently limited to a single translation unit (file).</div><div><br></div><div>Cheers,</div><div>Anna.</div><div><br></div><div><div><div><div>On Apr 20, 2012, at 11:33 AM, Sean McBride wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Fri, 20 Apr 2012 07:56:53 +0200, Plank, Stefan said:<br><br><blockquote type="cite">Just trying to use clang as valgrind alternative and scan-build for<br></blockquote><blockquote type="cite">static code analysis together.<br></blockquote><br>If you're looking for a valgrind alternative, these may be more interesting:<br><<a href="http://clang.llvm.org/docs/AddressSanitizer.html">http://clang.llvm.org/docs/AddressSanitizer.html</a>><br><<a href="http://embed.cs.utah.edu/ioc/">http://embed.cs.utah.edu/ioc/</a>><br><br>Cheers,<br><br>-- <br>____________________________________________________________<br>Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>Rogue Research                        <a href="http://www.rogue-research.com">www.rogue-research.com</a> <br>Mac Software Developer              Montréal, Québec, Canada<br><br><br><br>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></div></blockquote></div><br></div></div></body></html>