[compiler-rt] r261986 - [TSAN] XFAIL race_on_mutex.cc for MIPS

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 26 11:25:24 PST 2016


So, what is the stack trace produced by TSan? I don't see why we should
XFAIL the test - we can either adjust the expectation,
or improve the runtime so that it would in fact produce pthread_mutex_init
as frame #0.

On Thu, Feb 25, 2016 at 11:01 PM, Sagar Thakur via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: slthakur
> Date: Fri Feb 26 01:01:24 2016
> New Revision: 261986
>
> URL: http://llvm.org/viewvc/llvm-project?rev=261986&view=rev
> Log:
> [TSAN] XFAIL race_on_mutex.cc for MIPS
>
> This test expects pthread_mutex_init in the frame #0 of thread T1 but we
> get memset at frame #0 because memset that is called from
> pthread_init_mutex
> is being intercepted by TSan
>
>
> Modified:
>     compiler-rt/trunk/test/tsan/race_on_mutex.c
>
> Modified: compiler-rt/trunk/test/tsan/race_on_mutex.c
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/race_on_mutex.c?rev=261986&r1=261985&r2=261986&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/test/tsan/race_on_mutex.c (original)
> +++ compiler-rt/trunk/test/tsan/race_on_mutex.c Fri Feb 26 01:01:24 2016
> @@ -2,6 +2,10 @@
>  // This test fails when run on powerpc64 (VMA=46).
>  // The size of the write reported by Tsan for T1 is 8 instead of 1.
>  // XFAIL: powerpc64
> +// This test expects pthread_mutex_init in the frame #0 of thread T1 but
> we
> +// get memset at frame #0 because memset that is called from
> pthread_init_mutex
>

^^
Seems that you're missing a verb or a preposition in this sentence.
Also, pthread_mutex_init, not pthread_init_mutex.


> +// is being intercepted by TSan
> +// XFAIL: mips64
>  #include "test.h"
>
>  pthread_mutex_t Mtx;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160226/ccf66a0d/attachment.html>


More information about the llvm-commits mailing list