This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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]

Re: mtrace for a fortran program


On Tue, Nov 11, 2008 at 2:03 PM, Davide Del Vento <ddvento@ucar.edu> wrote:
> 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?

Does your gfortran program actually call malloc? If you disassemble
the resulting binary do you see a call to malloc? If you use readelf
does the resulting binary contain an undefined reference to malloc
(which would be resolved at run-time to the C library)?

Cheers,
Carlos.


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