I assume your program crashes when you run it, not that the compiler crashes during compile?
For this case you may try to compile with --gc:arc -d:useMalloc and run your executable with valgrind, that may give you some information. Or you may use a debugger like gdb, but I never did that.