#42389 [Opn]: PHP+Apache2+mod_fcgid kills all processes after submit
| From: | webmaster at machostlink dot net | Date: | Thu, 30 Aug 2007 19:03:12 +0000 |
| Subject: | #42389 [Opn]: PHP+Apache2+mod_fcgid kills all processes after submit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116900@lists.php.net to get a copy of this message | ||
ID: 42389
User updated by: webmaster at machostlink dot net
Reported By: webmaster at machostlink dot net
Status: Open
Bug Type: CGI related
Operating System: OSX 10.4.10
PHP Version: 5.2CVS-2007-08-23
New Comment:
Any news on this?
Previous Comments:
------------------------------------------------------------------------
[2007-08-24 15:16:16] webmaster at machostlink dot net
Ok, now here is the output for latest CVS:
Attaching to program: `/usr/local/bin/php-cgi', process 25912.
Reading symbols for shared libraries .. done
0x9004eb97 in accept ()
(gdb) c
Continuing.
Program received signal SIGPIPE, Broken pipe.
0x9001029c in write ()
(gdb) bt
#0 0x9001029c in write ()
#1 0x002e79b3 in fcgi_flush (req=0xbfffdc00, close=1) at
/usr/local/php5.2-200708230830/sapi/cgi/fastcgi.c:543
#2 0x002e7a29 in fcgi_finish_request (req=0xbfffdc00) at
/usr/local/php5.2-200708230830/sapi/cgi/fastcgi.c:1163
#3 0x002e825f in fcgi_accept_request (req=0xbfffdc00) at
/usr/local/php5.2-200708230830/sapi/cgi/fastcgi.c:869
#4 0x002ea880 in main (argc=1, argv=0xbffffdd0) at
/usr/local/php5.2-200708230830/sapi/cgi/cgi_main.c:1491
------------------------------------------------------------------------
[2007-08-24 04:47:00] webmaster at machostlink dot net
@jani
Ok will do and let you know what the result is.
@crrodriguez
Here is my config for mod_fcgid:
----------------------------------
<IfModule fcgid_module>
SharememPath /tmp/fcgid_shm
SocketPath /opt/local/apache2/logs/fcgidsock
IPCConnectTimeout 60
IPCCommTimeout 60
MaxRequestsPerProcess 500
MaxRequestInMem 1500000
MaxRequestLen 1500000
</IfModule>
I think I have tried EVERY possible combination there is. I read ALL
the threads and issues posted on sourceforge page as well as pretty much
every thread I could find on google regarding mod_fcgid issues. :(
That's why I am quite desperate to solve this.
Thanks for you help...
------------------------------------------------------------------------
[2007-08-24 02:54:52] crrodriguez at suse dot de
err.. I meant it should be set to 500 NOT -1
------------------------------------------------------------------------
[2007-08-24 02:52:55] crrodriguez at suse dot de
what is the value of MaxRequestsPerProcess in your mod_fcgid
configuration, it should be -1
This is a known issue of mod_fcgid see the documentation
http://fastcgi.coremail.cn/doc.htm
This is not a bug in PHP.
------------------------------------------------------------------------
[2007-08-23 22:25:37] jani@php.net
My guess is it's crashing so you should try and attach GDB to the
running process and see what the crash is about (note: you need to use
latest CVS snapshot configured using --enable-debug option!)
Make sure you only start 1 PHP FastCGI child, check what it's pid is
and attach gdb:
# gdb /path/to/php-cgi <pid>
------------------------------------------------------------------------
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/42389
--
Edit this bug report at http://bugs.php.net/?id=42389&edit=1