php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8709 endless loop trying to chdir
Submitted: 2001-01-15 08:24 UTC Modified: 2001-04-10 09:47 UTC
From: thierry at skynet dot be Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: Solaris 2.7
Private report: No CVE-ID: None
 [2001-01-15 08:24 UTC] thierry at skynet dot be
I have several Apache processes that get stuck taking 
all the CPU they can.

A truss -p pid the stuck process shows that apache is 
performing a chdir("/page.html") system call (all html 
files are parsed)
the result is 'Err#2 ENOENT'

This is quite enoying since it makes the machine 
eventualy crash with loads of up to 100.

The file is present, but is located on 
'/export/web/host.domain.com/www/page.html'

I use Apache 1.3.12 with a compiled in PHP module 
and the Zend optimizer for 4.0.3pl1

PHP configure line 
'./configure' '--with-apache=/usr/src/apache2' 
'--with-sybase-ct=/usr/local/freetds' 
'--with-mysql=/usr/local/mysql' 
'--with-zlib-dir=/usr/local/lib' '--enable-debug=no' 
'--enable-track-vars=yes' '--disable-short-tags' 
'--with-xml' '--enable-ftp' '--with-gd=/usr/src/gd-1.8.3' 
'--with-jpeg-dir=/usr/src/jpeg-6b' '--with-mcrypt' 
'--with-pdflib=/usr/local/lib'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-15 11:41 UTC] thierry at skynet dot be
it seems to be related to output buffering.

The script page.html had a ob_start() line and I have 
commented it out and it seems to have stopped 
happening.


Hope this helps
 [2001-03-09 21:17 UTC] sniper@php.net
Could you try with latest CVS snapshot from http://snaps.php.net/ ??

--Jani

 [2001-04-10 09:47 UTC] sniper@php.net
No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 13:01:29 2024 UTC