Added function helper_print_stacktrace(), used to catch all SIGSEGVs