<div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What's the goal of this stub? Why is it needed, and how will it fit into the bigger picture?</blockquote>
<div><br></div><div>Dynamic tools (AddressSanitizer and ThreadSanitizer) need to symbolize code locations to produce fine stack traces. AddressSanitizer now uses a .py script that runs addr2line on a printed report after the program exits. ThreadSanitizer behaves even worse - AFAIR it starts several addr2line processes and talks with them via pipe as, unlike ASan, it needs to symbolize stack traces at run-time to use suppression machinery. It would be nice</div>
<div>to have a single run-time symbolization machinery that could use a DWARF data in the binary.</div><div><br></div><div>There is an interface to parse DWARF and fetch data from it (it is located in llvm/DebugInfo/DIContext.h) that we would like to call from the symbolizer. That would require using llvm code from compiler-rt, but that's another problem (see thread in llvmdev).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>You use '__' in an identifier -- that's not allowed outside of the standard library.</div>
</blockquote><div><br></div><div>See response from Kostya.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Also, you have comments that don't agree with the file names, and comments that don't make a lot af sense (Why is including system headers bad? What is mini_libc?). It almost looks like this is cribbed from some other codebase???</div>
</blockquote><div><br></div><div>Fixed comments in files and made them more descriptive.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br><div class="gmail_quote"><div><div class="h5">On Thu, May 31, 2012 at 4:22 AM, Alexey Samsonov <span dir="ltr"><<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<div><br></div><div>This patch adds a stub for LLVM-based symbolizer that is intended to be used in {Address,Thread}Sanitizer.<br><div><div><br></div><div>--</div><div>Alexey Samsonov, MSK</div>
</div></div>
<br></div></div>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>