<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 14, 2017 at 10:21 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><div>Hello,<br><br></div>I've got a 13.13.1 system using PJSIP stack on debian Jessie.<br></div>It runs from 50 to 100 simultaneous calls (so 100 to 200 PJSIP channels) all day long.<br>From time to time, roughly meaning once a month, it segfaults with lines (from dmesg -T output) like this: <br>asterisk[1160]: segfault at 7efffffe ip 00000000005881d6 sp 00007fec95c33910 error 4 in asterisk[400000+2a2000]<br><br><br></div><div>Debug level was unfortunately not set in asterisk.conf but verbose level was set to 5.<br></div><div>Asterisk runs with:<br>/usr/sbin/asterisk -U asterisk -G asterisk -g<br><br></div><div>Asterisk is compiled with DONT_OPTIMIZE and BETTER_BACKTRACES options.<br><br></div><div>"core show settings" outputs:<br>* Directories<br> -------------<br> Configuration file: <br> Configuration directory: /etc/asterisk<br> Module directory: /usr/lib/asterisk/modules<br> Spool directory: /var/spool/asterisk<br> Log directory: /var/log/asterisk<br> Run/Sockets directory: /var/run/asterisk<br> PID file: /var/run/asterisk/asterisk.pid<br> VarLib directory: /var/lib/asterisk<br> Data directory: /var/lib/asterisk<br> ASTDB: /var/lib/asterisk/astdb<br> IAX2 Keys directory: /var/lib/asterisk/keys<br><br><br><br></div><div>1. Am I correct to expect a coredump file to be produced anytime asterisk segfaults ?<br></div></div></blockquote><div><br></div><div>Yes if -g is set and the user that's running asterisk has permissions to set ulimit -c.</div><div> <br></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><br></div><div>2. Does Asterisk prints any WARNING or ERROR message whenever it detects, at startup preferably, that it has not required permissions to write a coredump file ?<br></div></div></blockquote><div><br></div><div>No because it's the system that determines where a coredump goes and actually writes it, not asterisk.</div><div>It's the sysctl kernel.core_pattern setting.</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><br></div><div>3. Among above directories, which one is choosen to save coredump files ? Is it something that can/should be configured in /etc/asterisk (I've seen related options in some debian /etc/default/asterisk files but I would be curious to know if such things exist <br></div></div></blockquote><div><br></div><div>See above.</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><br></div><div>4. Is there anything useful I can do with a line such as :<br>asterisk[1160]: segfault at 7efffffe ip 00000000005881d6 sp 00007fec95c33910 error 4 in asterisk[400000+2a2000] ? Any pointer ?<br></div></div></blockquote><div><br></div><div>Nope. Not a thing. Sorry.</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><br></div><div>5. Suggestions ?<br></div></div></blockquote><div><br></div><div>If you can at least get the system to write a coredump file, there are new utilities in /var/lib/asterisk/scripts, namely ast_coredumper which can help create the backtraces if it can at least find the core file. Just run "./ast_coredumper --help" for more info. You should also be able to use those utilities with earlier Asterisk 13 versions.</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><br></div><div>Best regards<br></div><div><br></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>