From:             mg at fork dot pl
Operating system: Linux
PHP version:      5.2.11
PHP Bug Type:     CGI related
Bug description:  endless loop wating for child process

Description:
------------
fast-cgi php process loops forever during wait()ing for child process
while there's no more child processes. 

Actual result:
--------------
in cgi_main.c there's loop:

1631                 while (1) {
1632                     if (wait(&status) >= 0) {
1633                         running--;
1634                         break;
1635                     } else if (exit_signal) {
1636                         break;
1637                     }
1638                 }

wait returns -1 as strace shows:

wait4(-1, 0xbff2d2a4, 0, NULL)          = -1 ECHILD (No child processes)

and loop never breaks (as apparently exit_signal is set to 0).

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

Reply via email to