As a debugger, GDB is a veritable Swiss Army knife. And just like exploring all of the non-obvious uses of a those knives, your initial response to the scope of GDB’s feature set is likely to be one ...
A memory debugging tool like Valgrind is well suited to this, though it's a fair amount of work to get this up and running. You might just run it through gdb and see where you are when it crashes.
Debugging is definitely an art but, there are many brushes that can be used when painting an application. This book takes a look at three of the most used alternatives in embedded applications. These ...