php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41028 mod_fastcgi and php process 100% cpu
Submitted: 2007-04-09 14:59 UTC Modified: 2007-04-11 14:13 UTC
From: vaidotas dot d at gmail dot com Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 5.2.1 OS: Linux 2.6.20
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vaidotas dot d at gmail dot com
New email:
PHP Version: OS:

 

 [2007-04-09 14:59 UTC] vaidotas dot d at gmail dot com
Description:
------------
Apache 2.0.59 + mod_fastcgi + php 5.2.1. Sometimes php process becomes R in process list and takes 100% cpu. At that time php page cannot be served, instead i get 500 internal server error. Strace of that process i get: strace -p 28973
...........
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb793c0c8) = 6977
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6976
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb793c0c8) = 6978
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6978
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb793c0c8) = 6981
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6981
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb793c0c8) = 6983
..........


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-09 15:03 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-04-11 14:05 UTC] vaidotas at gmail dot com
php 5.2.2-dev solved the problem.
 [2007-04-11 14:13 UTC] tony2001@php.net
Great, thanks for letting us know.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 11:01:37 2025 UTC