From: Bob Parkinson <rwplists () omni ! ac ! uk>
To: tru64-unix-managers
Subject: SUMM: perl5 out of memory signal?
Date: Mon, 21 Sep 1998 14:39:45 +0000 [thread overview]
Message-ID: <96078721911973.tru64-unix-managers.marc@archive.invalid> (raw)
Thanks To Sam and Love.
There is no such thing as an out of memory signal. THe msg. "Out of
memory!" is coming from perl after a malloc fails.
Need another way to handle this error then. Back to the drawing board.
Thanks,
Bob
---
Sam Nelson
This probably isn't a signal, but a failure of one of the brk()/sbrk()
system
calls done underneath a `malloc()' (or something like that) to extend the
process data segment. There isn't a signal that relates directly to
running
out of data segment.
Love
perl does probably rightly check is return-value from malloc(3), and fail
when malloc does (search for "Out of memory in the perl source[1]).
[1]
hummel:/src/languages/perl/5.004_01$ grep "Out of memory" *.c
malloc.c: die("Out of memory during request for %i bytes", size);
malloc.c: die("Out of memory!"); /* croak may eat too much
memory. */
malloc.c: PerlIO_puts(PerlIO_stderr(),"Out of
memory!\n");
reply other threads:[~1998-09-21 14:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox