If your program crashes then you have some problem in your program.
Either a bug or the program is loading some incorrect shared library.
The best thing you can do is start using the debugger/valgrind to try and understand why it crashes.
Without knowing what your program does we can't help, also most of the times this is off topic for this forum.