<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=utf-8">
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        mso-fareast-language:DE;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Thank you - please open a bug report on our tracker about this problem with the info you provided in the e-mail.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">-- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning Westerholt –
</span><span style="mso-fareast-language:EN-US"><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Kamailio services –
</span><span style="mso-fareast-language:EN-US"><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span style="mso-fareast-language:EN-US">
<span lang="EN-GB"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org>
<b>On Behalf Of </b>Ilie Soltanici<br>
<b>Sent:</b> Wednesday, November 27, 2019 8:00 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Subject:</b> [SR-Users] Kamailio xavp_contact - Segmentation Fault<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hello,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Kamailio is crashing when i'm trying to set the parameter;<o:p></o:p></p>
</div>
<div>
<div style="mso-element:para-border-div;border:solid #99CCCC 1.0pt;padding:0cm 0cm 0cm 15.0pt;background:#FCFFFC;margin-left:35.4pt;margin-right:0cm">
<pre style="background:#FCFFFC;border:none;padding:0cm;border-radius:2.5px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;overflow:auto;word-spacing:0px"><span style="font-size:11.5pt;color:black">modparam("tm|usrloc", "xavp_contact", "ulattrs")<o:p></o:p></span></pre>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">That's happening with Kamailio 5.3.1 and 5.2.5 too.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Crash is happening when Im register 2 devices with the same extension.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">This is the core dump:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library "/lib64/libthread_db.so.1".<br>
Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f /usr/local/etc/ka'.<br>
Program terminated with signal 11, Segmentation fault.<br>
#0  0x000000000057cca2 in xavp_get_internal (name=0x8, list=0x0, idx=0, prv=0x0) at core/xavp.c:288<br>
288     core/xavp.c: No such file or directory.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">(gdb) bt<br>
#0  0x000000000057cca2 in xavp_get_internal (name=0x8, list=0x0, idx=0, prv=0x0) at core/xavp.c:288<br>
#1  0x0000000000581869 in xavp_insert (xavp=0x0, idx=0, list=0x0) at core/xavp.c:752<br>
#2  0x00007f05be0ee3a1 in ki_t_next_contacts (msg=0x7f05cb76c218) at t_serial.c:552<br>
#3  0x00007f05be0f09e8 in t_next_contacts (msg=0x7f05cb76c218, key=0x0, value=0x0) at t_serial.c:756<br>
#4  0x0000000000434d41 in do_action (h=0x7ffe93c9cad0, a=0x7f05cb642250, msg=0x7f05cb76c218) at core/action.c:1067<br>
#5  0x00000000004418e8 in run_actions (h=0x7ffe93c9cad0, a=0x7f05cb642250, msg=0x7f05cb76c218) at core/action.c:1572<br>
#6  0x0000000000441fa9 in run_actions_safe (h=0x7ffe93c9de90, a=0x7f05cb642250, msg=0x7f05cb76c218) at core/action.c:1636<br>
#7  0x000000000065734e in rval_get_int (h=0x7ffe93c9de90, msg=0x7f05cb76c218, i=0x7ffe93c9cf78, rv=0x7f05cb642570, cache=0x0) at core/rvalue.c:912<br>
#8  0x000000000065b8fe in rval_expr_eval_int (h=0x7ffe93c9de90, msg=0x7f05cb76c218, res=0x7ffe93c9cf78, rve=0x7f05cb642568) at core/rvalue.c:1910<br>
#9  0x000000000065bd51 in rval_expr_eval_int (h=0x7ffe93c9de90, msg=0x7f05cb76c218, res=0x7ffe93c9d42c, rve=0x7f05cb642c98) at core/rvalue.c:1918<br>
#10 0x0000000000434807 in do_action (h=0x7ffe93c9de90, a=0x7f05cb645028, msg=0x7f05cb76c218) at core/action.c:1043<br>
#11 0x00000000004418e8 in run_actions (h=0x7ffe93c9de90, a=0x7f05cb637e48, msg=0x7f05cb76c218) at core/action.c:1572<br>
#12 0x0000000000431767 in do_action (h=0x7ffe93c9de90, a=0x7f05cb583858, msg=0x7f05cb76c218) at core/action.c:691<br>
#13 0x00000000004418e8 in run_actions (h=0x7ffe93c9de90, a=0x7f05cb574750, msg=0x7f05cb76c218) at core/action.c:1572<br>
#14 0x0000000000442071 in run_top_route (a=0x7f05cb574750, msg=0x7f05cb76c218, c=0x0) at core/action.c:1657<br>
#15 0x00000000005874a9 in receive_msg (buf=0xa6ec00 <buf.6868> "OPTIONS <a href="http://sip:10@192.168.0.231:5060">
sip:10@192.168.0.231:5060</a> SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.0.231;branch=z9hG4bKd8a9.1b3abe656532065414a2f35a8916008d.1\r\nVia: SIP/2.0/UDP 192.168.0.131:5060;received=192.168.0.131;branch=z9hG"...,<br>
    len=694, rcv_info=0x7ffe93c9e4d0) at core/receive.c:341<br>
#16 0x000000000047bf81 in udp_rcv_loop () at core/udp_server.c:541<br>
#17 0x0000000000424f9d in main_loop () at main.c:1669<br>
#18 0x000000000042c688 in main (argc=13, argv=0x7ffe93c9ea18) at main.c:2710<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thank you.<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>