#20913 [NEW]: emalloc / erealloc FATAL errors
| From: | matt8192 at yahoo dot com | Date: | Tue, 10 Dec 2002 00:45:20 +0000 |
| Subject: | #20913 [NEW]: emalloc / erealloc FATAL errors | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-27221@lists.php.net to get a copy of this message | ||
From: matt8192@yahoo.com
Operating system: Solaris 8
PHP version: 4.2.3
PHP Bug Type: Reproducible crash
Bug description: emalloc / erealloc FATAL errors
When I use fpassthru to send large media files (100-500
MB) to the user, it sometimes causes that Apache thread to
crash, and it's taken down the entire Solaris box (!) two
or three times.
Apache's error log entries look like this:
FATAL: emalloc(): Unable to allocate 205164673 bytes
FATAL: erealloc(): Unable to allocate 205166593 bytes
FATAL: erealloc(): Unable to allocate 205166593 bytes
The box has a gig of RAM. Does fpassthru not work with
large files? Is there a better method?
Thanks
-Matt
--
Edit bug report at http://bugs.php.net/?id=20913&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20913&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20913&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20913&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20913&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20913&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20913&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20913&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20913&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20913&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20913&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20913&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20913&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20913&r=isapi