/** * Handle SIGSEGV/SIGILL signals raised by threads */ static void segv_handler(int signal) { backtrace_t *backtrace; DBG1(DBG_DMN, "thread %u received %d", thread_current_id(), signal); backtrace = backtrace_create(2); backtrace->log(backtrace, stderr, TRUE); backtrace->destroy(backtrace); DBG1(DBG_DMN, "killing ourself, received critical signal"); abort(); }
/** * Handle SIGSEGV/SIGILL signals raised by threads */ static void segv_handler(int signal) { fprintf(stderr, "thread %u received %d\n", thread_current_id(), signal); abort(); }