ID: 40286
Comment by: natit at ctvnet dot dp dot ua
Reported By: gabriel at oxeva dot fr
Status: No Feedback
Bug Type: CGI related
Operating System: Linux 2.6
PHP Version: 5.2.0+
Assigned To: dmitry
New Comment:
HELP CHILDREN OF UKRAINE!
Children in need.
DONATE EDUCATIONAL MATERIALS TO CHILDREN IN IMPOVERISHED COUNTRIES
In some parts of the world, educational materials such as books, paper,
pencils, rulers and erasers are scarce and expensive. Donate now to help
children in need.
PAY PAL natit@ctvnet.dp.ua
Previous Comments:
------------------------------------------------------------------------
[2008-05-26 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-05-18 00:39:57] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
We do not support 3rd party stuff, so PLEASE try the unpatched, clean
sources provided in above link.
------------------------------------------------------------------------
[2008-05-06 21:35:25] gabriel at oxeva dot fr
Bug reopened as requested by jakobunt at gmail dot com
It is indeed the same bug as the one I described: my logs were the same
as yours when I was using the php forking feature.
As far as I remember, the child php processes were dropped by the
parent php process (acting as a dispatcher) because apache's fastcgi
process manager "Fastcgi PM" sent a SIGKILL signal to it (the only PID
the fastcgi PM is aware of because it spawned it). This signal is
normally only sent if the process do not exit a few seconds after being
sent a SIGTERM signal. The problem is not the parent being killed, but
the children waiting on their own loop infinitely.
I guess this bug is in the fastcgi accept loop, which leaves the php
children stalled waiting on a FD without any process attached to the
other side.
------------------------------------------------------------------------
[2008-05-06 21:08:16] jakobunt at gmail dot com
I still experience this on Ubuntu Hardy,
PHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cgi-fcgi), so this
should be reopened.
A pstree showing the orphaned processes:
http://launchpadlibrarian.net/14265483/phpkiller.log
------------------------------------------------------------------------
[2007-11-11 22:22:59] jakob dot at at gmx dot net
Workaround: Kill those lurking process regularily using a cronjob.
This works for me (Ubuntu Dapper, PHP 5.1.2 (cgi-fcgi) (built: Jul 17
2007 17:21:59) ), you probably need pkill -9 .
#/bin/bash
pkill -f -x /usr/lib/cgi-bin/php -P 1
------------------------------------------------------------------------
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/40286
--
Edit this bug report at http://bugs.php.net/?id=40286&edit=1