#27231 [NEW]: Large-size PHP script crashes SunONE webserver
From: herman at frontier dot nl
Operating system: SunOS 5.8
PHP version: 4.3.4
PHP Bug Type: Reproducible crash
Bug description: Large-size PHP script crashes SunONE webserver
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 bug report at http://bugs.php.net/?id=27231&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27231&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27231&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27231&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27231&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27231&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27231&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27231&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27231&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27231&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27231&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27231&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27231&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27231&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27231&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27231&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27231&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27231&r=float
Thread (17 messages)
- herman at frontier dot nl
- iliaa@php.net#27231 [Opn->Fbk]: Large-size PHP script crashes SunONE webserver
- herman at frontier dot nl#27231 [Fbk->Opn]: Large-size PHP script crashes SunONE webserver
- sniper@php.net#27231 [Opn->Fbk]: Large-size PHP script crashes SunONE webserver
- thetaphi@php.net#27231 [Fbk]: Large-size PHP script crashes SunONE webserver
- herman at frontier dot nl#27231 [Fbk->Opn]: Large-size PHP script crashes SunONE webserver
- thetaphi@php.net#27231 [Opn]: Large-size PHP script crashes SunONE webserver
- sniper@php.net#27231 [Opn->Ver]: Large-size PHP script crashes SunONE webserver
- sniper@php.net#27231 [Ver]: Large-size PHP script crashes SunONE webserver
- herman at frontier dot nl#27231 [Ver]: Large-size PHP script crashes SunONE webserver
- yshimo at ctc-g dot co dot jp#27231 [Com]: Large-size PHP script crashes SunONE webserver
- jason at accordit dot co dot uk#27231 [Com]: Large-size PHP script crashes SunONE webserver
- juergen at henge-ernst dot de#27231 [Com]: Large-size PHP script crashes SunONE webserver
- thetaphi@php.net#27231 [Ver]: Large-size PHP script crashes SunONE webserver
- thetaphi@php.net#27231 [Ver->Csd]: Large-size PHP script crashes SunONE webserver
- lee at webaroonie dot net#27231 [Com]: Large-size PHP script crashes SunONE webserver
- tommy dot mcneely at sun dot com#27231 [Com]: Large-size PHP script crashes SunONE webserver