Hi,
I have recently migrated from Kamailio 5.2.5 to Kamailio 5.5.7. After a migration, the Kamailio crashed. Find the details below. Thanks in advance.
Back trace: ========= Core was generated by `/usr/local/sbin/kamailio -DD -E -m 1941 -M 970 -f /etc/kamailio/kamailio.cfg --'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f8e27a2be15 in OPENSSL_cleanse () from /lib/x86_64-linux-gnu/libcrypto.so.3 (gdb) bt #0 0x00007f8e27a2be15 in OPENSSL_cleanse () from /lib/x86_64-linux-gnu/libcrypto.so.3 #1 0x00007f8e278faa8a in CRYPTO_clear_free () from /lib/x86_64-linux-gnu/libcrypto.so.3 #2 0x00007f8e27838175 in BUF_MEM_free () from /lib/x86_64-linux-gnu/libcrypto.so.3 #3 0x00007f8e27bc0c98 in SSL_free () from /lib/x86_64-linux-gnu/libssl.so.3 #4 0x00007f8e27c8cd6e in tls_h_tcpconn_clean_f (c=0x7f8db0fa1e90) at tls_server.c:701 #5 0x000055f7f42cc6e1 in _tcpconn_free (c=0x7f8db0fa1e90) at core/tcp_main.c:1541 #6 0x000055f7f42e2f3c in tcpconn_put_destroy (tcpconn=0x7f8db0fa1e90) at core/tcp_main.c:3285 #7 0x000055f7f42e8759 in handle_tcp_child (tcp_c=0x7f8e27d88078, fd_i=-1) at core/tcp_main.c:3722 #8 0x000055f7f42f506f in handle_io (fm=0x7f8e27db1578, ev=1, idx=-1) at core/tcp_main.c:4539 #9 0x000055f7f42b6e49 in io_wait_loop_epoll (h=0x55f7f45ae240 <io_h>, t=5, repeat=0) at core/io_wait.h:1070 #10 0x000055f7f42f8bc3 in tcp_main_loop () at core/tcp_main.c:4824 #11 0x000055f7f4057fc2 in main_loop () at main.c:1856 #12 0x000055f7f4062670 in main (argc=10, argv=0x7ffc6d583528) at main.c:3052
OS: Ubuntu 22.04.5 LTS \n \l
# kamailio --version version: kamailio 5.5.7 (x86_64/linux) 272fdd flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 272fdd compiled on 14:21:35 Oct 21 2024 with gcc 11.4.0
# dpkg -l |grep openssl ii openssl 3.0.2-0ubuntu1.18 amd64 Secure Sockets Layer toolkit - cryptographic utility
Regards.
Hi
just a shot in the blue, as I had a similar Problem upgrading from 5.5 to 5.7.
Are you using MySQL?
Try: modparam("db_mysql", "opt_ssl_mode", 1) to disable MySQL SSL connection.
Thanks for your quick response. No, I'm not using mysql.
Regards.
On Tue, Jan 7, 2025 at 6:59 PM Benoît Panizzon benoit.panizzon@imp.ch wrote:
Hello,
you are using openssl 3.x – please update to one of the latest 5.7.x or 5.8.x and set the tls_thread_mode parameter to 2. This is a know issue. The 5.5.x branch is already end of life.
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: Mitesh Thakkar via sr-users sr-users@lists.kamailio.org Sent: Dienstag, 7. Januar 2025 14:16 To: sr-users@lists.kamailio.org Cc: Mitesh Thakkar mail.mthakkar@gmail.com Subject: [SR-Users] Kamailio crash
Hi,
I have recently migrated from Kamailio 5.2.5 to Kamailio 5.5.7. After a migration, the Kamailio crashed. Find the details below. Thanks in advance.
Back trace: ========= Core was generated by `/usr/local/sbin/kamailio -DD -E -m 1941 -M 970 -f /etc/kamailio/kamailio.cfg --'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f8e27a2be15 in OPENSSL_cleanse () from /lib/x86_64-linux-gnu/libcrypto.so.3 (gdb) bt #0 0x00007f8e27a2be15 in OPENSSL_cleanse () from /lib/x86_64-linux-gnu/libcrypto.so.3 #1 0x00007f8e278faa8a in CRYPTO_clear_free () from /lib/x86_64-linux-gnu/libcrypto.so.3 #2 0x00007f8e27838175 in BUF_MEM_free () from /lib/x86_64-linux-gnu/libcrypto.so.3 #3 0x00007f8e27bc0c98 in SSL_free () from /lib/x86_64-linux-gnu/libssl.so.3 #4 0x00007f8e27c8cd6e in tls_h_tcpconn_clean_f (c=0x7f8db0fa1e90) at tls_server.c:701 #5 0x000055f7f42cc6e1 in _tcpconn_free (c=0x7f8db0fa1e90) at core/tcp_main.c:1541 #6 0x000055f7f42e2f3c in tcpconn_put_destroy (tcpconn=0x7f8db0fa1e90) at core/tcp_main.c:3285 #7 0x000055f7f42e8759 in handle_tcp_child (tcp_c=0x7f8e27d88078, fd_i=-1) at core/tcp_main.c:3722 #8 0x000055f7f42f506f in handle_io (fm=0x7f8e27db1578, ev=1, idx=-1) at core/tcp_main.c:4539 #9 0x000055f7f42b6e49 in io_wait_loop_epoll (h=0x55f7f45ae240 <io_h>, t=5, repeat=0) at core/io_wait.h:1070 #10 0x000055f7f42f8bc3 in tcp_main_loop () at core/tcp_main.c:4824 #11 0x000055f7f4057fc2 in main_loop () at main.c:1856 #12 0x000055f7f4062670 in main (argc=10, argv=0x7ffc6d583528) at main.c:3052
OS: Ubuntu 22.04.5 LTS \n \l
# kamailio --version version: kamailio 5.5.7 (x86_64/linux) 272fdd flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 272fdd compiled on 14:21:35 Oct 21 2024 with gcc 11.4.0
# dpkg -l |grep openssl ii openssl 3.0.2-0ubuntu1.18 amd64 Secure Sockets Layer toolkit - cryptographic utility
Regards.