[Bug sanitizer/55561] TSAN crashes for Fortran
Joost.VandeVondele at mat dot ethz.ch
gcc-bugzilla@gcc.gnu.org
Mon Dec 10 12:53:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55561
--- Comment #9 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-12-10 12:53:22 UTC ---
(In reply to comment #8)
> gfortran -g -fsanitize=thread -fPIC -pie PR55561.f90
Thanks! yields the proper warning as expected..
> gfortran -g -fopenmp -fsanitize=thread -fPIC -pie PR55561.f90 ; ./a.out
==================
WARNING: ThreadSanitizer: data race (pid=26592)
Read of size 4 at 0x7fff74e67d6c by main thread:
#0 MAIN__._omp_fn.0 PR55561.f90:0 (exe+0x000000000fff)
#1 MAIN__ PR55561.f90:0 (exe+0x000000000e79)
#2 main ??:0 (exe+0x000000000f75)
Previous write of size 4 at 0x7fff74e67d6c by thread 1:
#0 MAIN__._omp_fn.0 PR55561.f90:0 (exe+0x000000001020)
#1 gomp_thread_start
/data/vjoost/gnu/gcc_trunk/obj/x86_64-unknown-linux-gnu/libgomp/../../../gcc/libgomp/team.c:116
(libgomp.so.1+0x000000008449)
Thread 1 (tid=26593, running) created at:
#0 pthread_create ??:0 (libtsan.so.0+0x00000001be6c)
#1 gomp_team_start
/data/vjoost/gnu/gcc_trunk/obj/x86_64-unknown-linux-gnu/libgomp/../../../gcc/libgomp/team.c:440
(libgomp.so.1+0x0000000089f5)
#2 main ??:0 (exe+0x000000000f75)
==================
More information about the Gcc-bugs
mailing list