<div dir="ltr">Hello! <br>we  have kamailio 5.2.3 and openssl 1.1.0f.<br>wss connections incoming to kamailio and outgoing sip connections, after some time http request check not getting answer from kamailio. Netstat show increase recieve tcp buffer on connections of kamailio. <div><br></div><div>We set up script which after not response of http check, run  SIGSEGV of main process of kamailio.</div><div class="gmail-adL">


        
        <span></span>
        
        


<p style="margin-bottom:0in;line-height:100%">gdb) bt full</p>
<p style="margin-bottom:0in;line-height:100%">#0 
0x00007fb779279450 in futex_wait (private=<optimized out>,
expected=1, futex_word=0x7fb6f78cb964) at
../sysdeps/unix/sysv/linux/futex-internal.h:61</p>
<p style="margin-bottom:0in;line-height:100%">        __ret = -512</p>
<p style="margin-bottom:0in;line-height:100%">        err =
<optimized out></p>
<p style="margin-bottom:0in;line-height:100%">#1 
futex_wait_simple (private=<optimized out>, expected=1,
futex_word=0x7fb6f78cb964) at ../sysdeps/nptl/futex-internal.h:135</p>
<p style="margin-bottom:0in;line-height:100%">No locals.</p>
<p style="margin-bottom:0in;line-height:100%">#2 
__pthread_rwlock_wrlock_slow (rwlock=0x7fb6f78cb958) at
pthread_rwlock_wrlock.c:67</p>
<p style="margin-bottom:0in;line-height:100%">        waitval = 1</p>
<p style="margin-bottom:0in;line-height:100%">        result = 0</p>
<p style="margin-bottom:0in;line-height:100%">        futex_shared
= <optimized out></p>
<p style="margin-bottom:0in;line-height:100%">#3 
0x00007fb77995eee9 in CRYPTO_THREAD_write_lock () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1</p>
<p style="margin-bottom:0in;line-height:100%">No symbol table info
available.</p>
<p style="margin-bottom:0in;line-height:100%">#4 
0x00007fb779907896 in ?? () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1</p>
<p style="margin-bottom:0in;line-height:100%">No symbol table info
available.</p>
<p style="margin-bottom:0in;line-height:100%">#5 
0x00007fb77990807e in CRYPTO_free_ex_data () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1</p>
<p style="margin-bottom:0in;line-height:100%">No symbol table info
available.</p>
<p style="margin-bottom:0in;line-height:100%">#6 
0x00007fb779c65a09 in SSL_free () from
/usr/lib/x86_64-linux-gnu/libssl.so.1.1</p>
<p style="margin-bottom:0in;line-height:100%">No symbol table info
available.</p>
<p style="margin-bottom:0in;line-height:100%">#7 
0x00007fb777c022d6 in tls_h_tcpconn_clean (c=0x7fb6fbb73d58) at
tls_server.c:655</p>
<p style="margin-bottom:0in;line-height:100%">        extra =
0x7fb6fba1a6d0</p>
<p style="margin-bottom:0in;line-height:100%">        __func__ =
"tls_h_tcpconn_clean"</p>
<p style="margin-bottom:0in;line-height:100%">#8 
0x0000559ddff2966f in _tcpconn_free (c=0x7fb6fbb73d58) at
core/tcp_main.c:1339</p>
<p style="margin-bottom:0in;line-height:100%">        __func__ =
"_tcpconn_free"</p>
<p style="margin-bottom:0in;line-height:100%">#9 
0x0000559ddff3c5f7 in tcpconn_put_destroy (tcpconn=0x7fb6fbb73d58) at
core/tcp_main.c:3017</p>
<p style="margin-bottom:0in;line-height:100%">        __func__ =
"tcpconn_put_destroy"</p>
<p style="margin-bottom:0in;line-height:100%">#10
0x0000559ddff3e0f2 in send_fd_queue_run (q=0x559de0518bc0
<send2child_q>) at core/tcp_main.c:3210</p>
<p style="margin-bottom:0in;line-height:100%">        p =
0x7fb77e19e2c8</p>
<p style="margin-bottom:0in;line-height:100%">        t =
0x7fb77e19e2c8</p>
<p style="margin-bottom:0in;line-height:100%">        __func__ =
"send_fd_queue_run"</p>
<p style="margin-bottom:0in;line-height:100%">#11
0x0000559ddff4f61c in tcp_main_loop () at core/tcp_main.c:4548</p>
<p style="margin-bottom:0in;line-height:100%">        si = 0x0</p>
<p style="margin-bottom:0in;line-height:100%">        r = 10</p>
<p style="margin-bottom:0in;line-height:100%">        __func__ =
"tcp_main_loop"</p>
<p style="margin-bottom:0in;line-height:100%">#12
0x0000559ddfe4e85d in main_loop () at main.c:1753</p>
<p style="margin-bottom:0in;line-height:100%">        i = 3</p>
<p style="margin-bottom:0in;line-height:100%">        pid = 0</p>
<p style="margin-bottom:0in;line-height:100%">        si = 0x0</p>
<p style="margin-bottom:0in;line-height:100%">        si_desc =
"udp receiver child=2 sock=<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>
(<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>)\000\065\060\066\060)\000\000\000\000\200\000\000\000\000\000\000\000\002\000\000\000\000\006\000\000\000\000\000\000\000O
\254\177\267\177\000\000p\324\067?\375\177\000\000\060\000\000\000\060\000\000\000\020\325\067?\375\177\000\000\360k\255}\267\177\000"</p>
<p style="margin-bottom:0in;line-height:100%">        nrprocs = 3</p>
<p style="margin-bottom:0in;line-height:100%">        woneinit = 1</p>
<p style="margin-bottom:0in;line-height:100%">        __func__ =
"main_loop"</p>
<p style="margin-bottom:0in;line-height:100%">#13
0x0000559ddfe554ce in main (argc=13, argv=0x7ffd3f37d7a8) at
main.c:2696</p>
<p style="margin-bottom:0in;line-height:100%">        cfg_stream =
0x559de1c10010</p>
<p style="margin-bottom:0in;line-height:100%">        c = -1</p>
<p style="margin-bottom:0in;line-height:100%">        r = 0</p>
<p style="margin-bottom:0in;line-height:100%">        tmp =
0x7ffd3f37deba ""</p>
<p style="margin-bottom:0in;line-height:100%">        tmp_len =
32765</p>
<p style="margin-bottom:0in;line-height:100%">        port =
1060623840</p>
<p style="margin-bottom:0in;line-height:100%">        proto =
32695</p>
<p style="margin-bottom:0in;line-height:100%">        options =
0x559de01c2a50
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"</p>
<p style="margin-bottom:0in;line-height:100%">        ret = -1</p>
<p style="margin-bottom:0in;line-height:100%">        seed =
33232859</p>
<p style="margin-bottom:0in;line-height:100%">---Type <return>
to continue, or q <return> to quit---</p>
<p style="margin-bottom:0in;line-height:100%">        rfd = 4</p>
<p style="margin-bottom:0in;line-height:100%">        debug_save =
0</p>
<p style="margin-bottom:0in;line-height:100%">        debug_flag =
0</p>
<p style="margin-bottom:0in;line-height:100%">       
dont_fork_cnt = 0</p>
<p style="margin-bottom:0in;line-height:100%">        n_lst = 0x0</p>
<p style="margin-bottom:0in;line-height:100%">        p = 0xf0b5ff
<error: Cannot access memory at address 0xf0b5ff></p>
<p style="margin-bottom:0in;line-height:100%">        st = {st_dev
= 19, st_ino = 13222, st_nlink = 2, st_mode = 16832, st_uid = 108,
st_gid = 112, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize =
4096, st_blocks = 0, st_atim = {</p>
<p style="margin-bottom:0in;line-height:100%">            tv_sec =
1560780032, tv_nsec = 539855841}, st_mtim = {tv_sec = 1565076521,
tv_nsec = 998570962}, st_ctim = {tv_sec = 1565076521, tv_nsec =
998570962}, __glibc_reserved = {0, 0, 0}}</p>
<p style="margin-bottom:0in;line-height:100%">        __func__ =
"main"</p><p style="margin-bottom:0in;line-height:100%"><br></p><p style="margin-bottom:0in;line-height:100%">Maybe our problem correlate with <a href="https://github.com/kamailio/kamailio/issues/1860">https://github.com/kamailio/kamailio/issues/1860</a></p>

</div></div>