Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Python error: PyEval_RestoreThread: NULL tstate #107

Open
MrBenGriffin opened this issue Aug 4, 2021 · 2 comments
Open

Fatal Python error: PyEval_RestoreThread: NULL tstate #107

MrBenGriffin opened this issue Aug 4, 2021 · 2 comments

Comments

@MrBenGriffin
Copy link

MrBenGriffin commented Aug 4, 2021

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
Copy link
Author

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.

@henrythemouse
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants