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
app_python3: make it compatible with TLS refactoring #3832
Comments
- python uses pthread_setspecific and requires to be initialized in thread 0 - add a state variable to demarcate libssl thread-local keys and Python's thread-local key Addresses GH kamailio#3832
- python uses pthread_setspecific and requires to be initialized in thread 0 - add a state variable to demarcate libssl thread-local keys and Python's thread-local key Addresses GH kamailio#3832
@igorolhovskiy - are you able to test this branch from master(5.9-dev): https://github.com/kamailio/kamailio/tree/fix-tls-python It has a few commits to make |
- python uses pthread_setspecific and requires to be initialized in thread 0 - add a state variable to demarcate libssl thread-local keys and Python's thread-local key Addresses GH kamailio#3832
@space88man No deadlock with tls_threads_mode=2 and also no fail under TLS load for both modes. Many thanks! (As I was testing soon after you backported commit to 5.8, I really scratched my head why I cannot replicate the issue) |
Description
app_python3 loads libssl and also calls
pthread_setspecific()
. This makes it incompatible with tls_thread_mode refactoring.Reported by user @igorolhovskiy on the mailing list:
https://lists.kamailio.org/mailman3/hyperkitty/list/sr-users@lists.kamailio.org/thread/LEN4MVSHXMMUXCE6YJIEFKDPXI5FBOFA/
Troubleshooting
Reproduction
Debugging Data
Log Messages
SIP Traffic
Possible Solutions
tls_threads_mode = 1
Additional Information
Backtrace for pyhthon:
The text was updated successfully, but these errors were encountered: