==336== Memcheck, a memory error detector ==336== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==336== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==336== Command: test01 ==336== --336-- run: /usr/bin/dsymutil "./test01" ==336== Invalid write of size 4 ==336== at 0x10000178B: f_ (test01.f90:77) ==336== by 0x100001ACB: MAIN__ (test01.f90:33) ==336== by 0x100001C87: main (test01.f90:40) ==336== Address 0x1004453f8 is 0 bytes after a block of size 40 alloc'd ==336== at 0x1000111EF: malloc (vg_replace_malloc.c:236) ==336== by 0x100001577: f_ (test01.f90:68) ==336== by 0x100001ACB: MAIN__ (test01.f90:33) ==336== by 0x100001C87: main (test01.f90:40) ==336== ==336== Invalid read of size 4 ==336== at 0x1000ECCA0: extract_int (in /usr/local/lib/libgfortran.3.dylib) ==336== by 0x100001D4C: main (in ./test01) ==336== Address 0x1004453f8 is 0 bytes after a block of size 40 alloc'd ==336== at 0x1000111EF: malloc (vg_replace_malloc.c:236) ==336== by 0x100001577: f_ (test01.f90:68) ==336== by 0x100001ACB: MAIN__ (test01.f90:33) ==336== by 0x100001C87: main (test01.f90:40) ==336== TEST01 FORTRAN90 version. A sample code for analysis by VALGRIND. 1 1 2 1 3 2 4 3 5 5 6 8 7 13 8 21 9 34 10 55 11 89 TEST01 Normal end of execution. ==336== ==336== HEAP SUMMARY: ==336== in use at exit: 88 bytes in 1 blocks ==336== total heap usage: 24 allocs, 23 frees, 27,748 bytes allocated ==336== ==336== LEAK SUMMARY: ==336== definitely lost: 0 bytes in 0 blocks ==336== indirectly lost: 0 bytes in 0 blocks ==336== possibly lost: 0 bytes in 0 blocks ==336== still reachable: 88 bytes in 1 blocks ==336== suppressed: 0 bytes in 0 blocks ==336== Rerun with --leak-check=full to see details of leaked memory ==336== ==336== For counts of detected and suppressed errors, rerun with: -v ==336== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)