Add a SIGSEGV signal handler which detects stack overflow