<p>When it happens that it doesn't stop, check what the processes are doing by attaching with gdb and get the backtrace.</p>

<p>The code for membar() is standard, operating at assembler level. But the crash here could be a side effect of a buffer overflow. Can you doublecheck that your changes are not introducing such issue? Maybe you can give a try with stock kamailio to see if the issue is there.</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/466#issuecomment-183066625">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZYSUhGWstn7NaKbwxch3O9BB0YH_ks5pjPVKgaJpZM4HAGgQ.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/466#issuecomment-183066625"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>