<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 10, 2016 at 7:19 AM, Richard via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
[Please reply *only* to the list and do not include my email directly<br>
in the To: or Cc: of your reply; otherwise I will not see your reply.<br>
Thanks.]<br>
<br>
In article <<a href="mailto:E1aTA3p-0002aM-4v@shell.xmission.com">E1aTA3p-0002aM-4v@shell.xmission.com</a>>,<br>
<span class="">    Richard via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> writes:<br>
<br>
> make check-all passes for me.  I don't see what the problem is in the logs<br>
> either.<br>
<br>
</span>OK, I found the problem.  Once again, StringRef bites me on the behind.<br>
<br>
I have updated the review in phabricator with the corrected code.<br>
(The review was closed, so apparently it didn't post to the list<br>
when I updated it on phabricator?)<br>
<br>
I surmised that the buildbots do a release build and when I did<br>
check-clang-tools in release, I was able to reproduce the failure.<br>
clang-tidy seg-faults.<br></blockquote><div><br></div><div>An effective way to detect this kind of an error early in the process is to enable ASan in your build (cmake -DLLVM_USE_SANITIZER=Address ...). It might make sense to enable UBSan as well (-DLLVM_USE_SANITIZER=Address;Undefined).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
It would be nice if we could get the build log output to record that<br>
fact in the log.  I suspect it is the way that clang-tidy is invoked<br>
by the check_clang_tidy.py python script.  Somehow the offending SEGV<br>
message is suppressed.<br></blockquote><div><br></div><div>Yeah, that's very unfortunate. I didn't find a way to make the script output this (or similar) message.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5">--<br>
"The Direct3D Graphics Pipeline" free book <<a href="http://tinyurl.com/d3d-pipeline" rel="noreferrer" target="_blank">http://tinyurl.com/d3d-pipeline</a>><br>
     The Computer Graphics Museum <<a href="http://ComputerGraphicsMuseum.org" rel="noreferrer" target="_blank">http://ComputerGraphicsMuseum.org</a>><br>
         The Terminals Wiki <<a href="http://terminals.classiccmp.org" rel="noreferrer" target="_blank">http://terminals.classiccmp.org</a>><br>
  Legalize Adulthood! (my blog) <<a href="http://LegalizeAdulthood.wordpress.com" rel="noreferrer" target="_blank">http://LegalizeAdulthood.wordpress.com</a>><br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>