Re: [PHP4BETA] FATAL: erealloc(): Unable to allocate -131072 bytes
| From: | Michael Gerdts | Date: | Wed, 21 Jul 1999 11:29:49 +0000 |
| Subject: | Re: [PHP4BETA] FATAL: erealloc(): Unable to allocate -131072 bytes | ||
| References: | 1 2 3 4 5 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2413@lists.php.net to get a copy of this message | ||
On Tue, Jul 20, 1999 at 10:48:33PM -0700, Buddy Lumpkin wrote:
> Hello All,
>
> I have a php script that uses exec() and several string and regex functions
> in a loop. A database is queried and the output is captured in an array with
> exec(). Then several string functions are used for line wrapping (adding a '\n')
> and the output is printed on the screen. After displaying 449 stories, I get the
> error:
>
> FATAL: erealloc(): Unable to allocate -131072 bytes
> Segmentation Fault - core dumped
>
> I can supply a backtrace of this if someone simply tells me how to do it :)
>
To generate a backtrace,
% gdb /usr/local/apache/bin/httpd /usr/local/apache/cores/core
(gdb) bt
This assumes that php is a module (or DSO) and your apache configuration
tells it to put core dumps into cores/.
> OS is Solaris 2.6 running on a Sun Enterprise 450, 1Gb ram.
>
> -Buddy
Is this from the version in CVS? If so is exec.c version 1.11 or newer?
% ident ext/standard/exec.c
ext/standard/exec.c:
$Id: exec.c,v 1.11 1999/07/20 20:19:58 gerdts Exp $
Mike