#45561 [Bgs]: PHP-5.2.6 + Mod_FastCGI-2.4.6 + Suexec Apache 2.2.9 causes hangs/error 500
ID: 45561 User updated by: jamesslee at hotmail dot com Reported By: jamesslee at hotmail dot com Status: Bogus Bug Type: Apache2 related Operating System: centos-5 PHP Version: 5.2.6 New Comment: my fastcgi is not misconfigured. if you read through this ticket, i stated i am using the exact same setup with php-4 and it is working. it just does not work with php-5. my guess is that fastcgi may not work with the latest version of php-5 for whatever reason. Previous Comments: [2008-07-21 06:54:51] [EMAIL PROTECTED] Looks like you just have misconfigured your fastcgi. Not PHP bug - bogus. [2008-07-20 17:14:42] jamesslee at hotmail dot com strace of fcgi... hmmm maybe its a fastcgi problem and not a php-5 problem? Process 12035 attached - interrupt to quit select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12285 write(2, [Sun Jul 20 13:17:35 2008] [warn..., 98) = 98 alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 1 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12285 write(2, [Sun Jul 20 13:17:35 2008] [warn..., 131) = 131 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12286 write(2, [Sun Jul 20 13:17:36 2008] [warn..., 138) = 138 alarm(4)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 4 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12286 write(2, [Sun Jul 20 13:17:37 2008] [warn..., 171) = 171 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12287 write(2, [Sun Jul 20 13:17:39 2008] [warn..., 138) = 138 alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 1 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12287 write(2, [Sun Jul 20 13:17:39 2008] [warn..., 171) = 171 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12288 write(2, [Sun Jul 20 13:17:40 2008] [warn..., 98) = 98 alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 2 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12288 write(2, [Sun Jul 20 13:17:40 2008] [warn..., 131) = 131 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= 1 (in [8]) alarm(0)= 2 read(8, T /home/foo/domains/foo..., 16384) = 60 alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0
#45561 [Fbk-Opn]: PHP-5.2.6 + Mod_FastCGI-2.4.6 + Suexec Apache 2.2.9 causes hangs/error 500
ID: 45561 User updated by: jamesslee at hotmail dot com Reported By: jamesslee at hotmail dot com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: centos-5 PHP Version: 5.2.6 New Comment: i tried that already. i also tried to just remove the php.ini and I still get the same result. Previous Comments: [2008-07-20 11:06:59] [EMAIL PROTECTED] You're propably using the php.ini from that php4 installation? I'd first nuke that and create totally new using the php.ini-dist or preferrably php.ini-recommended file from the PHP 5.2.6 sources as base. [2008-07-19 04:27:25] jamesslee at hotmail dot com Description: PHP5 compiled with: ./configure --prefix=/usr/local/php5 --enable-fastcgi --enable-force-cgi-redirect Basically, I am using Apache2 Suexec with mod_fastcgi using PHP 5.2.6 as a cli. I am using the same apache directives and same fcgi script (the only difference is that one points to the php4 binary vs php5 vinary). This setup works with PHP-4.4.8, but not with PHP-5.2.6. When I try to view test.php5 via the web browser, it just hangs until I get the 500 error. Reproduce code: --- test.php5: ? phpinfo(); ? Expected result: I expect to see the results of the phpinfo function. Actual result: -- test.php5 hangs in the browser. The following logs are produced: access.log: X.X.X.X - - [19/Jul/2008:00:17:27 -0400] GET /test.php5 HTTP/1.1 500 545 error.log: [Sat Jul 19 00:17:32 2008] [warn] FastCGI: (dynamic) server /home/foo/domains/foo.com/cgi-bin/php5.fcgi restarted (pid 3048) [Sat Jul 19 00:17:32 2008] [warn] FastCGI: (dynamic) server /home/foo/domains/foo.com/cgi-bin/php5.fcgi (pid 3048) terminated by calling exit with status '0' [Sat Jul 19 00:17:35 2008] [error] [client X.X.X.X] (104)Connection reset by peer: FastCGI: comm with server /home/foo/domains/foo.com/cgi-bin/php5.fcgi aborted: read failed [Sat Jul 19 00:17:35 2008] [error] [client X.X.X.X] FastCGI: incomplete headers (0 bytes) received from server /home/foo/domains/foo.com/cgi-bin/php5.fcgi -- Edit this bug report at http://bugs.php.net/?id=45561edit=1
#45561 [Com]: PHP-5.2.6 + Mod_FastCGI-2.4.6 + Suexec Apache 2.2.9 causes hangs/error 500
ID: 45561 Comment by: jamesslee at hotmail dot com Reported By: jamesslee at hotmail dot com Status: Open Bug Type: Apache2 related Operating System: centos-5 PHP Version: 5.2.6 New Comment: strace of fcgi... hmmm maybe its a fastcgi problem and not a php-5 problem? Process 12035 attached - interrupt to quit select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12285 write(2, [Sun Jul 20 13:17:35 2008] [warn..., 98) = 98 alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 1 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12285 write(2, [Sun Jul 20 13:17:35 2008] [warn..., 131) = 131 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12286 write(2, [Sun Jul 20 13:17:36 2008] [warn..., 138) = 138 alarm(4)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 4 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12286 write(2, [Sun Jul 20 13:17:37 2008] [warn..., 171) = 171 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12287 write(2, [Sun Jul 20 13:17:39 2008] [warn..., 138) = 138 alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 1 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12287 write(2, [Sun Jul 20 13:17:39 2008] [warn..., 171) = 171 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(1)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12288 write(2, [Sun Jul 20 13:17:40 2008] [warn..., 98) = 98 alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 2 wait4(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12288 write(2, [Sun Jul 20 13:17:40 2008] [warn..., 131) = 131 wait4(-1, 0x7fffb879f30c, WNOHANG, NULL) = -1 ECHILD (No child processes) alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= 1 (in [8]) alarm(0)= 2 read(8, T /home/foo/domains/foo..., 16384) = 60 alarm(2)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xe) = -1 EINTR (Interrupted system call) alarm(0)= 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b0af2e1c190) = 12289 write(2, [Sun Jul 20 13:17:42 2008] [warn..., 138) = 138 alarm(3)= 0 select(9, [8], NULL, NULL, NULL)= ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- rt_sigreturn(0x11) = -1 EINTR (Interrupted system call) alarm(0)= 3 wait4(-1, [{WIFEXITED
#45561 [NEW]: PHP-5.2.6 + Mod_FastCGI-2.4.6 + Suexec Apache 2.2.9 causes hangs/error 500
From: jamesslee at hotmail dot com Operating system: centos-5 PHP version: 5.2.6 PHP Bug Type: Apache2 related Bug description: PHP-5.2.6 + Mod_FastCGI-2.4.6 + Suexec Apache 2.2.9 causes hangs/error 500 Description: PHP5 compiled with: ./configure --prefix=/usr/local/php5 --enable-fastcgi --enable-force-cgi-redirect Basically, I am using Apache2 Suexec with mod_fastcgi using PHP 5.2.6 as a cli. I am using the same apache directives and same fcgi script (the only difference is that one points to the php4 binary vs php5 vinary). This setup works with PHP-4.4.8, but not with PHP-5.2.6. When I try to view test.php5 via the web browser, it just hangs until I get the 500 error. Reproduce code: --- test.php5: ? phpinfo(); ? Expected result: I expect to see the results of the phpinfo function. Actual result: -- test.php5 hangs in the browser. The following logs are produced: access.log: X.X.X.X - - [19/Jul/2008:00:17:27 -0400] GET /test.php5 HTTP/1.1 500 545 error.log: [Sat Jul 19 00:17:32 2008] [warn] FastCGI: (dynamic) server /home/foo/domains/foo.com/cgi-bin/php5.fcgi restarted (pid 3048) [Sat Jul 19 00:17:32 2008] [warn] FastCGI: (dynamic) server /home/foo/domains/foo.com/cgi-bin/php5.fcgi (pid 3048) terminated by calling exit with status '0' [Sat Jul 19 00:17:35 2008] [error] [client X.X.X.X] (104)Connection reset by peer: FastCGI: comm with server /home/foo/domains/foo.com/cgi-bin/php5.fcgi aborted: read failed [Sat Jul 19 00:17:35 2008] [error] [client X.X.X.X] FastCGI: incomplete headers (0 bytes) received from server /home/foo/domains/foo.com/cgi-bin/php5.fcgi -- Edit bug report at http://bugs.php.net/?id=45561edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45561r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45561r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45561r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45561r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45561r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45561r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45561r=needscript Try newer version:http://bugs.php.net/fix.php?id=45561r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45561r=support Expected behavior:http://bugs.php.net/fix.php?id=45561r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45561r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45561r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45561r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45561r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45561r=dst IIS Stability:http://bugs.php.net/fix.php?id=45561r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45561r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45561r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45561r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45561r=mysqlcfg