A very useful guide to investigating Linux issues is here:

If any of our software is crashing, more likely with Segmentation Fault, we would like to be sent a core dump as a minimum to investigate the crash.

Typically to create a core dump..

Run the command "ulimit -c"

make the crash occur again 

check there is a core file in current folder then use these commands

gdb path/to/the/binary path/to/the/core

A backtrace is generated; this allows the error location to be identified.