How to write a signal handler to catch SIGSEGV? How to write a signal handler to catch SIGSEGV? linux linux