[Bug fortran/34955] transfer_assumed_size_1.f90: Valgrind error: invalid read of size 3

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 15 13:56:00 GMT 2008

------- Comment #17 from burnus at gcc dot gnu dot org  2008-05-15 13:55 -------
On AMD Atholon64 x2 4800+ with openSUSE 11 (x86-64 beta3) I still get the
following valgrind message with today's gfortran (4.4.0 20080515 [trunk
revision 135326]):

$ gfortran -g gfortran.dg/transfer_assumed_size_1.f90
$ valgrind ./a.out
Invalid read of size 1
  at 0x4C26AF0: memmove (in
  by 0x400E9F: __transferbug_MOD_bytestostring (transfer_assumed_size_1.f90:31)
  by 0x40163C: MAIN__ (transfer_assumed_size_1.f90:41)
  by 0x40172B: main (fmain.c:21)
Address 0x58e27cb is 13 bytes before a block of size 2 free'd
  at 0x4C2430F: free (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
  by 0x4013AD: __transferbug_MOD_stringtobytes (transfer_assumed_size_1.f90:21)
  by 0x401624: MAIN__ (transfer_assumed_size_1.f90:41)
  by 0x40172B: main (fmain.c:21)



More information about the Gcc-bugs mailing list