Debug

debug

gdb -p 25753
thread apply all bt

Profile

 sudo apt-get install oprofile
 sudo operf /PATH/APP

 sudo opreport --exclude-dependent --demangle=smart --symbols /PATH/APP
  • http://superuser.com/questions/62575/where-is-vmlinux-on-my-ubuntu-installation
  • http://stackoverflow.com/questions/20390601/is-there-a-way-to-set-kptr-restrict-to-0

Core Dump

 ulimit -c unlimited
 gdb --core core
  • http://linuxfocus.berlios.de/English/July2004/article343.shtml
  • http://www.sinz.org/Michael.Sinz/Linux/core.html