<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Edit /usr/local/opensips2.1/sbin/opensipsctl (line ~1878) and
        add the "ulimit" command before OpenSIPS starts, like so:<br>
      </tt></p>
    <p><tt>  ulimit -c unlimited<br>
          if [ $SYSLOG = 1 ] ; then<br>
            $OSIPSBIN -P $PID_FILE $STARTOPTIONS 1&gt;/dev/null
        2&gt;/dev/null<br>
          else<br>
            $OSIPSBIN -P $PID_FILE -E $STARTOPTIONS<br>
          fi</tt></p>
    <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 22.08.2016 16:25, Denis wrote:<br>
    </div>
    <blockquote cite="mid:309313799.20160822162545@ptl.ru" type="cite">
      <title>Re: [OpenSIPS-Users] Opensips 2.1 crash</title>
      <span style=" font-family:'Times New Roman'; font-size: 12pt;">Hello,
        Liviu!<br>
        <br>
        Where does this option, i mean <span style="
          font-family:'courier new';">"ulimit -c unlimited"<span style="
            font-family:'times new roman';">, used? In opensipsctlrc
            "startoptions"?<br>
            <br>
            When i tried restart Opensips i just used opensipsctl stop
            and start.<br>
            <br>
            Without core analyze is there any suggestions about the
            problem (logs from opensipslog and syslog)?<br>
            <br>
            <span style=" font-family:'arial'; font-size: 10pt;"><i>-- <br>
              </i></span></span></span></span><a moz-do-not-send="true"
        style=" font-family:'arial'; font-size: 10pt;"
        href="mailto:d.putyato@ptl.ru">mailto:denis7979@ptl.ru</a><br>
      <br>
      <table bgcolor="#ffffff">
        <tbody>
          <tr>
            <td bgcolor="#0000ff" width="2"><br>
            </td>
            <td><span style=" font-family:'courier new'; font-size:
                12pt;">Hi, Denis!<br>
                Thank you for reporting the crash! Unfortunately,
                OpenSIPS was not able to finish writing the corefile,
                which was truncated, as gdb points out:<br>
                /opensipscore/core  ...
                &lt;F4&gt;&lt;E0&gt;&lt;E9&gt;&lt;EB&gt;&lt;E0&gt;
                 &gt;= 2158587904<br>
                The size of a corefile is equal to PKG+SHM memory size.
                Provided that you have enough disk space (&gt; 2 GB),
                could you add a "ulimit -c unlimited" command in your
                startup script, before launching OpenSIPS? We should be
                able to obtain a clear backtrace afterwards.<br>
                Cheers,<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 22.08.2016 14:20, Denis wrote:<br>
              </span>
              <table>
                <tbody>
                  <tr>
                    <td bgcolor="#3200ff" width="2"><br>
                    </td>
                    <td><span style=" font-family:'times new roman';
                        font-size: 12pt;">Opensips 2.1 crash Hello!<br>
                        <br>
                        Today i have a big problem with my opensips.<br>
                        I wanted to insert some modification to
                        opensips.cfg but after restart opensips it has
                        died and i was not able to resuscitate him at
                        all.<br>
                        I have been saved only that i was planning to
                        migrate from 2.1 to 2.2 and i already have
                        opensips.cfg for 2.2 (db migration not spend
                        much time).<br>
                        I.e. only with 2.2. i could restore the service!<br>
                        <br>
                        Changes that i made to configuration of 2.1:<br>
                        i added <br>
                        if (t_check_status("3[0-9][0-9]")) {<br>
                         t_reply("404","Not Found");<br>
                         exit;<br>
                        }<br>
                        to the failure route. That is all.<br>
                        <br>
                        Everything i could gather about the problem is
                        here: </span><a moz-do-not-send="true" style="
                        font-family:'times new roman'; font-size: 12pt;"
href="https://cloud.mail.ru/public/4Hhj/TcotVSA7w">https://cloud.mail.ru/public/4Hhj/TcotVSA7w</a><span
                        style=" font-family:'times new roman';
                        font-size: 12pt;">.<br>
                        In syslog, at each time when i tried to restart
                        Opensips, i saw<br>
                        [  140.300956] opensips[2688]: segfault at 0 ip
                        00007f69f92db144 sp 00007fff6328e7b8 error 4 in
                        drouting.so[7f69f92d4000+46000]<br>
                        <br>
                        And one more. I have two servers for running
                        Opensips (active/standby). On both servers i
                        have the same Opensips version. And on both
                        servers, while restarting Opensips, i saw<br>
                        [  140.300956] opensips[2688]: segfault at 0 ip
                        00007f69f92db144 sp 00007fff6328e7b8 error 4 in
                        drouting.so[7f69f92d4000+46000]<br>
                        <br>
                        Thank you for any help! I am afraid that there
                        are some identical problems and with 2.2.<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>
                      <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>
                      <span style=" font-family:'courier new';
                        font-size: 12pt;">
                      </span><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><br>
                      <span style=" font-family:'courier new';
                        font-size: 12pt;">
                      </span></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </blockquote>
    <br>
  </body>
</html>