Memory leak with trunk

Salvatore Filippone filippone.salvatore@gmail.com
Tue Jul 15 18:22:00 GMT 2014


Hello,
I am investigating a rather annoying memory leak I am getting with
current trunk.
Am attaching both the source code and the valgrind output; in
particular I see no reason why the statement at line 221 generates a
leak while that at line 223 does not.

Ideas anyone?
Thanks a lot
Salvatore

[sfilippo@localhost runs]$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/gnu/4.10/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/opt/gnu/4.10
--enable-languages=c,c++,fortran
--with-gmp=/usr/local/travel/GCC/BUILDS/gmp
--with-mpfr=/usr/local/travel/GCC/BUILDS/mpfr
--with-mpc=/usr/local/travel/GCC/BUILDS/mpc
--with-cloog=/usr/local/travel/GCC/BUILDS/cloog
Thread model: posix
gcc version 4.10.0 20140708 (experimental) (GCC)
[sfilippo@localhost leak-demo]$ gfortran -O0 -fcheck=all -fbacktrace
-ggdb -c foo-test.f90
[sfilippo@localhost leak-demo]$ gfortran  foo-test.o  -o foo-test
[sfilippo@localhost leak-demo]$ /bin/mv foo-test ./runs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo-test.f90
Type: text/x-fortran
Size: 6045 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140715/4a25c972/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leak.log
Type: text/x-log
Size: 3685 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140715/4a25c972/attachment-0001.bin>


More information about the Fortran mailing list