working on thread specific SIGSEGV handler.