<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All,<div><br></div><div>I've had a couple of incidents this week where OpenSIPs crashed during BYE processing, in both cases the SIP logs show BYE arriving from both sides of a call within a couple of milliseconds - these overlap and result in 481's being both sent to our media server and being received from our media server as shown in the image below (UA <> OpenSIPs <> Media server):</div><div><br></div><div><div><img src="cid:ii_ka27vhqw1" alt="image.png" width="329" height="154"><br></div></div><div><br></div><div>It is during the processing of the final 481 that OpenSIPs hits the bug. The error shown in the logs is:</div><div><font face="monospace"><br></font></div><div><font face="monospace">opensips[234594]: CRITICAL:core:fm_free: freeing already freed shm pointer (0x7f56fefaaa18), first free: (null): (null)(0) - aborting!</font><br></div><div><br></div><div>User logs show that the 481 was being processed for an established dialog and executes an onreply route followed by a failure route. The failure route issues t_check_trans and rtpengine_delete (which may have already been removed during BYE processing). Is there likely to be anything that I can do at the script level if this is a race condition?</div><div><br></div><div>This server is using the official CentOS 3.0.1 release, happy to upgrade if there have been any relevant fixes since that version.</div><div><br></div><div>Thanks,</div><div><br></div><div>Callum</div></div></div></div></div>

<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font size="3" face="Verdana"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p><div><a href="https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm" target="_blank"><img src="https://www.x-on.co.uk/email/footer/banner-awards-coronavirus.jpg"></a></div><div><br></div><div><div><div><font size="4"><b><sup><font face="Verdana">0333 332 0000  |  <a href="https://www.x-on.co.uk" target="_blank">x-on.co.uk</a>  |  <sub> </sub></font></sup></b></font><font size="4"><b><sub><sup><font face="Verdana"><a href="https://www.linkedin.com/company/x-on" target="_blank"><img src="http://www.x-on.co.uk//images/icon/linkedin.png" width="24" height="24"></a>  <a href="https://www.facebook.com/XonTel" target="_blank"><img src="http://www.x-on.co.uk//images/icon/facebook.png" width="24" height="24"></a>  <a href="https://twitter.com/xonuk" target="_blank"><img src="http://www.x-on.co.uk//images/icon/twitter.png" width="24" height="24"></a></font></sup></sub> </b></font><b style="font-size:large"><sup><font face="Verdana">  |  <a href="https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm" target="_blank">Coronavirus</a></font></sup></b><br><p><span style="font-family:Verdana;font-size:8px"><a href="http://www.itspa.org.uk/itspa-awards" target="_blank">THE ITSPA AWARDS 2020</a> AND Best ITSP - Mid Market, Best Software and Best Vertical Solution are trade marks of the Internet Telephony Services Providers' Association, used under licence.</span></p><p><span style="font-size:6.0pt;font-family:Verdana;color:black">X-on
is a trading name of Storacall Technology Ltd a limited company registered in
England and Wales.<br>
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.<br>
The information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately on <span>+44(0)333 332 0000</span> and delete the<br>message from your computer. If you are not a named addressee you must not use,
disclose, disseminate, distribute, copy, print or reply to this email. </span><span style="font-size:6.0pt;font-family:Verdana;color:black">Views
or opinions expressed by an individual<br>within this email may not necessarily
reflect the views of X-on or its associated companies. Although X-on routinely
screens for viruses, addressees should scan this email and any attachments<br>for
viruses. X-on makes no representation or warranty as to the absence of viruses
in this email or any attachments.</span></p>





<p><span style="font-size:6.0pt;font-family:Verdana;color:black"></span><font size="2"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span></font></p></div></div></div>