Hi Umesh, <div><br></div><div>Yes, asan dies on the first detected error. </div><div>This is our design choice and there is no flag to override this. </div><div><br></div><div>If curious, these are the reasons behind such choice: </div>
<div>1. The call to the error reporting routine inserted by asan is marked as noreturn, which makes the tool ~6-7% faster. </div><div>2. Bugs detectable by asan are almost always very serious, whereas Valgrind/memcheck can report not-that-serious bugs (e.g. leaks)</div>
<div><br></div><div>Hope this helps, </div><div>--kcc <br><br><div class="gmail_quote">On Fri, May 25, 2012 at 3:57 PM, Umesh Kalappa <span dir="ltr"><<a href="mailto:umesh.kalappa0@gmail.com" target="_blank">umesh.kalappa0@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All ,<div><br></div><div>I'm not sure the question is relevant to the forum,My apologies if not </div><div><br></div>
<div>We are trying to instrument our code with <span style><font face="arial, sans-serif"><span style="line-height:16px">ASan(Clang) to find the memory errors and we see that the application execution halts when the Asan check finds the memory issue at the being. Which mean we need to fix the issue then compile and execute the instrumented code again to find the next issue and so on .Which is fine.</span></font></span></div>
<div><span style><font face="arial, sans-serif"><span style="line-height:16px"><br></span></font></span></div><div><span style><font face="arial, sans-serif"><span style="line-height:16px">We would like to know that there is any option to clang or llvm ,Where we can say to Asan to log output to the file and continue to execute the instrumented application instead of halting the same.Like Valgrind memcheck has.So we can whole or almost issues in the log .</span></font></span></div>
<div><span style><font face="arial, sans-serif"><span style="line-height:16px"><br></span></font></span></div><div><span style><font face="arial, sans-serif"><span style="line-height:16px">For you reference </span></font></span></div>
<div><font face="arial, sans-serif"><span style="line-height:16px">I'm using the clang version as </span></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="arial, sans-serif"><span style="line-height:16px"><div>
[root@localhost ~]# clang --version</div></span></font></div><div><font face="arial, sans-serif"><span style="line-height:16px"><div>clang version 3.2 (trunk)</div></span></font></div><div><font face="arial, sans-serif"><span style="line-height:16px"><div>
Target: i386-pc-linux-gnu</div></span></font></div><div><font face="arial, sans-serif"><span style="line-height:16px"><div>Thread model: posix</div></span></font></div></blockquote><div><font face="arial, sans-serif"><span style="line-height:16px"><div>
<br></div></span></font></div><div><font face="arial, sans-serif"><span style="line-height:16px">On OS </span></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="arial, sans-serif"><span style="line-height:16px">Centos -6 </span></font></div>
<div><font face="arial, sans-serif"><span style="line-height:16px"><div>[root@localhost ~]# uname -a</div></span></font></div><div><font face="arial, sans-serif"><span style="line-height:16px"><div>Linux localhost.localdomain 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux</div>
</span></font></div></blockquote><div><font face="arial, sans-serif"><span style="line-height:16px"><div><br></div></span></font></div><div><span style="font-family:arial,sans-serif;line-height:16px">Thanks </span></div>
<span class="HOEnZb"><font color="#888888"><div>
<font face="arial, sans-serif"><span style="line-height:16px">~Umesh </span></font></div><div><font face="arial, sans-serif"><span style="line-height:16px"><br></span></font></div><div><span style><font face="arial, sans-serif"><span style="line-height:16px"><br>
</span></font></span></div>
</font></span><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>