<div dir="ltr">Will keep that in mind for the future. Thanks a lot.<div><br></div><div>- Jayesh</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 27, 2015 at 7:10 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Pushed a fix for it in master and 4.3 branches. It is recommended to
    open an issue on tracker, because is usually easier to spot the open
    bugs there than on mailing list, especially after a period of
    traveling.<br>
    <br>
    Cheers,<br>
    Daniel</div><div bgcolor="#FFFFFF" text="#000000"><br>
    <br>
    <div>On 27/11/15 14:31, Jayesh Nambiar
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">So someone planning to patch it? Just asking?
        <div><br>
        </div>
        <div>Thanks,</div>
        <div><br>
        </div>
        <div>- Jayesh</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, Nov 26, 2015 at 6:48 PM Sergey Okhapkin
          <<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Confirmed,
          I'm getting crash too.<br>
          <br>
          On Thursday 26 November 2015 13:05:57 Jayesh Nambiar wrote:<br>
          > Hi,<br>
          > I am trying to extract out the expires value from the
          incoming REGISTER<br>
          > request. It might be present in the Contact header or as
          a separate Expires<br>
          > header and hence I planned to use the $expires(max) PV to
          get this. But<br>
          > kamailio just crashes as soon as I use the variable.
          Here's when it crashes:<br>
          ><br>
          > if(is_method("REGISTER")) {<br>
          >      xlog("L_INFO", "Expires is $expires(max)");<br>
          >      if(!save("location", "0x01")) {<br>
          > t_reply("500", "Error while saving AOR");<br>
          >      }<br>
          > }<br>
          ><br>
          > It crashes at the xlog point. Here's the backtrace for
          reference:<br>
          > Reading symbols from
          /usr/local/kamailio/sbin/kamailio...done.<br>
          > [New LWP 16609]<br>
          > [Thread debugging using libthread_db enabled]<br>
          > Using host libthread_db library
          "/lib/x86_64-linux-gnu/libthread_db.so.1".<br>
          > Core was generated by `/usr/local/kamailio/sbin/kamailio
          -P<br>
          > /var/run/kamailio.pid -f /usr/local/kamail'.<br>
          > Program terminated with signal SIGSEGV, Segmentation
          fault.<br>
          > #0  0x00007f34b658b311 in pv_get_expires
          (msg=0x7f34bd879e58,<br>
          > param=0x7f34bd7e9220, res=0x7ffcf67af530) at
          pv_core.c:3060<br>
          > 3060 if(c->expires &&
          c->expires->body.len) {<br>
          > (gdb) backtrace<br>
          > #0  0x00007f34b658b311 in pv_get_expires
          (msg=0x7f34bd879e58,<br>
          > param=0x7f34bd7e9220, res=0x7ffcf67af530) at
          pv_core.c:3060<br>
          > #1  0x00000000004fb6e1 in pv_get_spec_value
          (msg=0x7f34bd879e58,<br>
          > sp=0x7f34bd7e9208, value=0x7ffcf67af530) at pvapi.c:1304<br>
          > #2  0x00000000004fbb46 in pv_printf (msg=0x7f34bd879e58,<br>
          > list=0x7f34bd80ef38, buf=0x7f34bd8735a0 "Expires is ",
          len=0x7ffcf67af618)<br>
          > at pvapi.c:1363<br>
          > #3  0x00007f34b67ea745 in xl_print_log
          (msg=0x7f34bd879e58,<br>
          > list=0x7f34bd80ef38, buf=0x7f34bd8735a0 "Expires is ",
          len=0x7ffcf67af618)<br>
          > at xl_lib.c:37<br>
          > #4  0x00007f34b67eb0f9 in xlog_helper
          (msg=0x7f34bd879e58,<br>
          > xm=0x7f34bd808648, level=2, line=0, facility=-1) at
          xlog.c:215<br>
          > #5  0x00007f34b67ec160 in xlog_2_helper
          (msg=0x7f34bd879e58,<br>
          > lev=0x7f34bd7e9130 "", frm=0x7f34bd808648 "84\177",
          mode=0, facility=-1)<br>
          > at xlog.c:284<br>
          > #6  0x00007f34b67ec19c in xlog_2 (msg=0x7f34bd879e58,
          lev=0x7f34bd7e9130<br>
          > "", frm=0x7f34bd808648 "84\177") at xlog.c:292<br>
          > #7  0x000000000041e23b in do_action (h=0x7ffcf67b0b40,
          a=0x7f34bd817cd0,<br>
          > msg=0x7f34bd879e58) at action.c:1065<br>
          > #8  0x000000000042a8e7 in run_actions (h=0x7ffcf67b0b40,
          a=0x7f34bd813e18,<br>
          > msg=0x7f34bd879e58) at action.c:1548<br>
          > #9  0x000000000041ab16 in do_action (h=0x7ffcf67b0b40,
          a=0x7f34bd7e8738,<br>
          > msg=0x7f34bd879e58) at action.c:677<br>
          > #10 0x000000000042a8e7 in run_actions (h=0x7ffcf67b0b40,
          a=0x7f34bd7e8738,<br>
          > msg=0x7f34bd879e58) at action.c:1548<br>
          > #11 0x000000000041e094 in do_action (h=0x7ffcf67b0b40,
          a=0x7f34bd7e89c8,<br>
          > msg=0x7f34bd879e58) at action.c:1044<br>
          > #12 0x000000000042a8e7 in run_actions (h=0x7ffcf67b0b40,
          a=0x7f34bd7e19d8,<br>
          > msg=0x7f34bd879e58) at action.c:1548<br>
          > #13 0x000000000042b04d in run_top_route
          (a=0x7f34bd7e19d8,<br>
          > msg=0x7f34bd879e58, c=0x0) at action.c:1634<br>
          > #14 0x000000000050f3d4 in receive_msg (<br>
          >     buf=0xa80c00 <buf> "REGISTER sip:<a href="http://devsip.tlkn.com" rel="noreferrer" target="_blank">devsip.tlkn.com</a>
          SIP/2.0\r\nVia:<br>
          > SIP/2.0/UDP<br>
          >
203.153.53.145:8300;branch=z9hG4bK119a.e23ed10b856f38b41c93d1d259d8869f.0;i<br>
          > =b1\r\nVia: SIP/2.0/TCP<br>
          > 172.16.16.32:52358;rport=52359;received=203.153."...,
          len=712,<br>
          > rcv_info=0x7ffcf67b0e60) at receive.c:196<br>
          > #15 0x0000000000613b9e in udp_rcv_loop () at
          udp_server.c:495<br>
          > #16 0x00000000004aa119 in main_loop () at main.c:1577<br>
          > #17 0x00000000004b0e1e in main (argc=5,
          argv=0x7ffcf67b1318) at main.c:2553<br>
          ><br>
          > Thanks,<br>
          ><br>
          > - Jayesh<br>
          <br>
          _______________________________________________<br>
          SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
          mailing list<br>
          <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
          <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    </div><div bgcolor="#FFFFFF" text="#000000"><pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
  </div>

_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>