mod_python icon indicating copy to clipboard operation
mod_python copied to clipboard

Fatal Python error: PyEval_RestoreThread: NULL tstate

Open MrBenGriffin opened this issue 3 years ago • 2 comments

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"

MrBenGriffin avatar Aug 04 '21 11:08 MrBenGriffin

We are pulling out from using this package, which is unfortunate.
@grisha, it would be really useful if you could get this working on a modern system. During the build there were several 'deprecated' notifications.

MrBenGriffin avatar Aug 04 '21 12:08 MrBenGriffin

Yep, it's a shame all right. You should reconsider.

I would like to help with your issues, unfortunately I am not familiar with compile errors. I can tell you that I compile modpython form git often on debian 11 (amd64) and have had no problems.

./configure make checkinstall -D --install=no

I don't see any errors. That gives me a deb I can install on both of my machines. Works great.

henrythemouse avatar Nov 25 '21 21:11 henrythemouse