<div dir="ltr"><a class="GWVZpf gW" id="IloFPc-0" href="mailto:dberris@google.com" tabindex="-1">+Dean Michael Berris</a> <br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 25, 2017 at 7:01 AM Oleg Ranevskyy via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi Renato, Dean, Serge,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Just looked into the code and wanted to share some thoughts.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg">This might be a compare_exchange_weak spurious failure. ARM is a weakly ordered CPU, but I am not sure whether spurious failures are really possible in a single threaded app. On the other hand, there is no other way for FDRLogging_init to fail in such a way (return XRAY_LOG_UNINITIALIZED instead of XRAY_LOG_INITIALIZED) without any extra output. This is also true for the 2nd test failure in FDRLogging_finalize, which uses a weak exchange too.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Probably, the weak exchange needs to be either replaced with a strong one or looped with more detailed CurrentStatus checks.</div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Oleg</div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Wed, Jan 25, 2017 at 2:02 PM, Renato Golin via llvm-dev <span dir="ltr" class="gmail_msg"><<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dean/Serge,<br class="gmail_msg">
<br class="gmail_msg">
I just spotted this on our bots:<br class="gmail_msg">
<br class="gmail_msg">
First failure, unrelated commit:<br class="gmail_msg">
<a href="http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/3190" rel="noreferrer" class="gmail_msg" target="_blank">http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/3190</a><br class="gmail_msg">
<br class="gmail_msg">
'XRay-Unit :: unit/XRayFDRLoggingTest/FDRLoggingTest.Simple' FAILED<br class="gmail_msg">
llvm/projects/compiler-rt/lib/xray/tests/unit/fdr_logging_test.cc:55: Failure<br class="gmail_msg">
      Expected: FDRLogging_init(kBufferSize, kBufferMax, &Options,<br class="gmail_msg">
sizeof(FDRLoggingOptions))<br class="gmail_msg">
      Which is: 0<br class="gmail_msg">
To be equal to: XRayLogInitStatus::XRAY_LOG_INITIALIZED<br class="gmail_msg">
      Which is: 2<br class="gmail_msg">
[  FAILED  ] FDRLoggingTest.Simple (0 ms)<br class="gmail_msg">
...<br class="gmail_msg">
 1 FAILED TEST<br class="gmail_msg">
==11476==XRay instrumentation map missing. Not initializing XRay.<br class="gmail_msg">
<br class="gmail_msg">
Then a similar, but not identical error:<br class="gmail_msg">
<a href="http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/3191" rel="noreferrer" class="gmail_msg" target="_blank">http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/3191</a><br class="gmail_msg">
<br class="gmail_msg">
'XRay-Unit :: unit/XRayFDRLoggingTest/FDRLoggingTest.Simple' FAILED<br class="gmail_msg">
llvm/projects/compiler-rt/lib/xray/tests/unit/fdr_logging_test.cc:58: Failure<br class="gmail_msg">
      Expected: FDRLogging_finalize()<br class="gmail_msg">
      Which is: 2<br class="gmail_msg">
To be equal to: XRayLogInitStatus::XRAY_LOG_FINALIZED<br class="gmail_msg">
      Which is: 4<br class="gmail_msg">
[  FAILED  ] FDRLoggingTest.Simple (0 ms)<br class="gmail_msg">
...<br class="gmail_msg">
 1 FAILED TEST<br class="gmail_msg">
==11476==XRay instrumentation map missing. Not initializing XRay.<br class="gmail_msg">
<br class="gmail_msg">
Note 0->2 on the first, 2->4 on the second.<br class="gmail_msg">
<br class="gmail_msg">
And then, for no reason, it's green again:<br class="gmail_msg">
<a href="http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/3192" rel="noreferrer" class="gmail_msg" target="_blank">http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/3192</a><br class="gmail_msg">
<br class="gmail_msg">
Looks like an unstable test to me. :)<br class="gmail_msg">
<br class="gmail_msg">
Can you guys have a look?<br class="gmail_msg">
<br class="gmail_msg">
Thanks!<br class="gmail_msg">
--renato<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
LLVM Developers mailing list<br class="gmail_msg">
<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="gmail_msg">
</blockquote></div><br class="gmail_msg"></div></div>
_______________________________________________<br class="gmail_msg">
LLVM Developers mailing list<br class="gmail_msg">
<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="gmail_msg">
</blockquote></div></div>