<p>Hi <a href="https://github.com/razvancrainea" class="user-mention">@razvancrainea</a>,<br>
  We are seeing a similar type crash in production a few times a day. Here is <a href="https://gist.github.com/james-criscuolo/9c8263920eb0ae84db03">a backtrace</a> of one, but they all run into <code>prev</code> being <code>null</code> from that same <code>pkg_malloc</code> call in <code>get_p_notify_body</code>. Given that we are running 1.10.0 with some of our own patches/modules, I'm not sure how pertinent this will be, but if there is anything I can dig up to help this go away, I'm willing to try.</p>

<p>My main question is, you listed one way this was possible above (mixing up a <code>shm_malloc</code> and a <code>pkg_free</code>, or vice versa), are there any other potential errors you can think of that could be leading to this?</p>

<p>Thanks,<br>
James</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/721#issuecomment-193860574">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciWhw439aeY3VHjrj4m33Jxg949drks5prajVgaJpZM4Gx0aq.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/OpenSIPS/opensips/issues/721#issuecomment-193860574"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>