<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hello,<br>
        <br>
        Two things:<br>
        <br>
        1) be sure you have the latest 1.9.1 code (GIT or tar balls)<br>
        <br>
        2) post the actual backtrace&nbsp; (from the core file), please<br>
        <br>
        Thanks and 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>
      On 11.02.2014 06:25, Ahsan Hasan wrote:<br>
    </div>
    <blockquote
cite="mid:CAGYDSX+Z9Rg1wM3BjdCscJuy_5sFMM9JXSDx0Sd7eWnbsyeNJg@mail.gmail.com"
      type="cite">
      <div dir="ltr">So it crashed again today. Here is the log<br>
        <div><br>
          Feb 10 18:26:24 RTSIP rtsip-service[10443]:
          CRITICAL:core:qm_free: freeing already freed pointer, first
          free: parser/sdp/sdp.c: free_cloned_sdp_stream(874) - aborting
          <br>
          Feb 10 18:26:25 RTSIP rtsip-service[10464]:
          CRITICAL:core:receive_fd: EOF on 25<br>
          <br>
          <br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Feb 10, 2014 at 2:45 PM, Ahsan
          Hasan <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:ahsanhasanjaved@gmail.com" target="_blank">ahsanhasanjaved@gmail.com</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">My opensips has crashed again. Here is the
              core dump.<br>
              <br>
              ================= core dump =========================<br>
              <div>Reading symbols from /lib/libnss_compat.so.2...(no
                debugging symbols found)...done.<br>
                Loaded symbols for /lib/libnss_compat.so.2<br>
                Reading symbols from /lib/libnss_nis.so.2...(no
                debugging symbols found)...done.<br>
                Loaded symbols for /lib/libnss_nis.so.2<br>
                Reading symbols from /lib/libnss_files.so.2...(no
                debugging symbols found)...done.<br>
                Loaded symbols for /lib/libnss_files.so.2<br>
                Core was generated by `/usr/local/sbin/opensips -P
                /var/run/opensips/opensips.pid -m 256 -M 16 -u root'.<br>
                Program terminated with signal 6, Aborted.<br>
                #0&nbsp; 0x00007fe13b0e31b5 in raise () from /lib/libc.so.6<br>
                <br>
                ===================================================<br>
                <br>
              </div>
              <div>The memlogs are also attached.<span class="HOEnZb"><font
                    color="#888888"><br>
                    <br>
                  </font></span></div>
              <div class="gmail_extra"><span class="HOEnZb"><font
                    color="#888888">-- <br>
                    Ahsan Hasan</font></span>
                <div>
                  <div class="h5"><br>
                    <br>
                    <br>
                    <div class="gmail_quote">On Thu, Jan 9, 2014 at 3:14
                      PM, Ahsan Hasan <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:ahsanhasanjaved@gmail.com"
                          target="_blank">ahsanhasanjaved@gmail.com</a>&gt;</span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        <div dir="ltr">
                          <div>
                            <div>Hi Razvan,<br>
                              <br>
                            </div>
                            Let me enable it and wait for the next
                            crash.<br>
                            <br>
                            <br>
                          </div>
                          Regards,<span><font color="#888888"><br>
                              -- <br>
                              Ahsan Hasan</font></span>
                          <div>
                            <div><br>
                              <div class="gmail_extra"><br>
                                <br>
                                <div class="gmail_quote">On Thu, Jan 9,
                                  2014 at 12:44 PM, R&#259;zvan Crainea <span
                                    dir="ltr">&lt;<a
                                      moz-do-not-send="true"
                                      href="mailto:razvan@opensips.org"
                                      target="_blank">razvan@opensips.org</a>&gt;</span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0px 0px 0px
                                    0.8ex;border-left:1px solid
                                    rgb(204,204,204);padding-left:1ex">Hi,
                                    Ahsan!<br>
                                    <br>
                                    Can you please enable the the memory
                                    debugging (DBG_QM_MALLOC flag in
                                    menuconfig)? You can follow this
                                    tutorial[1].<br>
                                    <br>
                                    [1] <a moz-do-not-send="true"
                                      href="http://www.opensips.org/Documentation/TroubleShooting-OutOfMem"
                                      target="_blank">http://www.opensips.org/Documentation/TroubleShooting-OutOfMem</a><br>
                                    <br>
                                    Best regards,<br>
                                    <br>
                                    Razvan Crainea<br>
                                    OpenSIPS Core Developer<br>
                                    <a moz-do-not-send="true"
                                      href="http://www.opensips-solutions.com"
                                      target="_blank">http://www.opensips-solutions.com</a>
                                    <div>
                                      <div><br>
                                        <br>
                                        On 01/09/2014 07:54 AM, Ahsan
                                        Hasan wrote:<br>
                                      </div>
                                    </div>
                                    <blockquote class="gmail_quote"
                                      style="margin:0px 0px 0px
                                      0.8ex;border-left:1px solid
                                      rgb(204,204,204);padding-left:1ex">
                                      <div>
                                        <div>
                                          <br>
                                          We are using opensips-1.9.1
                                          and it is crashing randomly
                                          every other<br>
                                          week, the core dumps generated
                                          are always related to memory
                                          leakage. The<br>
                                          last four core dumps are<br>
                                          <br>
                                          Program terminated with signal
                                          11, Segmentation fault.<br>
                                          #0 &nbsp;0x00007f4c12e20c77 in
                                          write_dialog_profiles
                                          (links=0x7f4bff03d7f0)<br>
                                          at dlg_db_handler.c:1085<br>
                                          1085 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;l +=
                                          link-&gt;profile-&gt;name.len
                                          + 1 + link-&gt;value.len + 1;<br>
                                          <br>
                                          Program terminated with signal
                                          11, Segmentation fault.<br>
                                          #0 &nbsp;0x00000000004e5da2 in
                                          fm_remove_free
                                          (qm=0x7f4bfec5a000, size=112)<br>
                                          at mem/f_malloc.c:172<br>
                                          172 &nbsp; &nbsp; &nbsp;
                                          &nbsp;*pf=n-&gt;u.nxt_free;<br>
                                          <br>
                                          Program terminated with signal
                                          11, Segmentation fault.<br>
                                          #0 &nbsp;free_cloned_sdp_session
                                          (_session=0x362e373740333532)
                                          at<br>
                                          parser/sdp/sdp.c:893<br>
                                          893 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;session =
                                          l_session-&gt;next;<br>
                                          <br>
                                          Program terminated with signal
                                          11, Segmentation fault.<br>
                                          #0 &nbsp;0x00000000004e5da2 in
                                          fm_remove_free
                                          (qm=0x7f71a9524000, size=96)
                                          at<br>
                                          mem/f_malloc.c:172<br>
                                          172 &nbsp; &nbsp; &nbsp;
                                          &nbsp;*pf=n-&gt;u.nxt_free;<br>
                                          <br>
                                          What can be the cause?<br>
                                          <br>
                                          --<br>
                                          Ahsan Hasan<br>
                                          <br>
                                          <br>
                                          <br>
                                        </div>
                                      </div>
                                      _______________________________________________<br>
                                      Users mailing list<br>
                                      <a moz-do-not-send="true"
                                        href="mailto:Users@lists.opensips.org"
                                        target="_blank">Users@lists.opensips.org</a><br>
                                      <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><br>
                                      <br>
                                    </blockquote>
                                    <br>
                                    _______________________________________________<br>
                                    Users mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:Users@lists.opensips.org"
                                      target="_blank">Users@lists.opensips.org</a><br>
                                    <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><br>
                                  </blockquote>
                                </div>
                                <br>
                                <br clear="all">
                                <br>
                                <br>
                                <div><br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <br>
                    <br>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        Ahsan Hasan
        <div>+92.333.438.2041</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>