Michael Metcalf wrote:
> > I am involved with a C related code and [...] introduced me to a code
> > called "insure" which is a fantastic run-time checker for memory leaks
> > and other hard to find problems. You probably guessed my question which
> > is: Is there something similar for Fortran90 or is something in the
> > works?
>
> Can anyone provide an answer to this question for me?
The package "mpatrol" is, like "insure," a C-based tool for this job.
At least with Lahey/Fujitsu on Linux, I found it works for Fortran. I
have some shell scripts that send its output through the debugger to turn
addresses into program unit names and line numbers. I also wrote a program
that trims the stack trace down to a more manageable size. I've only
used the feature that announces allocated but not deallocated memory areas
when the program terminates normally. It has lots of other features.
It's quite easy to use: Just link it in. It intercepts malloc and free.
You don't need any program changes. There are things you can call from
within your program to exploit features that I haven't used.
If your Fortran doesn't use malloc/free for each allocate/deallocate,
mpatrol (or insure, or any of the other tools for the same job) won't
work. Ask your vendor.
--
What fraction of Americans believe | Van Snyder
Wrestling is real and NASA is fake? | [log in to unmask]
Any alleged opinions are my own and have not been approved or disapproved
by JPL, CalTech, NASA, Sean O'Keefe, George Bush, the Pope, or anybody else.
|