<div dir="ltr"><div><div><div><div><div><div><div><div>Hello,<br><br></div>After testing <span class="gmail-im">"pkill -SEGV -f /usr/sbin/asterisk" on Debian Jessie platform, I've got several questions :<br><br><br></span></div><span class="gmail-im">1.  When I issue a "cd /tmp; asterisk -cvvvvvvvvvvvg -U asterisk -G asterisk" command, and then issue a "pkill -SEGV asterisk" command,<br></span></div><span class="gmail-im">I can read on Asterisk console:<br>*CLI> Segmentation error (core dumped)<br></span></div><span class="gmail-im">(*) I translated into english the exact output I got.<br><br></span></div><div><span class="gmail-im">I see a /tmp/core file exists.<br></span></div><div><span class="gmail-im"><br></span></div><span class="gmail-im">My asterisk.conf includes:<br>full = verbose,notice,warning,error,debug<br><br></span></div><span class="gmail-im">After Asterisk's stop, my /var/log:asterisk/full doesn't include any mention to Segmentation error.<br></span></div><div><span class="gmail-im">I cannot find anything in dmesg, /var/log/messages or /var/log/kern.log as I did when a real segmentation fault occurred on production system.<br></span></div><div><span class="gmail-im"><br></span></div><span class="gmail-im">I would expect Asterisk to log something.<br></span></div><div><span class="gmail-im">Is this expected behaviour ?<br><br><br>2. </span><span class="gmail-im">When I issue a "cd /tmp; systemctl start asterisk" command, and then issue a "pkill
 -SEGV asterisk" command,<br></span><span class="gmail-im">I can read on Asterisk console:<br>Disconnected from Asterisk server<br>Asterisk cleanly ending (0).<br>Executing last minute cleanups<br><br></span></div><span class="gmail-im"></span><div><div><div><div><div><span class="gmail-im">I cannot find any core file anyware.<br><br></span></div><div><span class="gmail-im">File </span><span class="gmail-im">/var/log:asterisk/full doesn't include any mention to Segmentation error.<br><br></span></div><div><span class="gmail-im">Where should core file be created when Asterisk is run as a daemon by asterisk user and group ?<br></span></div><div><span class="gmail-im">Is there a setting I can use to specify the directory used (so that we can make sure appropriate ownership is set) ?<br><br></span></div><div><span class="gmail-im">Cheers<br></span></div><div><span class="gmail-im"><br> </span></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-05 13:36 GMT+02:00 Olivier <span dir="ltr"><<a href="mailto:oza.4h07@gmail.com" target="_blank">oza.4h07@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2016-09-02 20:40 GMT+02:00 George Joseph <span dir="ltr"><<a href="mailto:gjoseph@digium.com" target="_blank">gjoseph@digium.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, Sep 2, 2016 at 9:34 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello,<br><br></div>I had a recent case where Asterisk stopped due to a segfault.<br></div>This reminded me that being sure that whenever such issue occurs, it's useful to have a core file or various data at hand to analyze and exchange with support teams.<br><br></div><div>How can you double check a running Asterisk system would produce such data if a segfault arrises ?<br></div><div><br>1. To my knowledge, no tool exists for this. Is it correct ?<br></div><div>2. If such tool do not exist, what would you say about something like "core stop panic", "core stop segfault" or whatever ?<br></div></div></blockquote><div><br></div><div><br></div></span><div>How about just running "pkill -SEGV -f /usr/sbin/asterisk" from the shell?</div></div></div></div></blockquote></span><div><br>It seems to comply to what I'm after.<br></div><div>Thank you very for sharing this here.<br><br></div><div><div class="h5"><div><br></div><div> </div><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>Works for me.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Best Regards<br></div><div><br><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>
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016<br>
      <a href="http://www.asterisk.org/community/astricon-user-conference" rel="noreferrer" target="_blank">http://www.asterisk.org/commun<wbr>ity/astricon-user-conference</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/wiki<wbr>/display/AST/Getting+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/mailm<wbr>an/listinfo/asterisk-users</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="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.aster<wbr>isk.org</a><br><div><br></div></div></div>
</font></span></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>
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016<br>
      <a href="http://www.asterisk.org/community/astricon-user-conference" rel="noreferrer" target="_blank">http://www.asterisk.org/commun<wbr>ity/astricon-user-conference</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/wiki<wbr>/display/AST/Getting+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/mailm<wbr>an/listinfo/asterisk-users</a><br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>