<p>Are the backtrace and the syslog messages from the same case? One is reporting a crash at line 551 and the other at 553.</p>

<pre><code>(gdb) frame 3
#3  0x00007fe5d724f9ea in free_pipe_cmd (cmd=0x7fe5dca4a1d0) at jsonrpc_io.c:551
</code></pre>

<pre><code>Aug 26 13:53:49 SIP-B03 /home/pkg/kamailio/sbin/kamailio[108633]: : <core> [mem/f_malloc.c:562]: fm_free(): BUG: fm_free: bad pointer 0x7fc30000000b (out of memory block!), called from jsonrpc-c: jsonrpc_io.c: free_pipe_cmd(553) - aborting
</code></pre>

<p>Also, rather interesting that pointer fields of the cmd are null (0x0), but the free is reporting a non-NULL pointer:</p>

<pre><code>$1 = {method = 0x0, params = 0x0, cb_route = 0x0, err_route = 0x0, t_hash = 0, t_label = 0, notify_only = 1, cb_pv = 0x0, msg = 0x0}
</code></pre>

<p>Can you reproduce this crash easily?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/296#issuecomment-135439537">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZdOaxEtavuvqA0YJKkt-GxSRYbhPks5orw23gaJpZM4Fw0dn.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/296#issuecomment-135439537"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>