[Bug sanitizer/55561] TSAN crashes for Fortran
Joost.VandeVondele at mat dot ethz.ch
gcc-bugzilla@gcc.gnu.org
Mon Dec 10 12:44:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55561
--- Comment #7 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-12-10 12:43:42 UTC ---
Now, compilation seems to go fine, but I'm not figuring out how to do it
properly so it works at run time. I have:
> gfortran -g -fsanitize=thread -fPIE PR55561.f90
> ./a.out
FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at
0x400000 < 0x7cf000000000)
FATAL: Make sure to compile with -fPIE and to link with -pie.
next try yields
> gfortran -g -fsanitize=thread -fPIC -Wl,-pie PR55561.f90
/data/vjoost/gnu/binutils-2.22/install/bin/ld: error: /usr/lib/../lib64/crt1.o:
requires unsupported dynamic reloc 11; recompile with -fPIC
/data/vjoost/gnu/binutils-2.22/install/bin/ld: error:
/data/vjoost/gnu/gcc_trunk/install/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/crtbegin.o:
requires dynamic R_X86_64_32 reloc against '__TMC_END__' which may overflow at
runtime; recompile with -fPIC
Is there something wrong in the way I configured gcc or do I need a different
command line ?
../gcc/configure --prefix=/data/vjoost/gnu/gcc_trunk/install
--enable-languages=c,c++,fortran --disable-multilib --enable-plugins
--enable-lto --disable-bootstrap
More information about the Gcc-bugs
mailing list