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/43018] alloc_comp_scalar_1.f90: Valgrind Invalid read of size 4



------- Comment #2 from burnus at gcc dot gnu dot org  2010-09-01 14:36 -------
Using 4.6.0 20100901 (experimental) [trunk revision 163720], I still see:

gfortran -g alloc_comp_scalar_1.f90 && valgrind ./a.out

==14804== Invalid read of size 8
==14804==    at 0x400B82: MAIN__ (alloc_comp_scalar_1.f90:14)
==14804==    by 0x400D22: main (alloc_comp_scalar_1.f90:17)
==14804==  Address 0x58e63d0 is 0 bytes inside a block of size 4 alloc'd
==14804==    at 0x4C26C36: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14804==    by 0x4008F9: MAIN__ (alloc_comp_scalar_1.f90:12)
==14804==    by 0x400D22: main (alloc_comp_scalar_1.f90:17)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


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


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