<div dir="ltr"><div>Yes, and I supplied the debug logs in the issue <a href="https://issues.asterisk.org/jira/browse/ASTERISK-24478">ASTERISK-24478</a> . I was trying to find a solution to this bug.<br><br></div>What I am doing now is to run asterisk in debugger (gdb); but it prints TONs of debug message.<br>That is why I am looking fot any way to catch the cause of dead locks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 27, 2015 at 3:43 PM, Russell Bryant <span dir="ltr"><<a href="mailto:russell@russellbryant.net" target="_blank">russell@russellbryant.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Tue, Jan 27, 2015 at 7:01 AM, Yousf Ateya <span dir="ltr"><<a href="mailto:y.ateya@starkbits.com" target="_blank">y.ateya@starkbits.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Dear,<br></div><br>While <a href="https://issues.asterisk.org/jira/browse/ASTERISK-24478?focusedCommentId=224584&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-224584" target="_blank">investigating iax2 bug ASTERISK-24478</a>; I found some dead locks. Which happens very often in my setup.<br clear="all"><div><div><br></div><div>I tried to debug the problem to know why this deadlock happens; but each time I got lost in huge logs and many scheduler/astobj2 details.<br><br></div><div>Is there any efficient way to debug deadlocks in asterisk?</div></div></div></blockquote><div><br></div></div></div><div>Have you seen the DEBUG_THREADS compile time option and the "core show locks" CLI command?</div><div><br></div><div><a href="https://wiki.asterisk.org/wiki/display/AST/CLI+commands+useful+for+debugging" target="_blank">https://wiki.asterisk.org/wiki/display/AST/CLI+commands+useful+for+debugging</a><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div><div>Russell Bryant </div></font></span></div></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Yousf Ateya,<br></div><div></div><div>StarkBits</div><div><a href="http://www.starkbits.com" target="_blank">www.starkbits.com</a></div></div></div></div></div>
</div>

<br>
<pre><font size="1" face="Courier New">This e-mail message is intended only for the use of the intended recipient(s).
The information contained therein may be confidential or privileged,
and its disclosure or reproduction is strictly prohibited.
If you are not the intended recipient, please return it immediately to its sender 
at the above address and destroy it. 
</font></pre>