Signal Handler for Out of Memory Problem

From: Joshua Berry (jberry_at_PENSON.COM)
Date: 11/29/04


Date: Mon, 29 Nov 2004 14:20:29 -0600
To: <beginners@perl.org>

I have written a program that appears to have a memory leak or is using
a module with a memory leak. Eventually the system runs out of memory
and dies. I need to write a signal handler that intercepts the signal
that stops the program and flushes everything in use to free up memory.
Does anyone know what signal is sent when the system is out of memory?

This is on Slackware Linux 10.0, Kernel 2.6.7 with GRSec, Perl v5.8.4.

 
Josh Berry | CISSP GCIA
Information Security
214-765-1296
 
--------------------------------------------------------------------
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
     -- (Former) White House Cybersecurity adviser Richard Clarke



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)