Hi,

I am running a fastcgi on a Linux Fedora core 6 up to date 
(httpd-2.2.4-2.fc6 and mod_fcgid-2.1-1.fc6)

This fastcgi used to work like this on Linux 2.4 Apache 2.0 + mod_fastcgi :
- it gets quickly some posted data (<1kbyte)
- it does a very long treatment (5 to10 min)
- then, it write result (2 or 3 kbytes) to the output.

In order to allow those very long treatments, I changed some settings in 
httpd.conf :
for apache : Timeout 900    => 15 min

For mod-fcgid :
IdleTimeout     900
BusyTimeout     900
IPCConnectTimeout       900
IPCCommTimeout          900

The fastcgi is running correctly when launched from the command line 
(interactive mode).

When I call the fastcgi through apache/mod_fcgid, I get this error 
(about 5 or 6 minutes, each time, this value is not exactly the same):
[warn] mod_fcgid: Read data error, fastcgi server has close connection
[error] Premature end of script headers: fastcgi.fcgi

Usually I get this error when the fastcgi crashed.

In apache error.log there is that :
[Mon Jun 04 10:32:36 2007] [notice] mod_fcgid: process 
/path/fastcgi.fcgi(27625) exit(communication error), get stop signal 15
[Mon Jun 04 10:32:37 2007] [notice] child pid 24234 exit signal 
Segmentation fault (11)
[Mon Jun 04 10:32:37 2007] [error] mod_fcgid: fcgid process manager 
died, restarting the server
[Mon Jun 04 10:32:37 2007] [notice] SIGHUP received.  Attempting to restart
[Mon Jun 04 10:32:37 2007] [notice] Digest: generating secret for digest 
authentication ...
[Mon Jun 04 10:32:37 2007] [notice] Digest: done
[Mon Jun 04 10:32:37 2007] [notice] Apache/2.2.4 (Unix) DAV/2 configured 
-- resuming normal operations



When I strace the fastcgi's httpd father process, I can see that :
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
poll([{fd=11, events=POLLIN}], 1, 3000) = 0
gettimeofday({1180961309, 896561}, NULL) = 0
gettimeofday({1180961309, 896610}, NULL) = 0
gettimeofday({1180961309, 896658}, NULL) = 0
gettimeofday({1180961309, 896706}, NULL) = 0
poll([{fd=11, events=POLLIN}], 1, 3000) = 0
gettimeofday({1180961312, 896544}, NULL) = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
gettimeofday({1180961312, 896677}, NULL) = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
gettimeofday({1180961312, 896804}, NULL) = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
gettimeofday({1180961312, 896931}, NULL) = 0
gettimeofday({1180961312, 896974}, NULL) = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
waitpid(18512, 0xbfacc038, WNOHANG|WSTOPPED) = 0
setresuid32(-1, 0, -1)                  = 0
kill(18512, SIGTERM)                    = 0
setresuid32(-1, 48, -1)                 = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
poll([{fd=11, events=POLLIN}], 1, 3000) = -1 EINTR (Interrupted system call)
--- SIGCHLD (Child exited) @ 0 (0) ---
poll([{fd=11, events=POLLIN}], 1, 3000) = 0
gettimeofday({1180961315, 898558}, NULL) = 0
gettimeofday({1180961315, 898607}, NULL) = 0
gettimeofday({1180961315, 898654}, NULL) = 0
gettimeofday({1180961315, 898702}, NULL) = 0
poll([{fd=11, events=POLLIN}], 1, 3000) = 0
gettimeofday({1180961318, 898548}, NULL) = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
gettimeofday({1180961318, 898697}, NULL) = 0
gettimeofday({1180961318, 898744}, NULL) = 0
gettimeofday({1180961318, 898792}, NULL) = 0
gettimeofday({1180961318, 898839}, NULL) = 0
semop(851970, 0xbb570c, 1)              = 0
semop(851970, 0xbb5712, 1)              = 0
waitpid(18512, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGTERM}], 
WNOHANG|WSTOPPED) 
=                                                           18512
gettimeofday({1180961318, 899195}, NULL) = 0
write(7, "[Mon Jun 04 14:48:38 2007] [noti"..., 178) = 178
gettimeofday({1180961318, 899364}, NULL) = 0
close(19)                               = 0
close(17)                               = 0
close(15)                               = 0
unlink("/etc/httpd/run/mod_fcgid/18502.0") = 0
waitpid(18512, 0xbfacc038, WNOHANG|WSTOPPED) = -1 ECHILD (No child 
processes)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

Same problem with an up to date Fedora 7 platform.

Any clue ?

Thanks for helping

Fred


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to