#27231 [Opn->Fbk]: Large-size PHP script crashes SunONE webserver
| From: | sniper@php.net | Date: | Fri, 13 Feb 2004 13:12:38 +0000 |
| Subject: | #27231 [Opn->Fbk]: Large-size PHP script crashes SunONE webserver | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54849@lists.php.net to get a copy of this message | ||
ID: 27231
Updated by: sniper@php.net
Reported By: herman at frontier dot nl
-Status: Open
+Status: Feedback
Bug Type: iPlanet related
Operating System: SunOS 5.8
PHP Version: 4.3.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-02-13 03:42:22] herman at frontier dot nl
Sorry, forgot to mention: no, using the CLI (at least scripts #1 and
#2) they run OK.
------------------------------------------------------------------------
[2004-02-12 20:52:26] iliaa@php.net
Does it crash with PHP-CLI?
------------------------------------------------------------------------
[2004-02-12 14:59:48] herman at frontier dot nl
Description:
------------
When trying an PHP application (which uses generated code, some rather
quite large files) on Sun server running Solaris 8, the SunONE
webserver 6.1 and PHP 4.3.4 using nsapi, one of the scripts crashed the
server.
After some experimenting, it seems the size of the script file
triggered the crash: a PHP script > 128KB will bring down the server, a
script < 128KB will not.
To complicate matters a bit, if a small script includes a large script,
the server will also crash, but if a small script will include two
"half size" scripts, it will not.
The server seems to run other PHP scripts well, and is also used to run
applets through its nsapi interface without problems.
PHP has been compiled as per instructions on the PHP website, with
mysql disabled, and ldap and oci8 enabled.
Reproduce code:
---------------
The test scripts consist of:
<?php
echo "hello";
exit;
$a = "123456789012345678901234567890123456789012345678901234567890";
// previous line copied till the script is large enough
?>
The scripts can be found at:
http://www.ozuzo.net/phpbug/test1.php.txt
=> WORKS
http://www.ozuzo.net/phpbug/test2.php.txt
=> CRASH
Include examples:
http://www.ozuzo.net/phpbug/test3.php.txt
=> WORKS
http://www.ozuzo.net/phpbug/test3a.php.txt
http://www.ozuzo.net/phpbug/test3b.php.txt
http://www.ozuzo.net/phpbug/test4.php.txt
=> CRASH
http://www.ozuzo.net/phpbug/test4a.php.txt
Expected result:
----------------
The word "hello".
Actual result:
--------------
The server crashes with the following message (no entry in the PHP
log):
failure (25268): CORE3107: Child process closed admin channel
fine (25268): CORE3061: signal_handler_thread: received signal 18
fine (25268): CORE3049: Primordial process detected child 25296 died:
status 11
fine (25268): CORE3050: Is our child, will spawn replacement
fine (25268): CORE3062: Unlinking of /tmp/<servername>/.cgistub_25296
returned -1
fine (25268): CORE3047: Server spawned worker process 25305
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27231&edit=1