#20896 [Com]: php -w hangs indefinitely at 100% CPU

From: Date: Tue, 07 Jan 2003 20:31:37 +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-29372@lists.php.net to get a copy of this message
ID: 20896 Comment by: internet@choq.fm Reported By: carl@thep.lu.se Status: Verified Bug Type: *General Issues Operating System: SuSE 7.2 PHP Version: 4.3.0RC2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2002-12-09 00:03:12] carl@thep.lu.se Not quite a crash, but I found no better category (time to add one for the CLI SAPI?) A simple php -w filename.php will on my system output the things it should, but then hang forever at full CPU consumption. [PHP Modules] ctype gd mysql overload pcre pgsql posix session standard tokenizer xml zlib ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20896&edit=1

« previous php.bugs (#29372) next »