<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>The backtraces are incomplete because you need to install
kamailio debugging symbols -- there is a package named
kamailio-dbg or so that has to be installed.</p>
<p>Then it seems to be some protection on the system preventing
loading other libraries, based on the content of the file you
sent. Apparently you have to disable this security protection by
adding:</p>
<p> set auto-load safe-path /<br>
</p>
<p>line to your configuration file "/root/.gdbinit".<br>
</p>
<p>Then reproduce the case and grab again the kamctl trap. After
that you can eventually revert the change in /root/.gdbinit.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 19.11.20 20:48, Uttam Giri wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHwPDxPRXihJcXbsaFfNLPyvcprS12CidOQrc2vLRAgKw=bvXw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Thanks Daniel for your response.
<div><br>
</div>
<div>Please find attached the "kamctl trap" output file, we were
able to recreate that issue again. </div>
<div><span>Traffics are not blocked as I can see </span>messages<span> are
received on the kamailio listen interface by using sngrep
tool.</span></div>
<div><span>Also, the pike module is not in effect as </span><span>WITH_ANTIFLOOD
is not defined in the default configuration.</span></div>
<div><span><br>
</span></div>
<div><span>Thanks,</span></div>
<div><span>Uttam</span></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Nov 19, 2020 at 10:17
AM Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hello,</p>
<p>install gdb and when the kamailio stops responding send
here the file generated by the next command:</p>
<p>kamctl trap</p>
<p>The path to the file is printed when the command is
executed. Note that it can take a bit to generate the
file, if you have a lot of kamailio processes. The file
contains the gdb backtrace for each process, showing what
they do at that moment.</p>
<p>For a few of other hints, be sure you don't block the
traffic with the firewall/fail2ban or with pike module in
kamailio.cfg.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>On 19.11.20 16:46, Uttam Giri wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div>
<div>We are using Kamailio with Jitsi client where we
observed sometimes Kamailio stops responding to sip
messages. As a result, my Jitsi client goes offline
and never back online. Also in the Kamailio syslog
there are no error logs(debug enabled) related to
this issue. As a temporary workaround, we had to
restart the Kamailio server all the time.</div>
<div>Does anyone observed a similar issue and can
suggest any resolution.</div>
<div><br>
</div>
<div>Kamailio version:-</div>
<div>version: kamailio 5.3.5 (x86_64/linux)<br>
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<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE
262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT
PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et,
sigio_rt, select.<br>
id: unknown<br>
compiled with gcc 7.5.0<br>
</div>
<div><br>
</div>
<div>UDP process when Kamailio stops responding:-.</div>
<div><br>
</div>
<div>root@ip-10-68-16-14:/home/ugiri# kamctl ps<br>
{<br>
"jsonrpc": "2.0",<br>
"result": [<br>
{<br>
"IDX": 0,<br>
"PID": 15436,<br>
"DSC": "main process - attendant"<br>
}, {<br>
"IDX": 1,<br>
"PID": 15442,<br>
"DSC": "udp receiver child=0 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 2,<br>
"PID": 15443,<br>
"DSC": "udp receiver child=1 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 3,<br>
"PID": 15444,<br>
"DSC": "udp receiver child=2 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 4,<br>
"PID": 15445,<br>
"DSC": "udp receiver child=3 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 5,<br>
"PID": 15446,<br>
"DSC": "udp receiver child=4 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 6,<br>
"PID": 15447,<br>
"DSC": "udp receiver child=5 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 7,<br>
"PID": 15448,<br>
"DSC": "udp receiver child=6 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 8,<br>
"PID": 15449,<br>
"DSC": "udp receiver child=7 sock=<a
href="http://10.68.16.14:5060" target="_blank"
moz-do-not-send="true">10.68.16.14:5060</a> (<a
href="http://100.26.5.214:5060" target="_blank"
moz-do-not-send="true">100.26.5.214:5060</a>)"<br>
}, {<br>
"IDX": 9,<br>
"PID": 15450,<br>
"DSC": "slow timer"<br>
}, {<br>
"IDX": 10,<br>
"PID": 15451,<br>
"DSC": "timer"<br>
}, {<br>
"IDX": 11,<br>
"PID": 15452,<br>
"DSC": "secondary timer"<br>
</div>
<div> }, {<br>
"IDX": 12,<br>
"PID": 15453,<br>
"DSC": "JSONRPCS FIFO"<br>
}, {<br>
"IDX": 13,<br>
"PID": 15454,<br>
"DSC": "JSONRPCS DATAGRAM"<br>
}, {<br>
"IDX": 14,<br>
"PID": 15455,<br>
"DSC": "ctl handler"<br>
}, {<br>
"IDX": 15,<br>
"PID": 15456,<br>
"DSC": "Http Async Worker"<br>
}, {<br>
"IDX": 16,<br>
"PID": 15457,<br>
"DSC": "Http Async Worker"<br>
}, {<br>
"IDX": 17,<br>
"PID": 15458,<br>
"DSC": "TIMER NH"<br>
}, {<br>
"IDX": 18,<br>
"PID": 15459,<br>
"DSC": "tcp main process"<br>
}<br>
],<br>
"id": 17709<br>
}<br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Uttam</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
</div>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>