Help! Error: realloc(): error: allocation failed
Oliver Fromme
olli at lurza.secnetix.de
Fri Sep 17 05:02:48 PDT 2004
Michael Dexter <dexter at ambidexter.com> wrote:
> I am using a Python script named "RedG-analize" analize.py that calls
> the webalizer to anazlize httpd logs and I am getting the error:
>
> python2.1 in realloc(): error: allocation failed
> Abort (core dumped)
>
> The error began appearing as the logs grew in size and I suspect I am
> running out of memory in some way but I am not sure.
Yes, the process is running out of memory. That problem
is not Python-specific, except that your particular Python
program seems to require lots of memory.
You might try to increase your process limits. (Depending
on your shell, the command is "ulimit" or "limit"; please
consult the manual page of your shell.) If you're already
at the hard limit, you might have to compile a new kernel
with a larger DSIZE.
By the way, Python 2.1 is a bit outdated. I recommend up-
dating to the latest version of Python (which might also
have a more efficient memory-management), unless the script
you're using is written in a way that makes it incompatible
with newer versions. (In the latter case I would rather
fix the script.)
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
I suggested holding a "Python Object Oriented Programming Seminar",
but the acronym was unpopular.
-- Joseph Strout
More information about the freebsd-python
mailing list