<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi there!</p>
<p>When I start my webrtc kamailio suddenly stops.</p>
<p>I can see this on syslog:</p>
<blockquote>
<p><tt>Dec 28 16:08:53 webrtc /usr/sbin/kamailio[803]: CRITICAL:
<core> [core/mem/q_malloc.c:519]: qm_free(): BUG:
freeing already freed pointer (0x7f55756c2ab8), called from
tls: tls_init.c: ser_free(323), first free tls: tls_init.c:
ser_malloc(293) - ignoring</tt><tt><br>
</tt><tt>Dec 28 16:08:53 webrtc /usr/sbin/kamailio[803]:
CRITICAL: <core> [core/mem/q_malloc.c:519]: qm_free():
BUG: freeing already freed pointer (0x7f55756c3138), called
from tls: tls_init.c: ser_free(323), first free tls:
tls_init.c: ser_malloc(293) - ignoring</tt></p>
<p><tt>... omit vervose ...<br>
</tt></p>
<p><tt>Dec 28 16:08:53 webrtc /usr/sbin/kamailio[803]: CRITICAL:
<core> [core/mem/q_malloc.c:519]: qm_free(): BUG:
freeing already freed pointer (0x7f55756c1f38), called from
tls: tls_init.c: ser_free(323), first free tls: tls_init.c:
ser_free(323) - ignoring</tt></p>
<p><tt>...</tt><tt> omit verbose ...<br>
</tt></p>
<tt>Dec 28 16:08:53 webrtc /usr/sbin/kamailio[803]: CRITICAL:
<core> [core/mem/q_malloc.c:519]: qm_free(): BUG: freeing
already freed pointer (0x7f557569f250), called from tls:
tls_init.c: ser_free(323), first free tls: tls_init.c:
ser_realloc(299) - ignoring</tt><br>
<tt>Dec 28 16:08:53 webrtc /usr/sbin/kamailio[803]: CRITICAL:
<core> [core/mem/q_malloc.c:519]: qm_free(): BUG: freeing
already freed pointer (0x7f557565cf60), called from tls:
tls_init.c: ser_free(323), first free tls: tls_init.c:
ser_malloc(293) - ignoring</tt><br>
<tt>Dec 28 16:08:53 webrtc /usr/sbin/kamailio[803]: INFO:
<core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP
API not initialized</tt><br>
</blockquote>
<p>OS info:</p>
<blockquote>
<p><tt>root@webrtc:/etc/kamailio# lsb_release -a</tt><tt><br>
</tt><tt>No LSB modules are available.</tt><tt><br>
</tt><tt>Distributor ID: Debian</tt><tt><br>
</tt><tt>Description: Debian GNU/Linux 10 (buster)</tt><tt><br>
</tt><tt>Release: 10</tt><tt><br>
</tt><tt>Codename: buster</tt><tt><br>
</tt></p>
<tt>root@webrtc:/etc/kamailio# free -m</tt><tt><br>
</tt><tt> total used free shared
buff/cache available</tt><tt><br>
</tt><tt>Mem: 16041 134 15551
108 356 15524</tt><tt><br>
</tt><tt>Swap: 974 0 974</tt><tt><br>
</tt></blockquote>
<p>Kamailio version: <br>
</p>
<blockquote>
<p><tt>version: kamailio 5.4.3 (x86_64/linux) </tt><tt><br>
</tt><tt>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_BLACKLIST,
HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED</tt><tt><br>
</tt><tt>ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</tt><tt><br>
</tt><tt>poll method support: poll, epoll_lt, epoll_et,
sigio_rt, select.</tt><tt><br>
</tt><tt>id: unknown </tt><tt><br>
</tt><tt>compiled with gcc 8.3.0</tt><br>
</p>
</blockquote>
<p>Kamailio params:</p>
<blockquote>
<p><tt>SHM_MEMORY=512</tt><tt><br>
</tt><tt>PKG_MEMORY=32</tt><tt><br>
</tt></p>
</blockquote>
<p>SSL info:</p>
<blockquote>
<p><tt>root@webrtc:/etc/kamailio# apt show openssl</tt><tt><br>
</tt><tt>Package: openssl</tt><tt><br>
</tt><tt>Version: 1.1.1d-0+deb10u4</tt><tt><br>
</tt><tt>Priority: optional</tt><tt><br>
</tt><tt>Section: utils</tt><tt><br>
</tt><tt>Maintainer: Debian OpenSSL Team
<a class="moz-txt-link-rfc2396E" href="mailto:pkg-openssl-devel@lists.alioth.debian.org"><pkg-openssl-devel@lists.alioth.debian.org></a></tt><tt><br>
</tt><tt>Installed-Size: 1.495 kB</tt><tt><br>
</tt><tt>Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.1)</tt><tt><br>
</tt><tt>Suggests: ca-certificates</tt><tt><br>
</tt><tt>Homepage: <a class="moz-txt-link-freetext" href="https://www.openssl.org/">https://www.openssl.org/</a></tt><tt><br>
</tt><tt>Download-Size: 843 kB</tt><tt><br>
</tt><tt>APT-Manual-Installed: no</tt><tt><br>
</tt><tt>APT-Sources: <a class="moz-txt-link-freetext" href="http://security.debian.org/debian-security">http://security.debian.org/debian-security</a>
buster/updates/main amd64 Packages</tt><tt><br>
</tt><tt>Description: juego de herramientas Secure Sockets Layer
- utilidad criptográfica</tt><tt><br>
</tt><tt> Este paquete forma parte de la implementación del
proyecto OpenSSL de los</tt><tt><br>
</tt><tt> protocolos criptográficos SSL y TLS para la
comunicación segura a través de</tt><tt><br>
</tt><tt> Internet.</tt><tt><br>
</tt><tt> .</tt><tt><br>
</tt><tt> Contiene el binario de propósito general para la línea
de órdenes</tt><tt><br>
</tt><tt> /usr/bin/openssl,</tt><tt><br>
</tt><tt> útil para operaciones criptográficas como:</tt><tt><br>
</tt><tt> * creación de parámetros clave RSA, DH y DSA;</tt><tt><br>
</tt><tt> * creación de certificados X.509, CSR y CRL;</tt><tt><br>
</tt><tt> * calcular resúmenes de mensajes;</tt><tt><br>
</tt><tt> * cifrado y descifrado con cifras;</tt><tt><br>
</tt><tt> * probar clientes y servidores SSL/TLS;</tt><tt><br>
</tt><tt> * gestión de correo firmado o cifrado S/MIME.</tt><tt><br>
</tt></p>
</blockquote>
<p>Should I use another version of openssl, or maybe use gnutls?</p>
<p>Regards,</p>
<p>Javier Valencia</p>
<p><br>
</p>
</body>
</html>