<div dir="ltr">Thank you for the report and sorry for the trouble, Douglas.<div><br></div><div>Not sure what is going wrong and more details about your environment would certainly help. The test output before FileCheck would also be helpful.</div><div><br></div><div>I think making that CHECK more generous will resolve the problem, like this:</div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> // CHECK: #0 {{.*}} in <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">{{.*}}</span>free {{.*}}hwasan_interceptors.cc</span><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>but I'd still like to know what causes the difference in output.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 26, 2018 at 6:25 PM,  <span dir="ltr"><<a href="mailto:douglas.yung@sony.com" target="_blank">douglas.yung@sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex,<br>
<br>
This test is still failing on our internal build bot which simply does a x86-64 linux build/test of each upstream commit. I would point you to a public build bot that shows the failure, but unfortunately I don't seem to find any. I have been able to reproduce the failure on my linux box outside of the bot using the same build/test commands, so it doesn't seem to be a problem specific to that one machine.<br>
<br>
For reference, here is the test output:<br>
<br>
/home/siadmin/jenkins/w/<wbr>opensource/opensource_build/<wbr>llvm/projects/compiler-rt/<wbr>test/hwasan/TestCases/use-<wbr>after-free.cc:31:12: error: expected string not found in input<br>
 // CHECK: #0 {{.*}} in free {{.*}}hwasan_interceptors.cc<br>
           ^<br>
<stdin>:9:2: note: scanning from here<br>
 #0 0x7fb5893a3fd8 in __interceptor_free /home/siadmin/jenkins/w/<wbr>opensource/opensource_build/<wbr>llvm/projects/compiler-rt/lib/<wbr>hwasan/hwasan_interceptors.cc:<wbr>176:3<br>
 ^<br>
<stdin>:9:110: note: possible intended match here<br>
 #0 0x7fb5893a3fd8 in __interceptor_free /home/siadmin/jenkins/w/<wbr>opensource/opensource_build/<wbr>llvm/projects/compiler-rt/lib/<wbr>hwasan/hwasan_interceptors.cc:<wbr>176:3<br>
<br>
Any ideas on why this might be failing? If this isn't enough, I can provide you with more details of my environment and the build/test command lines to help you reproduce the problem.<br>
<br>
Douglas Yung<br>
<div class="HOEnZb"><div class="h5"><br>
> -----Original Message-----<br>
> From: llvm-commits [mailto:<a href="mailto:llvm-commits-bounces@lists.llvm.org">llvm-commits-bounces@<wbr>lists.llvm.org</a>] On Behalf Of<br>
> Alex Shlyapnikov via llvm-commits<br>
> Sent: Friday, March 23, 2018 19:11<br>
> To: <a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
> Subject: [compiler-rt] r328407 - [HWASan] Fix use-after-free.cc test on x86-64<br>
><br>
> Author: alekseyshl<br>
> Date: Fri Mar 23 19:10:49 2018<br>
> New Revision: 328407<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=328407&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=328407&view=rev</a><br>
> Log:<br>
> [HWASan] Fix use-after-free.cc test on x86-64<br>
><br>
> Differential Revision: <a href="https://reviews.llvm.org/D44705" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D44705</a><br>
><br>
> Modified:<br>
>     compiler-rt/trunk/test/hwasan/<wbr>TestCases/use-after-free.cc<br>
><br>
> Modified: compiler-rt/trunk/test/hwasan/<wbr>TestCases/use-after-free.cc<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/compiler-</a><br>
> rt/trunk/test/hwasan/<wbr>TestCases/use-after-<br>
> free.cc?rev=328407&r1=328406&<wbr>r2=328407&view=diff<br>
> ==============================<wbr>==============================<wbr>==================<br>
> --- compiler-rt/trunk/test/hwasan/<wbr>TestCases/use-after-free.cc (original)<br>
> +++ compiler-rt/trunk/test/hwasan/<wbr>TestCases/use-after-free.cc Fri Mar 23<br>
> 19:10:49 2018<br>
> @@ -32,7 +32,7 @@ int main() {<br>
>    // CHECK: #1 {{.*}} in main {{.*}}use-after-free.cc:16<br>
><br>
>    // CHECK: previously allocated here:<br>
> -  // CHECK: #0 {{.*}} in __interceptor_malloc {{.*}}hwasan_interceptors.cc<br>
> +  // CHECK: #0 {{.*}} in {{.*}}malloc {{.*}}hwasan_interceptors.cc<br>
>    // CHECK: #1 {{.*}} in main {{.*}}use-after-free.cc:15<br>
><br>
>    // CHECK: SUMMARY: HWAddressSanitizer: tag-mismatch {{.*}} in main<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>