[Bug sanitizer/55561] TSAN: Fortran/OMP yields false positives

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Wed Dec 26 19:35:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55561

--- Comment #17 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-12-26 19:34:29 UTC ---
Another testcase that yields warnings with a sanitized libgomp:

!$omp parallel default(none) private(i,j,k) 
!$omp do collapse(3)
    DO k = 1,10
    DO j = 1,10
    DO i = 1,10
    ENDDO
    ENDDO
    ENDDO
!$omp end parallel

END 

WARNING: ThreadSanitizer: data race (pid=16133)
  Read of size 8 at 0x7d30000272c8 by main thread:
    #0 gomp_iter_static_next
/data/vjoost/gnu/gcc_exp/obj/x86_64-unknown-linux-gnu/libgomp/../../../gcc/libgomp/iter.c:71
(libgomp.so.1+0x00000000623d)
    #1 GOMP_loop_static_start
/data/vjoost/gnu/gcc_exp/obj/x86_64-unknown-linux-gnu/libgomp/../../../gcc/libgomp/loop.c:110
(libgomp.so.1+0x0000000078ac)
    #2 MAIN__._omp_fn.0 /data/vjoost/clean/cp2k/test.f90:2 (exe+0x000000000c64)



More information about the Gcc-bugs mailing list