Apache2 frequently stops with a python error (SLES 12 SP 1)

Hello,

The apache2 server frequently stops with the error below. (When I manually (re)start the apache2 server, it starts okay.)

The error messages in the apache2 log:
[mpm_prefork:notice] [pid 19521] AH00171: Graceful restart requested, doing restart
[:notice] [pid 19521] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[:notice] [pid 19521] mod_python: using mutex_directory /tmp
Fatal Python error: PyEval_SaveThread: NULL tstate
[core:notice] [pid 19521] AH00060: seg fault or similar nasty error detected in the parent process

Does anyone know how I can fix this?

Thank you!
Jae

Hi Jae,

[core:notice] [pid 19521] AH00060: seg fault or similar nasty error detected in the parent process

do you have any entries in the request log that might help you reproduce the error under controlled conditions? My gut feeling points at a problem in some lib that accessed via Python code (executed upon an HTTP request), causing that segmentation violation.

You may additionally want to enable core dumps for your httpd, so that you have a chance to look at the segv location post-mortem.

Regards,
Jens

Hi Jens,

Thank you for the kind advice.

I found that the problem was because of the bug with mod_python in apache2 (https://github.com/grisha/mod_python/issues/46). The bug was fixed with the latest check-in (Dec 1, 2015) in the github project (https://github.com/grisha/mod_python). The check-in version is not updated in the RPM package group yet.

Sincerely,
Jaewook