prepare_freethreaded_python crashes in PyOS_InputHook #1986
chubei-oppen
started this conversation in
General
Replies: 1 comment 3 replies
-
Are you able to share minimal repro? Python 3.6 is quite old now and works very differently with threads compared to Python 3.7+. Is it possible for you to upgrade to a newer Python version? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an extension module which sets
PyOS_InputHook
. Callingprepare_freethreaded_python
in the hook will crash the process withFatal Python error: take_gil: NULL tstate
. Calling it on other sites is fine.I'm not an expert with
Cython
and not sure if this is aPython
problem orpyo3
one. Any input is appreciated.Environment:
Ubuntu 18.04.6 LTS
Python 3.6.13 :: Anaconda, Inc.
rustc 1.58.0-nightly (29b124802 2021-10-25)
pyo3 0.15.0 features = ["extension-module"]
Beta Was this translation helpful? Give feedback.
All reactions