<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Yes, it makes sense as the crash (on bogus mem ops) was related
      to an invalid Contact URI in the SIP request.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 18.05.2016 17:06, John Nash wrote:<br>
    </div>
    <blockquote
cite="mid:CAA4rGPwyk-=WMJtS29WRjYSXYRg5JR2s+Loi4jahY_Epv+3Org@mail.gmail.com"
      type="cite">
      <div dir="ltr">OK. will update.Thank you. SIP message validate in
        the script seemed to have stopped this crash or its not related
        to that? </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, May 18, 2016 at 5:51 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi John,<br>
                <br>
                Thanks for the info, I managed to find the bug and have
                it fixed:<br>
                   
                <a moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips/commit/4b0fca533cd7be4a45c1381c78f2b37aaba6152b"
                  target="_blank">https://github.com/OpenSIPS/opensips/commit/4b0fca533cd7be4a45c1381c78f2b37aaba6152b</a><br>
                <br>
                Please update from GIT and let me know if you still have
                the problem.<br>
                <br>
                Best regards,<br>
              </tt><span class="">
                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              </span>
              <div>
                <div class="h5">
                  <div>On 17.05.2016 21:37, John Nash wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hello Bogdan,
                      <div><br>
                      </div>
                      <div>The version is Server:: OpenSIPS (2.1.2
                        (x86_64/linux))</div>
                      <div><br>
                      </div>
                      <div>Since this is live we do not have detailed
                        debug. Below is what happened before crash (We
                        had multiple such entries). I figured it might
                        be related to malformed SIP message so I
                        applied sipmsg_validate() function even for so
                        called trusted endpoints.<br>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>
                          <div>May 11 20:38:30 localhost
                            opensips[10315]: ERROR:tm:send_ack: failed
                            to generate a HBH ACK if key HFs in reply
                            missing</div>
                          <div>May 11 20:38:30 localhost
                            opensips[10315]: ERROR:tm:reply_received:
                            failed to send ACK (local=no)</div>
                          <div>May 11 20:38:46 localhost
                            opensips[10315]: ERROR:tm:send_ack: failed
                            to generate a HBH ACK if key HFs in reply
                            missing</div>
                          <div>May 11 20:38:46 localhost
                            opensips[10315]: ERROR:tm:reply_received:
                            failed to send ACK (local=no)</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:parse_to:
                            unexpected char [#015] in status 1:
                            &lt;&lt;"1234  <a moz-do-not-send="true"
                              href="mailto:sip:3437558@x.x.x.x:5060"
                              target="_blank">&lt;sip:3437558@x.x.x.x:5060&gt;</a>;tag=2878411H96479&gt;&gt;

                            .</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]:
                            ERROR:core:parse_from_header: bad from
                            header</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]:
                            ERROR:dialog:dlg_create_dialog: bad request
                            or missing FROM hdr :-/</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:skip_name:
                            closing quote missing in name part of
                            Contact</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:parse_contacts:
                            failed to skip name part</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:contact_parser:
                            failed to parse contacts</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:parse_contact:
                            failed to parse contact</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]:
                            ERROR:topology_hiding:topo_no_dlg_encode_contact:
                            bad Contact HDR</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:skip_name:
                            closing quote missing in name part of
                            Contact</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:parse_contacts:
                            failed to skip name part</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:contact_parser:
                            failed to parse contacts</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]: ERROR:core:parse_contact:
                            failed to parse contact</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]:
                            ERROR:topology_hiding:build_encoded_contact_suffix:
                            bad Contact HDR</div>
                          <div>May 11 20:38:51 localhost
                            opensips[10314]:
                            CRITICAL:topology_hiding:build_encoded_contact_suffix:
                            #012&gt;&gt;&gt; pkg_free() on non-pkg ptr
                            0x18 - aborting!#012#012It seems you have
                            hit a programming bug.#012Please help us
                            make OpenSIPS better by reporting it at <a
                              moz-do-not-send="true"
                              href="https://github.com/OpenSIPS/opensips/issues#012"
                              target="_blank"><a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues#012">https://github.com/OpenSIPS/opensips/issues#012</a></a></div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Tue, May 17, 2016 at
                        9:35 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:bogdan@opensips.org"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi
                              Nash,<br>
                              <br>
                              What version of OpenSIPS are you using ?
                              also, before that CRITICAL message, do you
                              see any other error messages in the logs ?<br>
                              <br>
                              Regards,<br>
                            </tt>
                            <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                            <div>
                              <div>
                                <div>On 12.05.2016 08:46, John Nash
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">Actually crash happened
                                    shortly after we uploaded 11000
                                    codes but looks like it is not
                                    related to drouting. I see following
                                    message 
                                    <div><br>
                                    </div>
                                    <div>CRITICAL:topology_hiding:build_encoded_contact_suffix:


                                      #012&gt;&gt;&gt; pkg_free() on
                                      non-pkg ptr 0x18 -
                                      aborting!#012#012It seems you have
                                      hit a programming bug.#012Please
                                      help us make OpenSIPS better by
                                      reporting it at <a
                                        moz-do-not-send="true"
                                        href="https://github.com/OpenSIPS/opensips/issues#012"
                                        target="_blank"><a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues#012">https://github.com/OpenSIPS/opensips/issues#012</a></a><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>In log file I see following
                                      messages time to time </div>
                                    <div>ERROR:core:pv_get_contact_body:
                                      failed to parse contact hdr<br>
                                    </div>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">On Wed, May
                                      11, 2016 at 11:29 PM, John Nash <span
                                        dir="ltr">&lt;<a
                                          moz-do-not-send="true"
                                          href="mailto:john.nash778@gmail.com"
                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:john.nash778@gmail.com">john.nash778@gmail.com</a></a>&gt;</span>
                                      wrote:<br>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div dir="ltr">I have been using
                                          drouting module with just 200
                                          entries from 8 months
                                          yesterday we had need of
                                          adding around 11000 entries in
                                          rules table but after that
                                          opensips started to crash. I
                                          am currently using -m 2048 -M
                                          1024 isn't it enough memory?
                                          <div><br>
                                          </div>
                                          <div>How can I anticipate
                                            memory usage?</div>
                                          <span><font color="#888888">
                                              <div><br>
                                              </div>
                                              <div>John</div>
                                            </font></span></div>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                  <br>
                                  <fieldset></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>