<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 5, 2017 at 9:20 AM, Olivier <span dir="ltr"><<a href="mailto:oza.4h07@gmail.com" target="_blank">oza.4h07@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br></div>I carefully read [1] which details how backtrace files can be produced.<br></div><br>Maybe this seems natural to some, but how can I go one step futher, and check that produced XXX-<code class="gmail-m_-5682528971970587762gmail-java gmail-m_-5682528971970587762gmail-plain">thread1.txt, XXX-brief.txt, ... files are OK ?<br></code><div><div><br></div><div>In other words, where can I find an example on how to use one of those files and check by myself, that if a system ever fails, I won't have to wait for another failure to provide required data to support teams ?<br></div></div></div></blockquote><div><br></div><div>It's a great question but I could spend a week answering it and not scratch the surface. :) It's not a straightforward thing unless you know the code in question. The most common is a segmentation fault (segfault or SEGV). In that case, the thread1.txt file is the place to start. Since most of the objects passed around are really pointers to objects, the most obvious cause would be a 0x0 for a value. So for instance "chan=0x0". That would be a pointer to a channel object that was not set when it probably should have been. Unfortunately, it's not only 0x0 that could cause a segv. Anytime a program tries to access memory it doesn't own, that signal is raised. So let's say there a 256 byte buffer which the process owns. If there's a bug somewhere that causes the program to try and access bytes beyond the end of the buffer, you MAY get a segv if that process doesn't also own that memory. If this case, the backtrace won't show anything obvious because the pointers all look valid. There probably would be an index variable (i or ix, etc) that may be set to 257 but you'd have to know that the buffer was only 256 bytes to realize that that was the issue.</div><div><br></div><div>Deadlocks are even harder to troubleshoot. For that, you need to look at full.txt to see where the threads are stuck and find the 1 thread that's holding the lock that the others are stuck on.</div><div><br></div><div>Sorry. I wish I had a better answer because it'd help a lot if folks could do more investigation themselves.</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><br></div><div>Best regards<br></div><div><br>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+a+<wbr>Backtrace</a><br></div></div></div>
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">George Joseph</span><br style="font-size:12.8px"><span style="font-size:12.8px">Digium, Inc. | Software Developer</span><span style="font-size:12.8px"><br>445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br></span><span style="font-size:12.8px">Check us out at: </span><a href="http://www.digium.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.digium.com</a><span style="font-size:12.8px"> & </span><a href="http://www.asterisk.org/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.asterisk.org</a><br><div><br></div></div></div>
</div></div>