From:             fat
Operating system: linux
PHP version:      5.3SVN-2010-06-12 (SVN)
Package:          FPM related
Bug Type:         Bug
Bug description:chdir to a nonexisting directory when chrooting is buggy

Description:
------------
when setting chroot and chdir to a non existing directory into the chroot.
FPM 

loops creating children which are dying because they can't chdir.





Jun 12 19:46:10.884803 [NOTICE] [pool www] child 27114 started

Jun 12 19:46:10.884930 [WARNING] [pool www] child 27114 exited with code
255 

after 0.000149 seconds from start

Jun 12 19:46:10.885001 [WARNING] [pool www] child 27114 said into stderr:
"Jun 

12 19:46:10.884025 [ERROR] [pool www] chdir(/usr/local/nginx/html) failed:
No 

such file or directory (2)"

Jun 12 19:46:10.885072 [WARNING] [pool www] child 27114 said into stderr:
"Jun 

12 19:46:10.884153 [ERROR] [pool www] child failed to initialize", pipe is


closed

Jun 12 19:46:10.886642 [NOTICE] [pool www] child 27115 started

Jun 12 19:46:10.886768 [WARNING] [pool www] child 27115 exited with code
255 

after 0.000149 seconds from start

Jun 12 19:46:10.886842 [WARNING] [pool www] child 27115 said into stderr:
"Jun 

12 19:46:10.885852 [ERROR] [pool www] chdir(/usr/local/nginx/html) failed:
No 

such file or directory (2)"

Jun 12 19:46:10.886914 [WARNING] [pool www] child 27115 said into stderr:
"Jun 

12 19:46:10.885982 [ERROR] [pool www] child failed to initialize", pipe is


closed

Jun 12 19:46:10.888469 [NOTICE] [pool www] child 27116 started

Jun 12 19:46:10.888596 [WARNING] [pool www] child 27116 exited with code
255 

after 0.000150 seconds from start

Jun 12 19:46:10.888671 [WARNING] [pool www] child 27116 said into stderr:
"Jun 

12 19:46:10.887691 [ERROR] [pool www] chdir(/usr/local/nginx/html) failed:
No 

such file or directory (2)"

Jun 12 19:46:10.888744 [WARNING] [pool www] child 27116 said into stderr:
"Jun 

12 19:46:10.887820 [ERROR] [pool www] child failed to initialize", pipe is


closed

Jun 12 19:46:10.890295 [NOTICE] [pool www] child 27117 started

Jun 12 19:46:10.890422 [WARNING] [pool www] child 27117 exited with code
255 

after 0.000150 seconds from start

Jun 12 19:46:10.890491 [WARNING] [pool www] child 27117 said into stderr:
"Jun 

12 19:46:10.889524 [ERROR] [pool www] chdir(/usr/local/nginx/html) failed:
No 

such file or directory (2)"

Jun 12 19:46:10.890563 [WARNING] [pool www] child 27117 said into stderr:
"Jun 

12 19:46:10.889651 [ERROR] [pool www] child failed to initialize", pipe is


closed

Jun 12 19:46:10.893124 [NOTICE] [pool www] child 27119 started

Jun 12 19:46:10.893256 [WARNING] [pool www] child 27119 exited with code
255 

after 0.000155 seconds from start

Jun 12 19:46:10.893329 [WARNING] [pool www] child 27119 said into stderr:
"Jun 

12 19:46:10.892335 [ERROR] [pool www] chdir(/usr/local/nginx/html) failed:
No 

such file or directory (2)"

Jun 12 19:46:10.893401 [WARNING] [pool www] child 27119 said into stderr:
"Jun 

12 19:46:10.892467 [ERROR] [pool www] child failed to initialize", pipe is


closed



Test script:
---------------
chroot=/usr/local/nginx/html

chdir=/usr/local/nginx/html


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

Reply via email to