<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">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>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">https://wiki.asterisk.org/wiki/display/AST/CLI+commands+useful+for+debugging</a><br></div><div><br></div><div>-- </div><div>Russell Bryant </div></div></div></div>