<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 12:50 PM, Mike Aizatsky <span dir="ltr"><<a href="mailto:aizatsky@google.com" target="_blank">aizatsky@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Justin,<div><br></div><div>I haven't seen this before. I suspect it is because of line-tables-only. Can you try it with full debug info?</div></div></blockquote><div><br></div><div>That would be strange. </div><div><span style="font-size:12.8px">-gline-tables-only is *the* recommended flag for all of the sanitizers, I'd expect it to work. </span><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><br><div class="gmail_quote"><div dir="ltr">On Tue, Mar 7, 2017 at 12:36 PM Kostya Serebryany <<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="gmail-m_5721128255951702312gmail_msg">+aizatsky</div><div class="gmail_extra gmail-m_5721128255951702312gmail_msg"><br class="gmail-m_5721128255951702312gmail_msg"><div class="gmail_quote gmail-m_5721128255951702312gmail_msg">On Tue, Mar 7, 2017 at 12:34 PM, Justin Bogner <span dir="ltr" class="gmail-m_5721128255951702312gmail_msg"><<a href="mailto:mail@justinbogner.com" class="gmail-m_5721128255951702312gmail_msg" target="_blank">mail@justinbogner.com</a>></span> wrote:<br class="gmail-m_5721128255951702312gmail_msg"><blockquote class="gmail_quote gmail-m_5721128255951702312gmail_msg" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm working on a fuzzer using libFuzzer and I wanted to take a look at<br class="gmail-m_5721128255951702312gmail_msg">
how my coverage was doing, as per the instructions here:<br class="gmail-m_5721128255951702312gmail_msg">
<br class="gmail-m_5721128255951702312gmail_msg">
  <a href="http://llvm.org/docs/LibFuzzer.html#how-good-is-my-fuzzer" rel="noreferrer" class="gmail-m_5721128255951702312gmail_msg" target="_blank">http://llvm.org/docs/<wbr>LibFuzzer.html#how-good-is-my-<wbr>fuzzer</a><br class="gmail-m_5721128255951702312gmail_msg">
<br class="gmail-m_5721128255951702312gmail_msg">
First of all, I suspect the instructions there are out of date, but<br class="gmail-m_5721128255951702312gmail_msg">
passing -dump_coverage=1 to the binary rather than setting ASAN_OPTIONS<br class="gmail-m_5721128255951702312gmail_msg">
generated a .sancov file for me.<br class="gmail-m_5721128255951702312gmail_msg">
<br class="gmail-m_5721128255951702312gmail_msg">
However, when I inspect this with the sancov tool, all of the line<br class="gmail-m_5721128255951702312gmail_msg">
numbers it reports are "<invalid>:0". I can list the covered and<br class="gmail-m_5721128255951702312gmail_msg">
uncovered functions successfully, but without locations it's really hard<br class="gmail-m_5721128255951702312gmail_msg">
to do anything with that information.<br class="gmail-m_5721128255951702312gmail_msg">
<br class="gmail-m_5721128255951702312gmail_msg">
I've built with -gline-tables-only, as is the default when building llvm<br class="gmail-m_5721128255951702312gmail_msg">
with sanitizers enabled.<br class="gmail-m_5721128255951702312gmail_msg">
<br class="gmail-m_5721128255951702312gmail_msg">
Have you seen this before? Am I doing something obviously wrong?<br class="gmail-m_5721128255951702312gmail_msg">
</blockquote></div><br class="gmail-m_5721128255951702312gmail_msg"></div>
</blockquote></div></div></div><span class="gmail-HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div><div dir="ltr">Mike<br>Sent from phone</div></div>
</font></span></blockquote></div><br></div></div>