When using Linux it is often helpful to use the following command if an application crashes:
% strace application
You’ll get a list of system calls and some helpful information that’ll help you often to pin down the reason for the crash.
If you’re using FreeBSD you should use the
% truss application
It provides the same information as