<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Olle,<br>
    <br>
    I made a note on your but tracker issue, because the new curl module
    doesn't seem to have some fixed done to utils module in
    august/september -- those patches look like fixing what you are
    facing. Have you seen it?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 07/12/15 16:06, Olle E. Johansson
      wrote:<br>
    </div>
    <blockquote
      cite="mid:79BC6157-BB72-4E1E-AA7B-729F0C59174B@edvina.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Please post this on the issue tracker. I also get crashes, but
      they’re not like this. 
      <div class=""><br class="">
      </div>
      <div class="">/Olle</div>
      <div class=""><br class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On 07 Dec 2015, at 15:54, Jayesh Nambiar <<a
                moz-do-not-send="true"
                href="mailto:jayesh1017@gmail.com" class=""><a class="moz-txt-link-abbreviated" href="mailto:jayesh1017@gmail.com">jayesh1017@gmail.com</a></a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div dir="ltr" class="">Hi,
                <div class="">I'm using http_query to send a post
                  request on a https URL. The weird part is it crashes
                  with segmentation fault when the response from the
                  server is 200. If the response was a 500, it works and
                  continues processing.</div>
                <div class="">Here's the function:</div>
                <div class="">http_query("<a moz-do-not-send="true"
                    href="https://notify.abcd.com/onnet/call" class="">https://notify.abcd.com/onnet/call</a>",
                  "$avp(devices)", "Content-Type: application/json"
                  "$var(response)");<br class="">
                </div>
                <div class="">xlog("L_INFO", "Response is
                  $var(response)");</div>
                <div class=""><br class="">
                </div>
                <div class="">And here's the backtrace on crash:</div>
                <div class="">
                  <div class="">0x00007f62f2bf8e38 in ?? ()</div>
                  <div class="">#1  0x00007f62ea22251b in http_query
                    (_m=0x7f62f2c3a038, _url=0x7f62f2bf3548
                    "\330\064\277\362b\177", _dst=0x7f62f2bf9250
                    "\030\215\277\362b\177", _post=0x7f62f2bf35c8
                    "\200r\277\362b\177", </div>
                  <div class="">    _hdr=0x7f62f2bf91d0
                    "h\221\277\362b\177") at functions.c:226</div>
                  <div class="">#2  0x00007f62ea229e0b in
                    w_http_query_post_hdr (_m=0x7f62f2c3a038,
                    _url=0x7f62f2bf3548 "\330\064\277\362b\177",
                    _post=0x7f62f2bf35c8 "\200r\277\362b\177",
                    _hdr=0x7f62f2bf91d0 "h\221\277\362b\177", </div>
                  <div class="">    _result=0x7f62f2bf9250
                    "\030\215\277\362b\177") at utils.c:483</div>
                  <div class="">#3  0x000000000041f6b5 in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2bf8a58,
                    msg=0x7f62f2c3a038) at action.c:1079</div>
                  <div class="">#4  0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2bf6fc0,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#5  0x000000000041f3ce in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2bfb9b0,
                    msg=0x7f62f2c3a038) at action.c:1045</div>
                  <div class="">#6  0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2bb9388,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#7  0x000000000041bc28 in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2b8f248,
                    msg=0x7f62f2c3a038) at action.c:678</div>
                  <div class="">#8  0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2b8e268,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#9  0x000000000041f3ce in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2b91040,
                    msg=0x7f62f2c3a038) at action.c:1045</div>
                  <div class="">#10 0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2b8b7a8,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#11 0x000000000041bc28 in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2b3a2c0,
                    msg=0x7f62f2c3a038) at action.c:678</div>
                  <div class="">#12 0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2b3a2c0,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#13 0x000000000041f3ce in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2b47f00,
                    msg=0x7f62f2c3a038) at action.c:1045</div>
                  <div class="">#14 0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2b37e80,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#15 0x000000000041bc28 in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2b1c9c8,
                    msg=0x7f62f2c3a038) at action.c:678</div>
                  <div class="">#16 0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2b1c9c8,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#17 0x000000000041f3ce in do_action
                    (h=0x7ffeb128c8c0, a=0x7f62f2b1cc28,
                    msg=0x7f62f2c3a038) at action.c:1045</div>
                  <div class="">#18 0x000000000042c2ea in run_actions
                    (h=0x7ffeb128c8c0, a=0x7f62f2b170a0,
                    msg=0x7f62f2c3a038) at action.c:1549</div>
                  <div class="">#19 0x000000000042ca93 in run_top_route
                    (a=0x7f62f2b170a0, msg=0x7f62f2c3a038, c=0x0) at
                    action.c:1635</div>
                  <div class="">#20 0x000000000051c115 in receive_msg (</div>
                  <div class="">    buf=0xab7520 <buf> "INVITE <a
                      moz-do-not-send="true"
                      href="http://sip:bdbbf600000001b5b919d0@devsip.abcd.com:8321/"
                      class=""><a class="moz-txt-link-freetext" href="sip:bdbbf600000001b5b919d0@devsip.abcd.com:8321">sip:bdbbf600000001b5b919d0@devsip.abcd.com:8321</a></a>
                    SIP/2.0\r\nRecord-Route: <<a
                      moz-do-not-send="true"
                      href="sip:203.153.53.145:8300;r2=on;lr=on"
                      class=""><a class="moz-txt-link-freetext" href="sip:203.153.53.145:8300;r2=on;lr=on">sip:203.153.53.145:8300;r2=on;lr=on</a></a>>\r\nRecord-Route:
                    <<a moz-do-not-send="true"
                      href="sip:203.153.53.145:8321;transport=tcp;r2=on;lr=on"
                      class="">sip:203.153.53.145:8321;transport=tcp;r2=on;lr=on</a>>\r\nVia:
                    SIP/2.0/UDP"..., len=1901, rcv_info=0x7ffeb128cc10)
                    at receive.c:196</div>
                  <div class="">#21 0x000000000062d427 in udp_rcv_loop
                    () at udp_server.c:495</div>
                  <div class="">#22 0x00000000004b28c1 in main_loop ()
                    at main.c:1593</div>
                  <div class="">#23 0x00000000004b9aa5 in main (argc=5,
                    argv=0x7ffeb128d118) at main.c:2597</div>
                </div>
                <div class=""><br class="">
                </div>
                <div class="">Can someone please confirm the crash so
                  that I'll go ahead and report this as an issue on the
                  tracker. Basically when it crashes, kamailio doesn't
                  even execute the xlog function after the http_query
                  call.</div>
                <div class="">P.S. <a moz-do-not-send="true"
                    href="http://abcd.com/" class="">abcd.com</a> is a
                  changed domain for confidential reasons.</div>
                <div class=""><br class="">
                </div>
                <div class="">Thanks,</div>
                <div class=""><br class="">
                </div>
                <div class="">- Jayesh</div>
                <div class=""><br class="">
                </div>
              </div>
              _______________________________________________<br
                class="">
              SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
              mailing list<br class="">
              <a moz-do-not-send="true"
                href="mailto:sr-users@lists.sip-router.org" class="">sr-users@lists.sip-router.org</a><br
                class="">
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br
                class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>