php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27943 PHP FastCGI child exit and fork forever.
Submitted: 2004-04-10 12:45 UTC Modified: 2005-01-15 01:00 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: progcom@php.net Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5CVS-2004-04-10 (dev) OS: FreeBSD 5.2.1
Private report: No CVE-ID: None
 [2004-04-10 12:45 UTC] progcom@php.net
Description:
------------
Somtimes, after PHP script running, preforked PHP child process exited, parent process fork new child, and new child process exit immediately, forever.

When I compiled PHP with -enable-debug, error log says repeatly

/path/to/php-src/main/main.c(1697) : Bailed out without a bailout address!

I don't know how can I reproduce it, but it occurs even phpinfo() script. (Not occured on PHP 4.3 box, only PHP 5)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-07 09:20 UTC] sniper@php.net
Please try using this CVS snapshot:

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


 [2005-01-15 01:00 UTC] 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".
 [2005-08-03 13:45 UTC] ppi at searchy dot net
Same issue on FreeBSD 4.11 and PHP 5.0.4


Some output of an attached strace:

<... fork resumed> )                    = 64017
sigreturn(0xbfbffa80)                   = 64017
read(3, 0x863ef38, 128)                 = -1 EAGAIN (Resource temporarily unavailable)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
fcntl(1, F_SETFL, O_WRONLY|O_NONBLOCK|O_APPEND) = 0
fcntl(2, F_SETFL, O_WRONLY|O_NONBLOCK|O_APPEND) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 255], WNOHANG, NULL) = 64017
fork(strace: open("/proc/...", ...): No such file or directory
)                                  = 64037
--- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
sigreturn(0xbfbffa80)                   = 64037
read(3, 0x863ef38, 128)                 = -1 EAGAIN (Resource temporarily unavailable)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
fcntl(1, F_SETFL, O_WRONLY|O_NONBLOCK|O_APPEND) = 0
fcntl(2, F_SETFL, O_WRONLY|O_NONBLOCK|O_APPEND) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 255], WNOHANG, NULL) = 64037
fork(strace: open("/proc/...", ...): No such file or directory
)                                  = 64159
--- SIGCHLD (Child exited) ---
--- SIGCHLD (Child exited) ---
sigreturn(0xbfbffa80)                   = 64159
read(3, 0x863ef38, 128)                 = -1 EAGAIN (Resource temporarily unavailable)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
fcntl(1, F_SETFL, O_WRONLY|O_NONBLOCK|O_APPEND) = 0
fcntl(2, F_SETFL, O_WRONLY|O_NONBLOCK|O_APPEND) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 255], WNOHANG, NULL) = 64159
fork()                                  = 64300
 [2009-05-02 15:21 UTC] evgeniy211 at svitonline dot com
I'am have same bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC