From:             [EMAIL PROTECTED]
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

Reply via email to