<p><a href="https://github.com/razvancrainea" class="user-mention">@razvancrainea</a>  yes, we had the issue maybe every hour or so (on one server) on the day it first appeared (we also had it on other servers with a lesser rate). I hadn't done much work with the internals of OpenSIPS so didn't know about the memory debugging allocator, and since it was a SIGSEGV I first tried to figure out where the crash was happening; it's only later that I figured out that the memory allocator was involved and that the actual issue might be incorrect use of the allocator.</p>

<p>We had some low-rate unwanted traffic on those servers while this was happening (INVITEs, with no ACKs) and the problems kind-of disappeared after I blocked the IPs that were causing trouble; however I can't say for sure this was the source of the problem; either way this might be difficult to re-create.</p>

<p>Following up on <a href="https://github.com/liviuchircu" class="user-mention">@liviuchircu</a> 's note, the only <code>CRIT</code>-level notices I see on the new versions (with <a href="https://github.com/OpenSIPS/opensips/pull/722" class="issue-link" title="Prevent crash in `fm_remove_free`.">#722</a> applied, running over the week-end) are <code>CRITICAL:tm:set_timer: set_timer for 1 list called on a "detached" timer -- ignoring</code>.<br>
→ Do I need to set <code>memlog=1</code> for this to work?</p>

<p>I'll see if I can build a test image with the memory allocator and put it alongside the production images.<br>
→ should I use the QM allocator (<code>DBG_QM_MALLOC</code>), or is it enough to use <code>DBG_F_MALLOC</code> ?</p>

<p>I guess I could also <code>abort()</code> at the point in the allocator where the problem is detected.</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-164458308">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZg-rAU-xRMmqkg-7KjscQzNnKlPks5pPtCDgaJpZM4Gx0aq.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-164458308"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>