<div dir="ltr">Hi Hal,<div><br></div><div>No, the issue is still unresolved. Alexander Potapenko added Kostya to the thread who seems to have authored the code that is causing the failure in big-endian machines. I didn't get any feedback so far. I'd be happy to help solve the issue but I didn't have the time to improve my understanding of the sanitizer. There are several places in the sanitizer that are encoding different information in memory through aliasing pointers so it is not straightforward to me what the impact of fixing this particular endianess problem is for other components of the sanitizer...</div><div><br></div><div>Thanks,</div><div>Samuel </div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-01 13:30 GMT-04:00 Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Samuel,<br>
<br>
Was this ever resolved?<br>
<br>
 -Hal<br>
<span class=""><br>
----- Original Message -----<br>
> From: "Samuel F Antao" <<a href="mailto:sfantao@us.ibm.com">sfantao@us.ibm.com</a>><br>
> To: "will schmidt" <<a href="mailto:will_schmidt@vnet.ibm.com">will_schmidt@vnet.ibm.com</a>><br>
> Cc: "Clang Developers List" <<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>>, "LLVM Dev" <<a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>><br>
> Sent: Friday, September 26, 2014 10:40:06 AM<br>
> Subject: Re: [LLVMdev] [cfe-dev] Address sanitizer regression test failures for PPC64 targets<br>
><br>
><br>
><br>
><br>
</span><span class="">> Hi Will,<br>
><br>
> Do the sanitizer tests work for you with gcc 4.9? I was using clang<br>
> 3.4.2 and started using clang 3.5.0. For both versions, I configured<br>
> clang to use the gcc 4.8.2 tooIchain.<br>
><br>
> My understanding is that the compiler was not the problem but an<br>
> endianess issue in the sanitizer implementation that was causing<br>
> memory to get corrupted. The different versions of compiler just<br>
> caused the memory corruption to affect different ranges, causing<br>
> some tests that were not working to start working and vice-versa.<br>
><br>
> I identified one of the places with the endianess issue in my<br>
> previous email. I'm unsure whether there are other places in the<br>
> code that only work for little endian.<br>
><br>
> Thanks,<br>
> Samuel<br>
><br>
</span><span class="">> Inactive hide details for Will Schmidt ---09/26/2014 11:25:23 AM---On<br>
</span>> Mon, 2014-09-08 at 22:00 -0400, Samuel F Antao wrote: > AWill<br>
<span class="im HOEnZb">> Schmidt ---09/26/2014 11:25:23 AM---On Mon, 2014-09-08 at 22:00<br>
> -0400, Samuel F Antao wrote: > Alexey, Alexander,<br>
><br>
> From: Will Schmidt <<a href="mailto:will_schmidt@vnet.ibm.com">will_schmidt@vnet.ibm.com</a>><br>
> To: Samuel F Antao/Watson/IBM@IBMUS<br>
> Cc: Alexander Potapenko <<a href="mailto:glider@google.com">glider@google.com</a>>, Clang Developers List<br>
> <<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>>, LLVM Dev <<a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>><br>
> Date: 09/26/2014 11:25 AM<br>
> Subject: Re: [LLVMdev] [cfe-dev] Address sanitizer regression test<br>
> failures for PPC64 targets<br>
><br>
><br>
><br>
><br>
</span><span class="im HOEnZb">> On Mon, 2014-09-08 at 22:00 -0400, Samuel F Antao wrote:<br>
> > Alexey, Alexander,<br>
> ><br>
> > Thanks for the suggestions. I tried removing the flag SA_NODEFER<br>
> > but<br>
> > it didn't do any good... I have been digging into the problem with<br>
> > the<br>
> > null_deref test today but I was unable to clearly identify the<br>
> > problem. I suspect that it was either a bug with the calling<br>
> > convention/unwinding that lead to the flags() pointer to get<br>
> > corrupted. It is also possible that it was related with endianess<br>
> > issues caused by some bug in the pointer arithmetic inserted by the<br>
> > sanitizer code (there are many type and bit casts which makes hard<br>
> > to<br>
> > follow the<br>
><br>
> > references). I decided to upgrade the compiler I was using to build<br>
> > clang which made the problem with this testcase to go away (!).<br>
><br>
> Hi Samuel,<br>
> Which compiler versions were you using before/after ? At the moment,<br>
> I'm building with a gcc 4.9 snapshot, but can switch to something<br>
> newer<br>
> if you had a recommendation.<br>
><br>
> Thanks,<br>
> -Will<br>
><br>
><br>
><br>
</span><span class="im HOEnZb">> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
<br>
</span><span class="HOEnZb"><font color="#888888">--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>