Answers to: How do I solve segmentation fault on Slackware?http://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware<p>I have installed Asterisk 1.8 on slackware 13.1, php, mysql and apache.</p> <p>I am later to install freepbx to help with reporting on VOIP activity. However, after installing asterisk, I am getting a segment fault.</p> <p>My log file shows this:</p> <p>darkstar kernel: asterisk[2660]: segfault at 800001c4f ip 00007ffff7514810 sp 00007fffffffcd48 error 4 in <a href="http://libc-2.11.1.so">libc-2.11.1.so</a>[7ffff7492000+16b000]</p> <p>I have used gdb so that I can perform a backtrace however the program executes and exits without a stack thus not helpful.</p> <p>Any help is appreciated!</p>enTue, 03 Mar 2015 19:00:51 -0500Answer by Jesse Pollardhttp://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware/3494<p>I suggest checking your ulimits (ulimit -c) - by default the limit is 0, thus no core dump. You can set it fairly high to catch the stack. Then use gdb &lt;program&gt; &lt;corefile&gt; to view the core dump.</p>Jesse PollardTue, 03 Mar 2015 19:00:51 -0500http://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware/3494Comment by landroni on rfelsburg's answerhttp://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware#3403<p>-1. Not an answer. Should be a comment.</p>landroniMon, 18 Aug 2014 15:45:27 -0400http://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware#3403Answer by modhttp://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware/2691<p>If you launch the program from GDB or else attach GDB to it after it's started you should be able to catch it at the point of the fault. If it's already running, use ps to find its PID and then in GDB say:</p> <pre><code> attach thatPID continue </code></pre> <p>When it faults you should find that GDB has regained control at the point of the fault and you may be able to learn more.</p>modFri, 09 Sep 2011 08:10:06 -0400http://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware/2691Answer by rfelsburghttp://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware/2671<p>I would recommend you ask the development team for asterisk, or someplace like <a href="http://stackoverflow.com/">http://stackoverflow.com/</a></p> <p>-Rob</p>rfelsburgTue, 23 Aug 2011 12:35:32 -0400http://linuxexchange.org/questions/2656/how-do-i-solve-segmentation-fault-on-slackware/2671