<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<br>
<br>
I noticed a segmentation fault is caused by sst module :<br>
Client B2BUA (UAC) invite has : Session-Expires: 1000 Min-SE: 90<br>
Opensips SST min_se configured at 1800s, dialog has sst_flag.<br>
This causes Opensips to crash : <br>
<br>
opensips log :<br>
<br>
Mar 3 13:06:10 test-boxopensips /usr/sbin/opensips[6088]: CRITICAL:core:sig_usr: segfault in process pid: 6088, id: 6<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Mar 3 13:06:11 test-boxopensips /usr/sbin/opensips[6082]: INFO:core:handle_sigs: child process 6088 exited by a signal 11<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Mar 3 13:06:11 test-boxopensips /usr/sbin/opensips[6082]: INFO:core:handle_sigs: core was not generated<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Mar 3 13:06:11 test-boxopensips /usr/sbin/opensips[6082]: INFO:core:handle_sigs: terminating due to SIGCHLD<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Sys log : <br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Mar 3 13:06:58 test-boxopensips kernel: [ 9969.171168] opensips[6185]: segfault at 968 ip 00007f3da464b901 sp 00007ffe8aec6f00 error 4 in tm.so[7f3da4617000+46000]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Mar 3 13:06:58 test-boxopensips kernel: [ 9969.173758] Code: 89 44 24 68 31 c0 81 fa c7 00 00 00 0f 87 17 02 00 00 41 8d 84 24 d4 fe ff ff 83 f8 63 0f 86 0e 01 00 00 48 8b 85 f0 00 00 00 <8b> 80 68 09 00 00 41 33 85
68 09 00 00 a8 01 0f 85 39 01 00 00 4c<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><br>
I have already solved the scripting problem by using sstCheckIn to adapt SessionExpire value to Opensips’s min_se value.<br>
Also, if the the UAC changes its session expires value to any value identical or higher than the one configured in OpenSIPS min_se value solves the problem.<br>
<br>
My question : is this a normal behavior for opensips to completely crash ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><br>
Opensips version : <br>
<br>
version: opensips 3.2.11 (x86_64/linux)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">poll method support: poll, epoll, sigio_rt, select.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">main.c compiled on with gcc 10<br>
<br>
Thank you.<br>
<br>
<br>
<o:p></o:p></span></p>
</div>
</body>
</html>