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: fortran at gcc dot gnu dot org
- Date: Fri, 14 Nov 2008 15:24:46 -0700
- Subject: Re: mtrace for a fortran program
- References: <4919D716.7030109@ucar.edu> <119aab440811120618k486b187dw408911937fb3c770@mail.gmail.com>
Carlos O'Donell wrote:
>> >> 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
>> >>
> > Does your gfortran program actually call malloc?
Carlos,
Thank you very much. In fact you are right: there isn't any malloc call,
but just _gfortran_allocate_array ones (I updated the question on
stackoverflow.com accordingly).
I guess that _gfortran_allocate_array will call malloc, but of course I
do not know for sure (does anyone from the fortran list know?).
If this is the case, would it be possible to configure mtrace in order
to trace this indirect malloc calls?
Thanks again,
Davide Del Vento, Consulting Services Software Engineer
NCAR Computational & Information Services Laboratory
http://www.cisl.ucar.edu/hss/csg/
PS:
Unfortunately it seems that this fortran mailing list does not allow
crossposting. If you reply, please send a (separate, but identical)
message in reply to this one. Thanks
http://sources.redhat.com/ml/libc-help/2008-11/msg00016.html