#37481 [NEW]: "Memory exhausted" errors cause internal server error rather than E_ERROR

From: Date: Wed, 17 May 2006 18:34:50 +0000
Subject: #37481 [NEW]: "Memory exhausted" errors cause internal server error rather than E_ERROR
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97280@lists.php.net to get a copy of this message
From: phpbugs at thequod dot de Operating system: Ubuntu Linux PHP version: 5CVS-2006-05-17 (CVS) PHP Bug Type: CGI related Bug description: "Memory exhausted" errors cause internal server error rather than E_ERROR Description: ------------ If memory_limit gets reached, I get "Allowed memory size of XXX bytes exhausted (tried to allocate XXX bytes)" written to the server's main error log and [Wed May 17 20:22:26 2006] [error] [client XXX] (104)Connection reset by peer: FastCGI: comm with server "/var/www/XXX/php5-fcgi-starter" aborted: read failed [Wed May 17 20:22:26 2006] [error] [client XXX] FastCGI: incomplete headers (0 bytes) received from server "/var/www/XXX/php5-fcgi-starter" into the virtual host's error log. Reproduce code: --------------- <?php ini_set('memory_limit', '1M' ); $s = ''; while( 1 ) $s .= 'foo'; ?> Expected result: ---------------- [Wed May 17 20:23:49 2006] [error] [client XXX] FastCGI: server "/var/www/XXX/php5-fcgi-starter" stderr: PHP Fatal error: Allowed memory size of XXX bytes exhausted (tried to allocate XXX bytes) in /var/www/XXX/web/index.php on line XXX Actual result: -------------- No entry about the exhausted memory in the virtual host's error log, but only in the main error log, _without_ any source file or line mentioned (which is the case with mod_php AFAIK) -- Edit bug report at http://bugs.php.net/?id=37481&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37481&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37481&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37481&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37481&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37481&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37481&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37481&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37481&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37481&r=support Expected behavior: http://bugs.php.net/fix.php?id=37481&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37481&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37481&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37481&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37481&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37481&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37481&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37481&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37481&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37481&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37481&r=mysqlcfg

« previous php.bugs (#97280) next »