Run gdb to start a command line debugger. At the prompt type run program, where program is the name of the program that is crashing. After the program has crashed, type backtrace to trace where the program crashed.
See GDB: The GNU Project Debugger for more information.