<div dir="ltr">Hi Liviu,<div>I did a quick look myself at dlg_timer.c (around the lines that crash happens) and there is actually a FIXME note there too. it seems to me that this issue happens when using create_dialog("PpB"), if one side is already disconnected and also PpB doesn't receive a ping and decides to disconnect the call, the module crashes. Basically, if the call is already disconnected, we should not try to send BYE to them either.</div><div>For now, I removed "PpB" from create_dialog and the error has not occurred again. I think that can be the workaround for now.</div><div><br></div><div>Thanks,</div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 11, 2020 at 3:40 PM Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 07.11.2020 13:27, M S wrote:<br>
> The server has a pretty high load, is Q_MALLOC_DBG safe?<br>
<br>
How "pretty" high of a load is that, in terms of "calls-per-second" and <br>
"max-concurrent-calls"?  Q_MALLOC_DBG will typically add +30-50% to <br>
shared/private memory usage, as well as maybe a 10% increase in CPU <br>
usage.  But OpenSIPS uses very few CPU and memory to begin with, so it <br>
will be quite safe to do.<br>
<br>
My advice: unless you're running more than 50 calls-per-second through <br>
it, there is no need to even start worrying about Q_MALLOC_DBG altering <br>
the system's behavior.  Below the 50 CPS level, the difference is <br>
unnoticeable.<br>
<br>
> also, is that an opensips command-line option? I don't see it in the <br>
> opensips man page...<br>
Yes, it's a "opensips" binary command-line option.  The man page needs <br>
updating, indeed, however you could try "opensips -h" and you'll see <br>
that option.<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
</blockquote></div>