FreeBSD 4.7, mod_fastcgi-2.4.2, uncaught signal '11'

"Richard Levenberg" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
[Sun Oct  1 20:43:00 2006] [warn] FastCGI: (dynamic) server 
"/usr/local/apache/htdocs/fcgi/hellofcgi" (pid 78826) terminated due to
uncaught signal '11' (Segmentation fault)

The code for hellocgi is just out the documentation:

#include "fcgi_stdio.h" /* fcgi library; put it first*/
#include <stdlib.h>

int main(void) {
  /* Initialization. */
  int count = 0;

  /* Response loop. */
  while (FCGI_Accept() >= 0)   {
    printf("Content-type: text/html\r\n"
           "\r\n"
           "<title>FastCGI Hello! (C, fcgi_stdio library)</title>"
           "<h1>FastCGI Hello! (C, fcgi_stdio library)</h1>"
           "Request number %d running on host <i>%s</i>\n",
    ++count, getenv("SERVER_HOSTNAME"));
  }
  return 0;
}

httpd.conf

LoadModule fastcgi_module     libexec/mod_fastcgi.so

<Location /fcgi>
    SetHandler fastcgi-script
    Options ExecCGI
</Location>

Oddly the fcgi directory has to be off htdocs rather than off the root of 
apache 1.3

Any suggestions or help?

r 



___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.