From owner-freebsd-python@FreeBSD.ORG Thu Sep 16 17:01:41 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC0CC16A4CE for ; Thu, 16 Sep 2004 17:01:41 +0000 (GMT) Received: from mail.vide.lv (mail.vide.lv [213.175.69.186]) by mx1.FreeBSD.org (Postfix) with SMTP id 794A743D45 for ; Thu, 16 Sep 2004 17:01:40 +0000 (GMT) (envelope-from dexter@ambidexter.com) Received: (qmail 32637 invoked from network); 16 Sep 2004 17:03:25 -0000 Received: from unknown (HELO ?10.0.2.2?) (213.175.79.146) by mail.vide.lv with SMTP; 16 Sep 2004 17:03:23 -0000 Mime-Version: 1.0 X-Sender: dexter@ambidexter.com@205.238.31.24 Message-Id: Date: Thu, 16 Sep 2004 20:01:42 +0300 To: freebsd-python@freebsd.org From: Michael Dexter Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: Help! Error: realloc(): error: allocation failed X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 17:01:41 -0000 Hello, 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. I have only seen this error repeatedly on Google with regards to XFree86. Any ideas how I can get around this? Thanks, Michael. From owner-freebsd-python@FreeBSD.ORG Fri Sep 17 12:02:48 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1775616A4CE for ; Fri, 17 Sep 2004 12:02:48 +0000 (GMT) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CEF743D3F for ; Fri, 17 Sep 2004 12:02:47 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (ilclej@localhost [127.0.0.1]) by lurza.secnetix.de (8.12.11/8.12.11) with ESMTP id i8HC2iZF096552 for ; Fri, 17 Sep 2004 14:02:44 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.11/8.12.11/Submit) id i8HC2iC8096551; Fri, 17 Sep 2004 14:02:44 +0200 (CEST) (envelope-from olli) Date: Fri, 17 Sep 2004 14:02:44 +0200 (CEST) Message-Id: <200409171202.i8HC2iC8096551@lurza.secnetix.de> From: Oliver Fromme To: freebsd-python@FreeBSD.ORG In-Reply-To: X-Newsgroups: list.freebsd-python User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.10-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Help! Error: realloc(): error: allocation failed X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-python@FreeBSD.ORG List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 12:02:48 -0000 Michael Dexter 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