Add SIGSEGV handler to test_thread_jump