This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/55341] address-sanitizer and Fortran


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

--- Comment #7 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-12-10 12:37:00 UTC ---
I'm wondering, is asan not supposed to print out a backtrace with file names
and line numbers... right now (trunk of today) I get a trace with just
addresses, I somehow have the feeling this was different in an earlier version
:

gfortran -g -fsanitize=address asan_test.f90 ; ./a.out
=================================================================
==19529== ERROR: AddressSanitizer: stack-buffer-underflow on address
0x7fff503d6a98 at pc 0x400922 bp 0x7fff503d6a60 sp 0x7fff503d6a58
WRITE of size 4 at 0x7fff503d6a98 thread T0
    #0 0x400921 (/data/vjoost/gnu/bugs/a.out+0x400921)
    #1 0x400942 (/data/vjoost/gnu/bugs/a.out+0x400942)
    #2 0x400978 (/data/vjoost/gnu/bugs/a.out+0x400978)
    #3 0x351661ecdc (/lib64/libc-2.12.so+0x1ecdc)
Address 0x7fff503d6a98 is located at offset 24 in frame <test_asan_01> of T0's
stack:
  This frame has 1 object(s):
    [32, 72) 'a'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]