<div dir="rtl"><div dir="ltr">I'm trying to understand why the buildbot sanitizer-ppc64-linux1 fails due to my latest patch. It was in llvm::GlobalValue while the reported failure is:</div><div dir="ltr"><br></div><div dir="ltr"><font face="monospace, monospace"><span style="color:rgb(0,0,0)">strcspn-2.c.tmp: /home/buildbots/sanitizerslave1/sanitizer-ppc64-1/build/llvm/projects/compiler-rt/test/asan/TestCases/strcspn-2.c:17: int main(int, char **): Assertion `r == sizeof(s1) - 1' failed.</span><br></font></div><div dir="ltr"><div><span class=""><br></span></div><div><span class="">where strcspn-2.c (below) tests the strcspn function and does not use any header from LLVM, completely unrelated to GlobalValue.</span></div><div>Yet, the buildbot reports that r239457 and r239458 were built OK and the failure started in my patch r239459:<br></div><div><span class=""><br></span></div><div><span class="">  <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_builders_sanitizer-2Dppc64-2Dlinux1&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=S-5YuPs3FALdQD9NYz8ZlrehvcP-0uPrV-aAC0y50Rg&s=DhcAzC2R3l2mSCGtXHPO5qRmXO_ci6ifAbCQNPzvxjk&e=">http://lab.llvm.org:8011/builders/sanitizer-ppc64-linux1</a><br></span></div><div><span class=""><br></span></div><div>Why is the builbot blaiming r239459? is this a buildbot bug?</div><div><span class=""><br></span></div><div><span class="">Yaron</span></div><div><span class=""><br></span></div><div><span class=""><br></span></div><div><span class="">strcspn-2.c<br></span></div><div><span class="">====================</span></div><div><span class=""><div><font face="monospace, monospace">// Test stopset overflow in strcspn function</font></div><div><font face="monospace, monospace">// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">// Test intercept_strcspn asan option</font></div><div><font face="monospace, monospace">// RUN: ASAN_OPTIONS=intercept_strspn=false %run %t 2>&1</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">#include <assert.h></font></div><div><font face="monospace, monospace">#include <string.h></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">int main(int argc, char **argv) {</font></div><div><font face="monospace, monospace">  size_t r;</font></div><div><font face="monospace, monospace">  char s1[] = "ab";</font></div><div><font face="monospace, monospace">  char s2[] = {'c', 'd'};</font></div><div><font face="monospace, monospace">  char s3 = 0;</font></div><div><font face="monospace, monospace">  r = strcspn(s1, s2);</font></div><div><font face="monospace, monospace">  // CHECK:'s{{[2|3]}}' <== Memory access at offset {{[0-9]+ .*}}flows this variable</font></div><div><font face="monospace, monospace">  assert(r == sizeof(s1) - 1);</font></div><div><font face="monospace, monospace">  return 0;</font></div><div><font face="monospace, monospace">}</font></div><div><br></div></span></div><div><span class=""><br></span></div><br><br>Buildbot report</div><div dir="ltr">===========================</div><div dir="ltr"><br></div><div dir="ltr">From: <<a href="mailto:llvm.buildmaster@lab.llvm.org">llvm.buildmaster@lab.llvm.org</a>><br>Date: 2015-06-10 9:59 GMT+03:00<br>Subject: buildbot failure in LLVM on sanitizer-ppc64-linux1<br>To: Yaron Keren ‫‎<<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>>‎‬<br>Cc: ‫<a href="mailto:gkistanova@gmail.com">gkistanova@gmail.com</a>‬<br><br>The Buildbot has detected a new failure on builder sanitizer-ppc64-linux1 while building llvm.<br>Full details are available at:<br> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_builders_sanitizer-2Dppc64-2Dlinux1_builds_7369&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=S-5YuPs3FALdQD9NYz8ZlrehvcP-0uPrV-aAC0y50Rg&s=jge8a-jJWot9--Sdv2UFDfm65kKDqtgMDSaCfmqwmFc&e=">http://lab.llvm.org:8011/builders/sanitizer-ppc64-linux1/builds/7369</a><br><br>Buildbot URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=S-5YuPs3FALdQD9NYz8ZlrehvcP-0uPrV-aAC0y50Rg&s=eBpA-t2PByZSWbYlqWzH55Jrl0UQtC9qRv_Ev3fQKnU&e=">http://lab.llvm.org:8011/</a><br><br>Buildslave for this Build: sanitizer-ppc64-1<br><br>Build Reason: scheduler<br>Build Source Stamp: [branch trunk] 239459<br>Blamelist: yrnkrn<br><br>BUILD FAILED: failed annotate failed run asan-dynamic tests<br><br>sincerely,<br> -The Buildbot<br></div></div>