php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20609 PHP fatal error causes Apache to respawn
Submitted: 2002-11-24 09:10 UTC Modified: 2002-11-24 12:26 UTC
From: baldrick at vcdhelp dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4CVS-2002-11-24 (dev) OS: Windows 2000
Private report: No CVE-ID: None
 [2002-11-24 09:10 UTC] baldrick at vcdhelp dot com
I'm running Apache 1.3.26, PHP 4.4.0-dev(as a sapi module) and MySQL3.23.51 on a dual processor(AMD MP 1800) Windows 2000 server with 1 GB RAM. PHP causes this fatal error every 5-15 minute:

FATAL:  erealloc():  Unable to allocate 1441792 bytes

and it causes Apache to respawn and kills all current connections(the apache child process dies and restarts). I have tried with older PHP versions(4.2.3,4.2.4-dev,4.3RC1) and with no extra modules but with same result. I use the php.ini-recommended with no changes.

/Baldrick at www.vcdhelp.com

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-24 12:26 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Looks like your system is running out of memory, hence crashing. It is failing to allocate memory, when that happens PHP halts execution on terminates the script. Apache after unexpected script termination may try 3-4 times to retry the request.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 04:00:02 2025 UTC