-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[mod_python3] PyEval_AcquireThread freeze #2732
Comments
As an update, it works fine if I apply the following patch, and use PyGILState_Ensure instead:
But since I am not fully familiar with this module, I'm not sure if that is the right thing to do. Need some expert validation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to use mod_python3 on Rocky Linux 8.10, Python 3.6.8, freeswitch 1.10.10, compiled from source.
When I call "python test" in fs_cli (test.py is placed in /usr/share/freeswitch/scripts), the cli just freezes. Same thing happens if I use the python application in a dialplan.
"getenv PYTHONPATH" returns "/usr/share/freeswitch/scripts" to confirm the script location is correct.
This does not crash freeswitch, it just sits there and does nothing, like it is waiting to get GIL (deadlock)
Doing some debugging, it seems like it freezes on the PyEval_AcquireThread call in line eval_some_python function, line 244 of mod_python3.c
Any pointers on why this might be happening and how to fix it would be appreciated.
The text was updated successfully, but these errors were encountered: