<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">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>