| 1002 | /* =========================== Crash handling ============================== */ |
| 1003 | |
| 1004 | void _serverAssert(const char *estr, const char *file, int line) { |
| 1005 | g_fInCrash = true; |
| 1006 | bugReportStart(); |
| 1007 | serverLog(LL_WARNING,"=== ASSERTION FAILED ==="); |
| 1008 | serverLog(LL_WARNING,"==> %s:%d '%s' is not true",file,line,estr); |
| 1009 | |
| 1010 | if (g_pserver->crashlog_enabled) { |
| 1011 | #if defined HAVE_BACKTRACE || defined UNW_LOCAL_ONLY |
| 1012 | logStackTrace(NULL, 1); |
| 1013 | #endif |
| 1014 | printCrashReport(); |
| 1015 | } |
| 1016 | |
| 1017 | // remove the signal handler so on abort() we will output the crash report. |
| 1018 | removeSignalHandlers(); |
| 1019 | bugReportEnd(0, 0); |
| 1020 | } |
| 1021 | |
| 1022 | void _serverAssertPrintClientInfo(const client *c) { |
| 1023 | int j; |
no test coverage detected