http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55561
Bug #: 55561
Summary: TSAN crashes for Fortran
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Current trunk crashes if -fsanitize=thread is used for Fortran programs. This
is contrary to -fsanitize=address, which seems to work (PR55341). I think there
would be quite some interest in having -fsanitize=thread to work for OMP'ed
Fortran programs.
> cat test.f90
J=0
!$OMP PARALLEL DO
DO I=1,10
J=J+1
ENDDO
WRITE(6,*) J
END
> gfortran -fopenmp -fsanitize=thread test.f90
test.f90:7:0: internal compiler error: Segmentation fault
END
^
0x98cc1f crash_signal
../../gcc/gcc/toplev.c:334
0x6718e0 contains_struct_check
../../gcc/gcc/tree.h:3784
0x6718e0 build_call_expr_loc_array(unsigned int, tree_node*, int, tree_node**)
../../gcc/gcc/builtins.c:11206
0x672f82 build_call_expr(tree_node*, int, ...)
../../gcc/gcc/builtins.c:11256
0x9a0d76 tsan_finish_file()
../../gcc/gcc/tsan.c:316
Please submit a full bug report,