NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Segmentation Fault on cRio when running lighttpd fastcgi

I'm setting up my fastcgi on the linux target using the python, and lighttpd packages provided by opkg.

When I create my .fcgi file and try to run it, I get a Segmentation Fault.

I've successfully gotten lighttpd running with just returning outputs of .py scripts, and now I'm trying to set up a python based cms on the crio using fcgi.

the System web server is out of the way on another port, so port 80 is free for lighttpd.

Why would I be getting a segmentation fault from this?

0 Kudos
Message 1 of 3
(3,414 Views)

What resources did you use when configuring the crio? What packages have you installed? What debugging have you already done past ensuring that normal CGI support works?

0 Kudos
Message 2 of 3
(2,777 Views)

Randomly had a thought: one thing that could be happening here is the stack limitation leading to the segfault. From the shell where you're launching lighttpd, set the stack size to unlimited (ulimit -s unlimited)

0 Kudos
Message 3 of 3
(2,777 Views)