Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-14-2003, 06:07 PM   #1
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Rep: Reputation: 15
Question Apache CGI Segmentation Fault

Hey all,

I've built a sound compilation server using the SND software (

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/
/www/ 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] Premature end of script
headers: /www/

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.
Old 07-15-2003, 10:16 AM   #2
Registered: Dec 2001
Distribution: RH5.2/6.2/7.0/7.1/7.2/9/ES21/ES31
Posts: 91

Original Poster
Rep: Reputation: 15
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache segmentation fault kloppster Linux - Software 6 07-19-2004 02:56 PM
Apache segmentation fault with with default index files paijm021 Linux - Software 13 04-22-2004 09:51 AM
HELP PLEASE! Apache Segmentation Fault gabriele_101 Linux - Software 4 08-01-2003 01:56 AM
Apache: child pid XXX exit signal Segmentation fault (11) gabriele_101 Linux - Hardware 1 07-23-2003 07:12 PM
Apache Segmentation Fault.... morbo Linux - General 2 12-14-2001 04:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration