#29153 [Fbk->NoF]: PHP exits after running with for exactly 7 days.
| From: | php-bugs at lists dot php dot net | Date: | Wed, 21 Jul 2004 23:00:08 +0000 |
| Subject: | #29153 [Fbk->NoF]: PHP exits after running with for exactly 7 days. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63301@lists.php.net to get a copy of this message | ||
ID: 29153
Updated by: php-bugs@lists.php.net
Reported By: chris at starglade dot org
-Status: Feedback
+Status: No Feedback
Bug Type: Reproducible crash
Operating System: Linux (2.4)
PHP Version: 5.0.0RC3
New Comment:
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".
Previous Comments:
------------------------------------------------------------------------
[2004-07-14 21:29:25] wez@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
We need a lot more info to do anything about this.
For instance, try running your script from strace and see what system
level events are occuring.
------------------------------------------------------------------------
[2004-07-14 21:09:14] chris at starglade dot org
Updated the version.
------------------------------------------------------------------------
[2004-07-14 21:07:24] php at fungusmovies dot com
PHP version 5.0.0 has been out only 1 day. It is impossible for you to
reproduce this issue (7 day crash) since it was released. Please fix
your Version entry in the bug report to the ACTUAL VERSION of php you
are using.
------------------------------------------------------------------------
[2004-07-14 16:21:20] chris at starglade dot org
Description:
------------
I am running a PHP script as a daemon, and it stops running after
exactly 7 days. The script forks then enters a while loop, which should
always return true if the socket is open. It is not a problem with the
remote server closing the socket as other clients can connect for long
periods of time. Data is constantly being sent down the socket (every
90 seconds).
Reproduce code:
---------------
$pid = pcntl_fork();
while(false !== ($text = fgets($sock, 2048)))
{
handle_text($text);
}
Expected result:
----------------
I expect the script to fork and run until the socket is closed by the
server, the script is terminated by a signal, or the socket pings out.
Actual result:
--------------
The script stops running after exactly 7 days as if it had closed the
connection, and returns to the command line. There are no error
messages given.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29153&edit=1