This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: mtrace for a fortran program
- From: Davide Del Vento <ddvento at ucar dot edu>
- To: Jerry DeLisle <jvdelisle at verizon dot net>
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 14 Nov 2008 11:30:14 -0700
- Subject: Re: mtrace for a fortran program
- References: <4919D716.7030109@ucar.edu> <4919E10B.7000406@ucar.edu> <491A4553.2000307@verizon.net>
Jerry,
Unfortunately my application is for a different, unsupported valgrind
platform (namely Power6 + AIX).
And --fbound-check does a different thing: just check the bounds,
whereas I need to find leaks (i.e. allocated data structures which don't
get unallocated)
Thanks for your answer, anyway!
Davide Del Vento, Consulting Services Software Engineer
NCAR Computational & Information Services Laboratory
http://www.cisl.ucar.edu/hss/csg/
office: Mesa Lab, Room 42B
Jerry DeLisle wrote:
> Davide Del Vento wrote:
>> crossposted to: libc-help see
>> http://sources.redhat.com/ml/libc-help/2008-11/msg00014.html
>>
>> Folks,
>> I'm trying to use mtrace to detect memory leaks in a fortran program.
>> I'm using the gfortran compiler.
>>
>> Unfortunately it does not work. I posted more details (including an
>> example program) in this forum:
>> http://stackoverflow.com/questions/260192/mtrace-for-a-fortran-program
>>
>> To your knowledge, is it possible to use mtrace to detect memory leaks
>> in a fortran program?
>>
> I don't know about mtrace. I use valgrind all the time for this. You
> may want to try -fbounds-check when you compile as well.
>
> Jerry