This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: mtrace for a fortran program
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Davide Del Vento" <ddvento at ucar dot edu>
- Cc: fortran at gcc dot gnu dot org, libc-help at sourceware dot org
- Date: Wed, 12 Nov 2008 09:18:51 -0500
- Subject: Re: mtrace for a fortran program
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=RU+QRzcBUKmDwpNW8U5BYBtVprhTcH7Nuw0/UAOhcQ8=; b=WvbG22wa2fEL6qH5OfcJcD6sfMRsCzJamWmQUkj30Wq4XWR3tuI++CVNs4MeDz6iIF kew8Gl8Xc3qZ+khJZeVtIXuz9Ls+4ebT391MGJ0Eo+Oha59gDRu/0fun5yV/j9YN/vwk RExeP9oxNFmIbwikUmM8S1v/f+vnM27mOSkD0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=iyfatGuIeccUp1gVHBTo60YZJESDto1LStbq84HrRCWMKipoA1OLvadJ917qEBiH0b X8mtknM7Gh9r/wo7GohdTY7xdzwy6B1dtyn3xUoxXOT3LRqvFRJ/29guSp0HkUw1OJBY u8GFBxlDedqGqTiai9byRQTlTQwOPifdpwKno=
- References: <4919D716.7030109@ucar.edu>
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.