When your application dies with the "Segmentation fault" error (generated by the default SIGSEGVsignal handler) and generates a core file, you can analyze the core file using gdb or a similar debugger to find out what caused the segmentation fault (or segfault).
 
Continue to: