Hi Daniel,
Thanks for your reply.
We were already using version 5.8.4, and running with "--no-exit". After setting
tls_threads_mode=2 we are still getting a crash. Apologies, I had left part of the error
log out in my initial comment, but it seems the error is python related: as you can see in
the full error log, a Fatal Python error is thrown.
Fatal Python error: PyEval_SaveThread: the function must be called with the GIL held, but
the GIL is released (the current Python thread state is NULL)
Python runtime state: initialized
Current thread 0x00007039248eb740 (most recent call first):
File
"/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/backend.py",
line 1431 in _load_key
File
"/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/backend.py",
line 1218 in load_pem_private_key
File
"/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/serialization/base.py",
line 20 in load_pem_private_key
File "/usr/local/lib/python3.10/dist-packages/jwt/algorithms.py", line 343 in
prepare_key
File "/usr/local/lib/python3.10/dist-packages/jwt/api_jws.py", line 325 in
_verify_signature
File "/usr/local/lib/python3.10/dist-packages/jwt/api_jws.py", line 220 in
decode_complete
File "/usr/local/lib/python3.10/dist-packages/jwt/api_jwt.py", line 156 in
decode_complete
File "/usr/local/lib/python3.10/dist-packages/jwt/api_jwt.py", line 222 in
decode
File "/etc/kamailio/python/handler.py", line 475 in check_auth_tokens
File "/etc/kamailio/python/handler.py", line 381 in authenticate_registration
Extension modules: Router, KSR, Router.Core, Router.Logger, Router.Ranks, KSR.pv, KSR.x,
_cffi_backend (total: 8)
17(26) CRITICAL: <core> [core/pass_fd.c:281]: receive_fd(): EOF on 22
0(8) ALERT: <core> [main.c:805]: handle_sigs(): child process 19 exited by a signal
6
0(8) ALERT: <core> [main.c:809]: handle_sigs(): core was generated
0(8) INFO: <core> [main.c:832]: handle_sigs(): terminating due to SIGCHLD
2(11) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
5(14) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
4(13) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
3(12) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
8(17) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
12(21) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
15(24) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
16(25) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
17(26) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
9(18) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
13(22) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
11(20) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
14(23) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
1(10) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
6(15) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
7(16) INFO: <core> [main.c:888]: sig_usr(): signal 15 received
0(8) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not
initialized
INFO:Supervisor:Kamailio exited with code: 1