<p>There's no thread-safe allocator in opensips, because there's no need for something like that, since opensips is multi-process, not multi-threaded.<br>
The concurrency seems to be related between two processes, and the only scenario I can think about is that somebody allocates some memory in the shared memory (that is indeed thread safe, because it is shared between all processes) and the private memory (that is never thread safe, because it should only be used by a single process, that runs sequentially), or the other way around. Anyhow, I couldn't point out the exact code that's doing this, so this is just an assumption.</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-163314918">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZmRkEkQYzexPI82boOjukqINeT4ks5pOE3_gaJpZM4Gx0aq.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-163314918"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>