<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">.style1 {font-family: "Times New Roman";}</style></head><body>
<div class="moz-cite-prefix">On 02/06/2021 18:25, Daniel-Constantin
Mierla wrote:<br>
</div>
<blockquote type="cite" cite="mid:1ddff5c1-9437-1f62-b704-e8589c10ed32@gmail.com">
<p>Hello,<br>
</p>
<div class="moz-cite-prefix">On 02.06.21 19:00, Trevor Hemsley
wrote:<br>
</div>
<blockquote type="cite" cite="mid:eda8d604-1d66-66a8-379d-8aa19888e448@voiceflex.com">
<style type="text/css">.style1 {font-family: "Times New Roman";}</style>
<div class="moz-text-html" lang="x-western"> Hi<br>
<br>
We've seen a few occurrences of this crash since we
implemented kamailio 5.4.5 for our inbound call traffic.</div>
</blockquote>
<p>to clarify: have you made an update to kamailio 5.4.5 from an
older version and since then you started to have such crashes?
If yes, what was the previous version? I quickly checked and
there were no major changes to dialog module in 5.4 branch.<br>
</p>
<p>If you started with this version, is it under heavy load? Have
you captured the SIP traffic? It would be useful to see the sip
messages for such call. <br>
</p>
</blockquote>
<br>
We were running an ancient kamailio before, I think 4.0.3 or
something like that. This is a completely fresh install from
scratch. And yes, depends on your definition of heavy load but
looking at the stats I think it's about 2.5 million calls in
approximately 4 weekdays (plus 3 low traffic weekend days). The one
that crashed this morning at 07:xx has done 425k in the
approximately 12 hours since. The box doesn't seem to be under heavy
load from a linux perspective, cpu usage under 20% (two cores), more
than 1GB RAM free of the 2GB allocated, load average under 1.0 all
the time.<br>
<br>
<br>
<blockquote type="cite" cite="mid:1ddff5c1-9437-1f62-b704-e8589c10ed32@gmail.com">
<blockquote type="cite" cite="mid:eda8d604-1d66-66a8-379d-8aa19888e448@voiceflex.com">
<div class="moz-text-html" lang="x-western"> Preceding the crash
we always get a message in the logs about "dialog
[dlg_hash.c:1182]: next_state_dlg(): bogus event 2 in state 5
for dlg" and whenever we see that message, we get the crash.<br>
<br>
Jun 1 10:12:14 thissystem /usr/sbin/kamailio[20001]:
CRITICAL: {2 1 INVITE <a class="moz-txt-link-abbreviated" href="mailto:6787142-3831531134-1330894187@some.telco.domain" moz-do-not-send="true">
6787142-3831531134-1330894187@some.telco.domain</a>} dialog
[dlg_hash.c:1182]: next_state_dlg(): bogus event 2 in state 5
for dlg 0x7fae153d3cf0 [3973:6059] with clid '<a class="moz-txt-link-abbreviated" href="mailto:82608924-3831089984-1833452161@some.telco.domain" moz-do-not-send="true">82608924-3831089984-1833452161@some.telco.domain</a>'
and tags '3831089984-684203260' ''<br>
<br>
The crash happens on line 879 of <a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/blob/master/src/modules/dialog/dlg_db_handler.c" target="_BLANK" moz-do-not-send="true">
https://github.com/kamailio/kamailio/blob/master/src/modules/dialog/dlg_db_handler.c</a></div>
</blockquote>
<p>You reference to code in master branch, not in 5.4 branch, so
unless you did the remapping, the lines might not be the same. <br>
</p>
</blockquote>
<br>
The code is the same, at least as far as line 879 is concerned. And
the source I've been referencing is the local copy that I built our
packages from, I just figured that it would be more visible to use a
link to the git copy rather than quoting bits out of the local copy.<br>
<br>
<br>
<blockquote type="cite" cite="mid:1ddff5c1-9437-1f62-b704-e8589c10ed32@gmail.com">
<p>You can eventually open an issue in the bug tracker to collect
the details there and assist with troubleshooting.</p>
</blockquote>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/issues/2757">https://github.com/kamailio/kamailio/issues/2757</a><br>
<br>
P.S. I did try to ask on Freenode #kamailio but I guess the channel
is abandoned due to the recent Freenode kerfuffle though I did look
on libera.chat for an equivalent and could not find one.<br>
<br>
<br>
Trevor Hemsley<br>
<br>
<br>
<br><br><p style="font-family: Verdana; font-size:10pt; color:#666666;"><b>Disclaimer</b></p><p style="font-family: Verdana; font-size:8pt; color:#666666;">The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.<br><br>This email has been scanned for viruses and malware, and may have been automatically archived by <b>Mimecast Ltd</b>, an innovator in Software as a Service (SaaS) for business. Providing a <b>safer</b> and <b>more useful</b> place for your human generated data. Specializing in; Security, archiving and compliance. To find out more <a href="http://www.mimecast.com/products/" target="_blank">Click Here</a>.</p></body></html>