<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>I found a double free bug in the related code and pushed a fix
      for it - also pushed to the 2.1 git branch.<br>
      <br>
      Could you pull the latest sources and try to reproduce this again?
      Many thanks!<br>
    </tt>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS 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 29.03.2016 16:50, Denis wrote:<br>
    </div>
    <blockquote cite="mid:352456154.20160329165006@ptl.ru" type="cite">
      <title>Re: [OpenSIPS-Users] Opensips2.1 crash</title>
      <span style=" font-family:'Times New Roman'; font-size: 12pt;">Liviu,
        new data about problem are in attachment.<br>
        <br>
      </span><a moz-do-not-send="true" style=" font-family:'arial';
        font-size: 10pt;" href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
      <br>
      <table bgcolor="#ffffff">
        <tbody>
          <tr>
            <td width="2" bgcolor="#0000ff"><br>
            </td>
            <td><span style=" font-family:'courier new'; font-size:
                12pt;">That type of backtrace is a consequence of an
                earlier, undetected problem. Fastest way to catch it is
                to:<br>
                <br>
                * make menuconfig -&gt; Options -&gt; Flags -&gt;
                deselect F_MALLOC, select DBG_QM_MALLOC<br>
                * recompile, install and try to reproduce the issue
                again - we should spot the problem early on now!<br>
                Liviu Chircu<br>
                OpenSIPS Developer<br>
              </span><a moz-do-not-send="true" style="
                font-family:'courier new'; font-size: 12pt;"
                href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><br>
              <span style=" font-family:'times new roman'; font-size:
                12pt;">On 29.03.2016 11:57, Denis wrote:<br>
                Re: [OpenSIPS-Users] Opensips2.1 crash Hello, Liviu<br>
                <br>
                Yes you were right about full path. Thank you.<br>
                <br>
                In attachment a full stack trace lead to the crash.<br>
                <br>
                <br>
              </span><a moz-do-not-send="true" style="
                font-family:'arial'; font-size: 10pt;"
                href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
              <br>
              <table bgcolor="#ffffff">
                <tbody>
                  <tr>
                    <td width="2" bgcolor="#0000ff"><br>
                    </td>
                    <td><span style=" font-family:'courier new';
                        font-size: 12pt;">Hi Denis,<br>
                        <br>
                        By default, the current build system will
                        include the "-g" debugging symbols compiler flag
                        of gcc. Run this in order to make sure your
                        opensips binary includes them:<br>
                        <br>
                        objdump -h /usr/local/sbin/opensips | grep debug<br>
                        <br>
                        If it returns a few debug sections, then they
                        are included, and most likely you are not
                        passing the full/correct path for the opensips
                        binary to gdb. (Hint: when GDB starts, does it
                        say "opensips: No such file or directory"?)<br>
                        <br>
                        If the above command returns nothing, then we'll
                        have to edit some Makefile variables to force
                        the "-g" flag.<br>
                        Liviu Chircu<br>
                        OpenSIPS Developer<br>
                      </span><a moz-do-not-send="true" style="
                        font-family:'courier new'; font-size: 12pt;"
                        href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><br>
                      <span style=" font-family:'times new roman';
                        font-size: 12pt;">On 29.03.2016 07:46, Denis
                        wrote:<br>
                        Re: [OpenSIPS-Users] Opensips2.1 crash Hello
                        Bogdan,<br>
                        <br>
                        Opensips has been downloaded/compiled/installed
                        from git. <br>
                        Were should i check "debug symbols" for
                        installation? <br>
                        <br>
                        Thank you.<br>
                        <br>
                      </span><a moz-do-not-send="true" style="
                        font-family:'arial'; font-size: 10pt;"
                        href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a><br>
                      <br>
                      <table bgcolor="#ffffff">
                        <tbody>
                          <tr>
                            <td width="2" bgcolor="#0000ff"><br>
                            </td>
                            <td><span style=" font-family:'courier new';
                                font-size: 12pt;">Hi Denis,<br>
                                <br>
                                I guess you have opensips installed from
                                packages - please install the package
                                with the debug symbols, so that the
                                backtrace will get more sense.<br>
                                <br>
                                Regards,<br>
                                Bogdan-Andrei Iancu<br>
                                OpenSIPS Founder and Developer<br>
                              </span><a moz-do-not-send="true" style="
                                font-family:'courier new'; font-size:
                                12pt;"
                                href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><br>
                              <span style=" font-family:'times new
                                roman'; font-size: 12pt;">On 28.03.2016
                                16:00, Denis wrote:<br>
                                Opensips2.1 crash Hello!<br>
                                <br>
                                I am going to upgrade my Opensips to
                                2.1. from 1.11.6.<br>
                                Opensips 2.1. had been installed on a
                                test server and during the test i notice
                                periodic Opensips crash. And i cannot
                                understand the reason.<br>
                                <br>
                                Thank you for any help.<br>
                                <br>
                                P.S. In attachment you can find PID of
                                processes before the crash, information
                                from log and core file.<br>
                                <br>
                                <br>
                              </span><a moz-do-not-send="true" style="
                                font-family:'arial'; font-size: 10pt;"
                                href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a>
                              <br>
                              <br>
                              <span style=" font-family:'courier new';
                                font-size: 12pt;">_______________________________________________<br>
                                Users mailing list<br>
                              </span><a moz-do-not-send="true" style="
                                font-family:'courier new'; font-size:
                                12pt;"
                                href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
                              <a moz-do-not-send="true" style="
                                font-family:'courier new'; font-size:
                                12pt;"
                                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></td>
                          </tr>
                        </tbody>
                      </table>
                      <br>
                      <br>
                      <br>
                      <br>
                      <span style=" font-family:'courier new';
                        font-size: 12pt;">_______________________________________________<br>
                        Users mailing list<br>
                      </span><a moz-do-not-send="true" style="
                        font-family:'courier new'; font-size: 12pt;"
                        href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
                      <a moz-do-not-send="true" style="
                        font-family:'courier new'; font-size: 12pt;"
                        href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </blockquote>
    <br>
  </body>
</html>