LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache CGI Segmentation Fault (https://www.linuxquestions.org/questions/linux-software-2/apache-cgi-segmentation-fault-72707/)

Jon- 07-14-2003 05:07 PM

Apache CGI Segmentation Fault
 
Hey all,

I've built a sound compilation server using the SND software (ccrma-www.stanford.edu)

From the command line, this simple script works. But if you execute via CGI mechanism using the Apache server, it seg faults:

echo "(quit)" > /usr/local/snd/bin/snd >> /tmp/error.txt 2>&1

I'm pretty sure it's not a permission problem -- the server is running under an account that has permissions to tmp, and /usr/local/snd. And, I built a new Apache with no add-ons and nothing weird. Same results:

headers: /www/studio-beta.centerpointe.com/cgi-bin/test1.sh
/www/studio-beta.centerpointe.com/cgi-bin/test1.sh: line 4: 12005 Done
echo "(quit)"
12006 Segmentation fault | /usr/local/snd/bin/snd >>/tmp/error.txt 2>&1
[Mon Jul 14 14:52:56 2003] [error] [client 172.16.16.1] Premature end of script
headers: /www/studio-beta.centerpointe.com/cgi-bin/test1.sh

SND is built with Guile. And, I've built other scripts to make sure I can execute things under the same environment.

I guess I'm wondering if there is anything obvious that will always cause a script to segfault under the Apache CGI environment? Or, if anyone knows what I've hosed here. I'm guesssing some aspect of the environment is different but I'm not sure what.

Jon- 07-15-2003 09:16 AM

Well, I solved it sorta. It turns out that if I defined the shell environment HOME it runs fine. So....probably just a minor bug in snd and it's initialization.

Thanks!
Jon


All times are GMT -5. The time now is 10:36 PM.