#20896 [Com]: php -w hangs indefinitely at 100% CPU
| From: | sthomas at townnews dot com | Date: | Wed, 08 Jan 2003 22:59:30 +0000 |
| Subject: | #20896 [Com]: php -w hangs indefinitely at 100% CPU | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29487@lists.php.net to get a copy of this message | ||
ID: 20896
Comment by: sthomas@townnews.com
Reported By: carl@thep.lu.se
Status: Verified
Bug Type: *General Issues
Operating System: SuSE 7.2
PHP Version: 4.3.0RC2
New Comment:
This bug also affects PHP 4.3.0 Final, at least on Redhat 7.3 and
Redhat 8.0. Pretty odd to have 100% cpu usage when it's already
finished with the whitespace stripping or syntax hilighting.
Previous Comments:
------------------------------------------------------------------------
[2003-01-07 14:31:37] internet@choq.fm
I have a similar problem on Slackware 8.1, on a kernel 2.4.20.
PHP version 4.3 Release.
When I start the server everything is fine for a little while. After a
bit the CPU load increases dramatically and dosn't stop. Top shows me
that the httpd processes are in a infinite loop. Also I can'T kill them
at all, even with a kill -HUP.
uptime :
15:28:55 up 18:21, 3 users, load average: 47.15, 46.94, 44.35
with 46 looped httpd process.
I removed all the php scripts on the server and everything runs fine
afdterwards, so it's definately caused by php.
I will recompile PHP and apache later tonight to see if this might be a
problem between the kernel/apache/php4.
I will try posting more info as well. I know that mysql, gd, freetype,
zlib, libpng, libjpeg are installed but I don't remmeber the others.
------------------------------------------------------------------------
[2002-12-22 12:19:26] andrew@evilwalrus.com
Works fine for me on WinXP SP1 with 4.4.0-dev (CVS).
------------------------------------------------------------------------
[2002-12-13 05:46:05] ljpersson@hotmail.com
Same problem exists in 4.3.0RC3
------------------------------------------------------------------------
[2002-12-11 02:38:44] sniper@php.net
This happens also with the -s option. And with CGI binary too.
Basically the reason is that the -s / -w options use some hackish way
to accomplish the tasks. Which seems to work on some systems though..
------------------------------------------------------------------------
[2002-12-11 02:20:06] ljpersson@hotmail.com
Also repeatable on SuSE 8.0
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20896
--
Edit this bug report at http://bugs.php.net/?id=20896&edit=1