Most likely place for a program to be leaking memory?

From: Christopher Neff (caneff_at_gmail.com)
Date: 03/22/05


Date: 21 Mar 2005 21:56:23 -0800

I am trying to get this code finished by tonight as the results are due
at midnight. And it works, as long as it doesn't run very long. After
a certain number of times through one of my main loops I get (in
ifort):

Insufficient memory to allocate Fortran RTL message buffer, message #41
= hex 00000029.

Which I am assuming is a memory leak. I've never had problems with the
largest part of this code (a 1-d multigrid solver) in terms of memory,
and all I've added on is a 1-d Heat Equation solver using
Crank-Nicholson, which really shouldn't have any affect on memory
allocation at all.

I tried running g95 to see if it would tell me, and I get a
segmentation fault much earlier than it quits in ifort. I will
eventually try and track down the problem (possible bug?), but I don't
have the time to do that right now.

Any tips as to where the most usual memory leaks occur in a program?



Relevant Pages

  • [NT] Services for UNIX 2.0 Suffer from a Remotely Triggered Memory Leak
    ... Services for UNIX 2.0 Suffer from a Remotely Triggered Memory Leak ... 2000 are not affected by the vulnerability. ... * A vulnerability that could enable an attacker to cause the NFS service ...
    (Securiteam)
  • RE: Memory increasing even when in debug-break
    ... there are 2 types of memory leak in .Net: ... More interesting is the debugger breaks while memory still increasing ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)
  • Re: Memory leak in the Driver
    ... will it also work for device driver ??? ... if the following application is used then, there is no memory leak. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Memory Leak
    ... Regarding .Net memory leak issue, an important step is determing if it is ... should not use the "Mem Usage" column in task manager which is misleading. ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: DLLHOST.EXE Memory Leak?
    ... isolate all of your COM+ components into their own packages. ... (instead of 5 sites running in the same DLLHOST). ... PerfMon, use the ASP, Process, Processor, Memory, Thread, and Web Service ... A Memory Leak will almost never recover on it's own, ...
    (microsoft.public.inetserver.iis.security)