<div dir="ltr"><div class="gmail_extra">+Bill Schmidt<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 4, 2014 at 5:39 PM, Samuel F Antao <span dir="ltr"><<a href="mailto:sfantao@us.ibm.com" target="_blank">sfantao@us.ibm.com</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"><div>
<p><font face="sans-serif">Hi all,</font><br>
<br>
<font face="sans-serif">I have been experiencing the failure of the address sanitizer regression tests for a PPC64 target (Power7 machine). My understanding is that most of the failures are related with the fact the stack is not being dumped. </font><br>

<br>
<font face="sans-serif">I tried to understand what might be wrong and started by looking into the null_deref.cc test as it hangs during the test run.  I observe that after the detection of the faulty memory access it receives a SEGV after entering ReportSIGSEGV() more precisely when it gets to the __intercept_strlen() and tries to access  flags()->replace_str. The caller of __intercept_strlen() is get_cie_encoding() from libgcc (version 4.8.2 in my system).</font><br>

<br>
<font face="sans-serif">As I am not familiar with the sanitizer implementation, I was wondering if this is an expected failure for PPC targets due to some incomplete implementation, an unexpected bug, or due to some misconfiguration in the Clang/LLVM build for PPC targets.</font><br>

<br>
<font face="sans-serif">Has anyone experienced a similar issue? </font></p></div></blockquote><div><br></div><div>Sanitizer used to work on PPC at some point, but currently it fails on most of the tests from "check-asan" test suite on the PowerPC buildbot (<a href="http://lab.llvm.org:8011/builders/sanitizer-ppc64-linux1">http://lab.llvm.org:8011/builders/sanitizer-ppc64-linux1</a>).</div>
<div>I can't really diagnose the issue from your description. <span style="font-family:sans-serif">flags() is just a pointer to a global variable, so I don't see why access to </span><span style="font-family:sans-serif">flags()->replace_str will segfault.</span></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><p><br>
<br>
<font face="sans-serif">Thanks in advance!</font><span class=""><font color="#888888"><br>
<font face="sans-serif">Samuel</font></font></span></p></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div>
</div></div>