Hello
I have a similar problem
The trace is different, but the accompanying log entry similarly reports twice freed
memory
``modparam("tls", "init_mode", 1)``
```
kamailio -V
version: kamailio 5.7.2 (x86_64/linux) 29caa1
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST,
DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, 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: 29caa1
compiled on 11:40:35 Nov 16 2023 with clang 9.0
```
```
#0 0x00007f2c94af2db1 in RSA_size () from /var/lib/ums/lib64/libcrypto.so.3
#1 0x00007f2c94bab19b in rsa_sign () from /var/lib/ums/lib64/libcrypto.so.3
#2 0x00007f2c94bab990 in rsa_digest_sign_final () from /var/lib/ums/lib64/libcrypto.so.3
#3 0x00007f2c94a95306 in EVP_DigestSignFinal () from /var/lib/ums/lib64/libcrypto.so.3
#4 0x00007f2c94d57e53 in tls_construct_cert_verify () from
/var/lib/ums/lib64/libssl.so.3
#5 0x00007f2c94d4df28 in state_machine () from /var/lib/ums/lib64/libssl.so.3
#6 0x00007f2c94dc1aca in tls_accept (c=0x7f2c152b4b78, error=0x7ffce6b81fb8) at
tls_server.c:470
#7 0x00007f2c94dd3d24 in tls_h_read_f (c=0x7f2c152b4b78, flags=0x7ffce6b8443c) at
tls_server.c:1175
#8 0x0000000000832538 in tcp_read_headers (c=0x7f2c152b4b78, read_flags=0x7ffce6b8443c)
at core/tcp_read.c:441
#9 0x000000000083aa4d in tcp_read_req (con=0x7f2c152b4b78, bytes_read=0x7ffce6b84440,
read_flags=0x7ffce6b8443c) at core/tcp_read.c:1469
#10 0x000000000085419b in handle_io (fm=0x7f2c9513b7a8, events=1, idx=-1) at
core/tcp_read.c:1780
#11 0x0000000000850f70 in io_wait_loop_epoll (h=0xb99020 <io_w>, t=2, repeat=0) at
core/io_wait.h:1070
#12 0x00000000008444ae in tcp_receive_loop (unix_sock=47) at core/tcp_read.c:1976
#13 0x0000000000600235 in tcp_init_children (woneinit=0x7ffce6b86a78) at
core/tcp_main.c:5239
#14 0x000000000043b403 in main_loop () at main.c:1851
#15 0x000000000044a9f3 in main (argc=9, argv=0x7ffce6b88b68) at main.c:3086
```
```
CRITICAL: <core> [core/mem/q_malloc.c:521]: qm_free(): BUG: freeing already freed
pointer (0x7f2c152ce688), called from tls: tls_init.c: ser_free(405), first free tls:
tls_init.c: ser_free(405) - ignoring
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3635#issuecomment-1826069057
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3635/1826069057(a)github.com>