My openSSL version is 0.9.8... According to<br>
<a href="http://openssl.6102.n7.nabble.com/Custom-free-routine-is-invoked-with-NULL-argument-in-openssl-1-0-1-td25937.html" target="_blank">http://openssl.6102.n7.nabble.com/Custom-free-routine-is-invoked-with-NULL-argument-in-openssl-1-0-1-td25937.html</a> this was working fine
in 0.9.8.<br><br>I was analysing the backtrace full with gdb and the line below shows that ptr was not a NULL parameter.<br><br>#4  0x0051a87f in ser_realloc (ptr=0xb61f0bc0, size=32) at ../../mem/shm_mem.h:266<br><br>ptr=0xb61f0bc0 <br>
size=32<br><br>Now, I&#39;m a little confused...the changes to allow freeing of NULL pointer to behave like standard free () function will take effect to prevent the bug FS#247? <br><br>Best Regards<br><br><div class="gmail_quote">
2013/1/3 Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can also check which openSSL version you are using. According to<br>
<a href="http://openssl.6102.n7.nabble.com/Custom-free-routine-is-invoked-with-NULL-argument-in-openssl-1-0-1-td25937.html" target="_blank">http://openssl.6102.n7.nabble.<u></u>com/Custom-free-routine-is-<u></u>invoked-with-NULL-argument-in-<u></u>openssl-1-0-1-td25937.html</a><br>

it happened somewhere between 1.0.0. and 1.0.1c<br>
<br>
regards<br>
klaus<div class="im"><br>
<br>
On 03.01.2013 14:56, Bruno Bresciani wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thank&#39;s for your reply Klaus,<br>
<br>
but I don&#39;t know if is exactly this patch that Daniel is referring,<br>
because the backtrace full with gdb showed that problem happened at<br>
ser_realloc function. I will insert this check to NULL pointer at<br>
ser_free and ser_realloc function and recompile kamailio 3.1.2 because I<br>
can&#39;t update to version 3.3.3 for while.<br>
<br>
Best Regards<br>
<br>
2013/1/2 Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br></div>
&lt;mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@<u></u>pernau.at</a>&gt;&gt;<div class="im"><br>
<br>
    I think Daniel is referring to this patch:<br>
    <a href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=020acff35f8e9dfa62aba8678a781a0f7bbb110b" target="_blank">http://git.sip-router.org/cgi-<u></u>bin/gitweb.cgi/sip-router/?a=<u></u>commit;h=<u></u>020acff35f8e9dfa62aba8678a781a<u></u>0f7bbb110b</a><br>

<br>
    This fix was done to devel and 3.3 branch and is included in latest<br>
    3.3.3 release.<br>
<br>
    regards<br>
    Klaus<br>
<br></div>
    Am <a href="tel:20.12.2012%2019" value="+12012201219" target="_blank">20.12.2012 19</a> &lt;tel:20.12.2012%2019&gt;:29, schrieb Bruno Bresciani:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
    Hi,<br>
<br>
    I refer the bug fix FS#247  that I open in 30 July 2012 and you<br>
    closed in 25 october 2012 with the information: &quot;Reopen if the<br>
    patch for free(0) didn&#39;t work.&quot;.<br>
<br>
    What Release this fix was included?<br>
<br>
<br>
    Best Regards<br>
<br>
    2012/12/20 Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a><br></div>
    &lt;mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;&gt;<div class="im"><br>
<br>
        Hello,<br>
<br>
        if you refer to free(0) issue with libssl, I am not sure it<br>
        was ever put in 3.1 branch, as the last release was before<br>
        reporting the issue.<br>
<br>
        Cheers,<br>
        Daniel<br>
<br>
<br>
        On 12/20/12 6:01 PM, Bruno Bresciani wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
        Hello Daniel,<br>
<br>
        What patch this bug was fixed?  This bug was open in 30 July<br>
        2012 and ultimate Release to 3.1.X (3.1.6) was released at<br>
        14 July 2012...<br>
<br>
        Best Regards<br>
<br>
        2012/8/1 Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a><br></div>
        &lt;mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;&gt;<div><div class="h5"><br>
<br>
            Hello,<br>
<br>
<br>
            On 7/31/12 3:39 PM, Bruno Bresciani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Hello,<br>
<br>
            I didn&#39;t know that log messages related to memory<br>
            operations can be controlled by global parameter, but I<br>
            like to know if is recommendable I recompile kamailio<br>
            using q_malloc (default) and not f_malloc... memory<br>
            operations using q_malloc is more reliable and avoid<br>
            problems or crashes or it is only more suitable for<br>
            debugging? What do you suggest Daniel?<br>
</blockquote>
<br>
            q_malloc is more suitable for debugging.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
            The &#39;get_statistics all&#39; command is avaliable by a<br>
            specific module? I run &#39;kamctl fifo get_statistics all&#39;<br>
            and return &#39;500 command &#39;get_statistics&#39; not available&#39;<br>
</blockquote>
<br>
            Do you have kex module loaded? What is the output of<br>
            &#39;kamctl fifo which&#39;?<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
            For while is impossible to start a new installation,<br>
            first because I don&#39;t know how much time I will spend to<br>
            port and second because I am involved with other<br>
            developments and I have no time  to make this. I know<br>
            that 3.1 is no longer a official branch but now start a<br>
            new installation it&#39;s very very difficult, my in<br>
            intention is discover what caused the crash and if<br>
            exists a way to fix or prevent it.<br>
</blockquote>
            Discovering may require additional patches, like more<br>
            debug messages in the C code, that&#39;s why is better to<br>
            start with the latest stable.<br>
<br>
<br>
            Cheers,<br>
            Daniel<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
            Best Regards<br>
<br>
            2012/7/31 Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a><br></div></div>
            &lt;mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;&gt;<div><div class="h5"><br>
<br>
                Hello,<br>
<br>
<br>
                On 7/30/12 9:01 PM, Bruno Bresciani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Hi,<br>
<br>
                I compiled kamailio with MEMDBG = 0 because I<br>
                didn&#39;t want the memory debug  in kamailio log, but<br>
                I didn&#39;t know these turns on f_malloc and disabling<br>
                q_malloc...<br>
</blockquote>
                the log messages related to memory operations can be<br>
                controlled by global parameters memdbg and memlog.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
                Probably the size of shared memory that I start<br>
                kamailio is 32MB because I didn&#39;t gave a different<br>
                -m parameter value, exist a command to verify this<br>
                information?<br>
</blockquote>
<br>
                kamctl fifo get_statistics all<br>
<br>
                and see the shared memory total value. It will be<br>
                interesting to see available shared memory as well.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
                At moment that crash happened, there were few<br>
                registered users agents and were being made tests<br>
                with register and calls with TLS protocol. I got<br>
                only the two situations that I showed at first email.<br>
</blockquote>
<br>
                If you plan to start a new installation, I strongly<br>
                recommend 3.3 branch, the code is more actual and<br>
                easier to debug. 3.1 is no longer an official<br>
                maintained branch, those being now 3.3 and 3.2. I&#39;m<br>
                looking at this issue to be sure it is no longer in<br>
                latest stable.<br>
<br>
                Cheers,<br>
                Daniel<br>
<br>
<br>
</div></div></blockquote><div><div class="h5">
<br>
            --<br>
            Daniel-Constantin Mierla -<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br></div></div>
            <a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a>  &lt;<a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#%21/<u></u>miconda</a>&gt;  -<a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>

            Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 -<a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a><div class="im"><br>
            Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 -<a href="http://asipto.com/u/kpw" target="_blank">http://asipto.com/u/kpw</a><br>
<br>
<br>
</div></blockquote><div class="im">
<br>
        --<br>
        Daniel-Constantin Mierla -<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br></div>
        <a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a>  &lt;<a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#%21/<u></u>miconda</a>&gt;  -<a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><div class="im">
<br>
<br>
<br>
<br>
<br>
    ______________________________<u></u>_________________<br>
    SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br></div>
    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>  &lt;mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>&gt;<br>

    <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote><div class="im">
<br>
<br>
    ______________________________<u></u>_________________<br>
    SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br></div>
    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a> &lt;mailto:<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-<u></u>router.org</a>&gt;<div class="im">
<br>
    <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
</div></blockquote>
</blockquote></div><br>