Results 1 to 3 of 3

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

Hybrid View

  1. #1

    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

  2. Re: Apache2 frequently stops with a python error (SLES 12 SP

    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
    From the times when today's "old school" was "new school"

    If you find this post helpful and are logged into the web interface, show your appreciation and click on the star below...

  3. #3

    Re: Apache2 frequently stops with a python error (SLES 12 SP

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •