From Ape Wiki
[edit] How to debug APE Segfault
First, if you are using APE 1.0 try updating to the git version. The git version fix many segfaults and bugs.
If you experience any segfaults with APE, here is the way to report it to us and help us to fix the issue.
- First download the lastest version of APE from git
- Edit the Makefile and replace -O2 with -g
- Edit modules/Makefile and replace -O2 with -g
- Run build.sh
- Edit ape.conf and set daemon=no
- Start a new TTY screen : screen -S ape
- run APE with gdb : gdb /usr/bin/aped --cfg <path to your conf file>
- Type "handle SIGPIPE nostop" in gdb
- Type "run" in gdb to launch APE
- Hit ctrl+a then ctrl+d to detach the screen session
- Wait for APE to crash
- Type "screen -dr ape" to switch to the APE screen session
- Type "bt" and send the output to the APE team on the groups or on the bug tracker


