mkdir /tmp/corefiles 
chmod 777 /tmp/corefiles 
echo "/tmp/corefiles/core" > /proc/sys/kernel/core_pattern 

ulimit -c 50000

is about 50 MB
<prompt> file core.1234
core.1234: ELF 32-bit LSB core file of “app” (signal 11), Intel 80386, version 1, from “app”

<prompt> gdb app core.1234 (where “app” is the application executable and “core.1234” is the core dump file)
<prompt> bt
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License