Skip to content

Fatal Python error: PyEval_RestoreThread: NULL tstate #107

Description

@MrBenGriffin

Built mod_python (Ubuntu 20.04.2 LTS - Focal Fossa), using deb.sury for apache2 and apxs.
Python3 runtime / library is Python 3.8.10
Apache/2.4.46 (Ubuntu)
Using
./configure --with-python=/usr/bin/python3

The following is repeated until apache is stopped.

Fatal Python error: PyEval_RestoreThread: NULL tstate
Fatal Python error: PyEval_RestoreThread: NULL tstate
Fatal Python error: PyEval_RestoreThread: NULL tstate
Python runtime state: unknown
Python runtime state: unknown
[Wed Aug 04 12:40:14.245102 2021] [core:notice] [pid 149252:tid 139722246921280] AH00051: child pid 159592 exit signal Aborted (6), possible coredump in /websites/config

version.py

version = "3.5.0-8f53056"
 
# Some build-time constants:
HTTPD = "/usr/sbin/apache2"
HTTPD_VERSION = "2.4.46"
APR_VERSION = "1.7.0"
LIBEXECDIR = "/usr/lib/apache2/modules"
SYSCONFDIR = ""
TEST_MOD_PYTHON_SO = "/home/ben/modpython/mod_python/src/mod_python.so" #NB: This is for test.py only
TESTHOME = "/home/ben/modpython/mod_python/test"
PYTHON_BIN = "/usr/bin/python3"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions