RedHat 8.0 Apache + Python CGI segmentation faults

Bengt Richter bokr at oz.net
Sun Feb 23 03:04:43 EST 2003


On Sat, 22 Feb 2003 19:16:53 GMT, "Steve Holden" <sholden at holdenweb.com> wrote:

>Couldn't find anything about this in Google. A new machine is running RH 8,
>and the Apache web server is working. However, attempts to run Python CGI
>scripts result in segmentation faults, even though the scripts will run
>quite happily under the user "apache" identity.
>
OTTOMH, have you checked the environment that apache is running your CGI in vs
user "apache" as a logged-in user? Have you checked the apache httpd.conf (IIRC)
parameters for your situation? Virtual hosting? suEXEC'ing you as user instead
of apache? User "nobody"? is it finding the right version of python?
Are you using a C/C++ extension that requires an old C/C++ .so library and is
being directed by symlink to an incompatible new version?

>Is this a known phenomenon, or am I going to have to get the dread gdb out?
>All the error log records is several segmentation faults for each attempted
>CGI access.

Just guessing on a few things to check. I haven't used RH8 (have they switched
to proper defaulting of 2.2.2 yet, with internal use of 1.5.2 isolated if they
still need that?)

Regards,
Bengt Richter




More information about the Python-list mailing list