<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 10/3/11 9:32 PM, Bruno Bresciani wrote:
    <blockquote
cite="mid:CAKv6MrYQv=UaO8Mzg2KEcrMPR9MmrbwE659aZHHBT8MMEbtH4w@mail.gmail.com"
      type="cite">Hello,<br>
      <br>
      sorry but I can't understand when you wrote: "ok, you didn't say
      and it didn't match the sources."<br>
    </blockquote>
    I meant that you referred to dtp-&gt;prev at line 140 in dbt_tb.c
    without mentioning you changed the sources, so when I looked, there
    was nothing like that there.<br>
    <br>
    <blockquote
cite="mid:CAKv6MrYQv=UaO8Mzg2KEcrMPR9MmrbwE659aZHHBT8MMEbtH4w@mail.gmail.com"
      type="cite"><br>
      I'm going to upgrade and test this fix... Thank's a lot by your
      attention<br>
    </blockquote>
    <br>
    Let me know if works ok.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CAKv6MrYQv=UaO8Mzg2KEcrMPR9MmrbwE659aZHHBT8MMEbtH4w@mail.gmail.com"
      type="cite">
      <br>
      <br>
      Best Regards<br>
      <br>
      <br>
      <div class="gmail_quote">2011/10/3 Daniel-Constantin Mierla <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#FFFFFF" text="#000000"> Hello,
            <div class="im"><br>
              <br>
              On 10/3/11 7:17 PM, Bruno Bresciani wrote:
              <blockquote type="cite">Hello,<br>
                <br>
                I wrote a if condition below this line to know where
                dtp-&gt;prev was being initialized.<br>
              </blockquote>
            </div>
            ok, you didn't say and it didn't match the sources.<br>
            <br>
            Hopefully the issue is fixed, you have to upgrade to latest
            git branch 3.1 to get the fix:<br>
            <br>
            <a moz-do-not-send="true"
href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c54b89a3a840e032a2a8abc5842b3ea78fa537ba"
              target="_blank">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c54b89a3a840e032a2a8abc5842b3ea78fa537ba</a><br>
            <br>
            Some guidelines how to install from git are provided at:<br>
            <br>
            <a moz-do-not-send="true"
href="http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git"
              target="_blank">http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git</a><br>
            <br>
            Cheers,<br>
            <font color="#888888"> Daniel</font>
            <div>
              <div class="h5"><br>
                <br>
                <blockquote type="cite"><br>
                  dtp = (dbt_table_p)shm_malloc(sizeof(dbt_table_t));<br>
                  <b>if (dtp-&gt;prev){<br>
                    &nbsp;&nbsp;&nbsp;&nbsp; LM_DBG("dtp-&gt;prev was initialized")<br>
                    }</b><br>
                  <br>
                  Analysing the trace of kamailio, the condition is true
                  only to subscriber table. I can't get understand this
                  behavior only subscriber table because to others
                  tables (location, dispatcher and version) the
                  condition is false.<br>
                  <br>
                  PS: I'm doing this analysis to understand the core
                  generated in db_text module described in the previous
                  e-mails.<br>
                  <br>
                  Best Regards <br>
                  <br>
                  <div class="gmail_quote">2011/10/3 Daniel-Constantin
                    Mierla <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span><br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
                        <br>
                        the latest 3.1 branch as in db_text/dbt_tb.c
                        following line:<br>
                        <br>
                        &nbsp;&nbsp;&nbsp; dtp =
                        (dbt_table_p)shm_malloc(sizeof(dbt_table_t));<br>
                        <br>
                        Where is the line you refer to dpt-&gt;prev? Can
                        you copy&amp;paste it here.<br>
                        <br>
                        Cheers,<br>
                        Daniel
                        <div>
                          <div><br>
                            <br>
                            On 10/3/11 2:20 PM, Bruno Bresciani wrote: </div>
                        </div>
                        <blockquote type="cite">
                          <div>
                            <div>Hello ALL,<br>
                              <br>
                              Someone knows why at line 149 in
                              .../kamailio-3.1.2/modules_k/
                              <div>db_text/dbt_tb.c the shm_malloc
                                function sometimes allocates memory to
                                dtp-&gt;prev but sometimes doesn't?<br>
                                I'm asking this question because when
                                the subscriber table is being loading to
                                shared memory in db_text module,
                                dtp-&gt;prev is allocated but on
                                version, dispatcher, location table it
                                doesn't... Analysing the source code I
                                can't see any reason to this behavior.<br>
                                <br>
                                The allocation of dtp-&gt;prev to
                                subscriber table is generating a core at
                                db_text module.<br>
                                <br>
                                Best Regards</div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                            </div>
                          </div>
                          <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                        </blockquote>
                        <font color="#888888"> <br>
                          <pre cols="72">-- 
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Dec 5-8, Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
                        </font></div>
                    </blockquote>
                  </div>
                  <br>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                </blockquote>
                <br>
                <pre cols="72">-- 
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Dec 5-8, Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <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://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Dec 5-8, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>