[Bug fortran/55341] address-sanitizer and Fortran
Joost.VandeVondele at mat dot ethz.ch
gcc-bugzilla@gcc.gnu.org
Mon Dec 10 13:56:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55341
--- Comment #15 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-12-10 13:56:02 UTC ---
(In reply to comment #14)
> That means your addr2line is too old.
OK, with binutils 2.23.1 things work as expected. In particular:
> gfortran -g -O0 -fsanitize=address asan_test.f90 ; ./a.out 2>&1 | python ./asan_symbolize.py
=================================================================
==35214== ERROR: AddressSanitizer: stack-buffer-underflow on address
0x7fff37dfe8b8 at pc 0x400922 bp 0x7fff37dfe880 sp 0x7fff37dfe878
WRITE of size 4 at 0x7fff37dfe8b8 thread T0
#0 0x400921 in test_asan_01_ /data/vjoost/gnu/bugs/asan_test.f90:4
#1 0x400942 in MAIN__ /data/vjoost/gnu/bugs/asan_test.f90:7
#2 0x400978 in main /data/vjoost/gnu/bugs/asan_test.f90:8
#3 0x351661ecdc in ?? ??:0
More information about the Gcc-bugs
mailing list