From:             phpbugs at thequod dot de
Operating system: Ubuntu Linux
PHP version:      5.1.5CVS
PHP Bug Type:     CGI related
Bug description:  FastCGI: comm with server .. aborted

Description:
------------
I'm running Apache2/mod_fastcgi/PHP5.1.5-dev (built: May 
12 2006 19:46:11).

The problem is, that without setting PHP_FCGI_CHILDREN 
children, PHP does not default to the documented value of 
8 (no source, but often read): it does not create any 
children.

This might be just a documentation issue/bug, but without 
using any children, I can reproduce crashing PHP (somehow 
after PHP_FCGI_MAX_REQUESTS), but also experience with 
PHP_FCGI_CHILDREN set to 4!

This "bogus" report seems to be related: 
http://bugs.php.net/bug.php?id=27802

Reproduce code:
---------------
In fastcgi.conf:        FastCgiServer
/XXX/fcgi-scripts/XXX/php5-fcgi-starter -user phptest_codeprobe -group
phptest_codeprobe -pass-header HTTP_AUTHORIZATION -flush -idle-timeout 60

php5-fcgi-starter script:
#!/bin/sh
PHPRC="/vhosts/phptest_codeprobe/conf/php5"
export PHPRC
PHP_FCGI_MAX_REQUESTS=100
export PHP_FCGI_MAX_REQUESTS
exec /bin/php5-fcgi


1. Restart Apache
2. A php5-fcgi process gets started (without any childs)
3. ab2 -n 101 url/
4. A new php5-fcgi process gets "re-spawned"
5. ab2 -n 201 url/
6. The longest request takes 4s(!), instead of 0.004.
7. ab2 -n 301 url/
8. The php5-fcgi process disappears forever!

This only seems to be an indication, because I have one server setup with
PHP_FCGI_MAX_REQUESTS=100 and PHP_FCGI_CHILDREN=4 and it also dies away
like this (with the same entries in the server's error log).

This is since PHP 5.1.3/5.1.4..

Expected result:
----------------
Do not crash.

Actual result:
--------------
Apache error log:
FastCGI: comm with 
server "/var/www/fcgi-scripts/phptest_codeprobe/php5-fcgi-starter" 
aborted: idle timeout (60 sec)
FastCGI: incomplete headers (0 bytes) received from 
server "/var/www/fcgi-scripts/phptest_codeprobe/php5-fcgi-starter"


-- 
Edit bug report at http://bugs.php.net/?id=37422&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37422&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37422&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37422&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37422&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37422&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37422&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37422&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37422&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37422&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37422&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37422&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37422&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37422&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37422&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37422&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37422&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37422&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37422&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37422&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37422&r=mysqlcfg

Reply via email to