Debug

debug

gdb -p 25753
thread apply all bt
handle SIGINT pass
  • https://blog.andregasser.net/gdb-pass-signals-to-your-application/

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