added signal handler for fatal signals like SIGSEGV

that tries to write a call trace to error log
(or if that fails to stderr) before triggering
a core dump