[Bug fortran/55341] address-sanitizer and Fortran

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Mon Dec 10 13:26:00 GMT 2012


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

--- Comment #11 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-12-10 13:26:31 UTC ---
(In reply to comment #10)
> >> ./a.out | python ./asan_symbolize.py
> It should be 
>   ./a.out 2>&1  | python ./asan_symbolize.py

not good yet, line numbers are 0. Also happens for a C testcase.

Also addr2line seems not happy:

addr2line -e ./a.out 0x400921
??:0

> gfortran -g -O0 -fsanitize=address -fno-omit-frame-pointer asan_test.f90 ; ./a.out 2>&1 | python ./asan_symbolize.py
=================================================================
==45957== ERROR: AddressSanitizer: stack-buffer-underflow on address
0x7fff9752bdd8 at pc 0x400922 bp 0x7fff9752bda0 sp 0x7fff9752bd98
WRITE of size 4 at 0x7fff9752bdd8 thread T0
    #0 0x400921 in test_asan_01_ ??:0
    #1 0x400942 in MAIN__ asan_test.f90:0
    #2 0x400978 in main ??:0
    #3 0x351661ecdc in ?? ??:0
Address 0x7fff9752bdd8 is located at offset 24 in frame <test_asan_01> of T0's
stack:



More information about the Gcc-bugs mailing list