Get the latest tech news
Pleasant Debugging with GDB and DDD
Getting the most out of the classic Linux/BSD debugger
GDB is an old and ubiquitous debugger for Linux and BSD systems that has extensive language, processor, and binary format support. We can issue a single GDB command to list the backtraces for all threads, plus all stack frame variables and function arguments. You can put this incantation (minus the final program and core file paths) into a shell alias (like bt) so you can run it more easily.
Or read this on Hacker News