| 896 | /* =========================== Crash handling ============================== */ |
| 897 | |
| 898 | void _serverAssert(const char *estr, const char *file, int line) { |
| 899 | bugReportStart(); |
| 900 | serverLog(LL_WARNING,"=== ASSERTION FAILED ==="); |
| 901 | serverLog(LL_WARNING,"==> %s:%d '%s' is not true",file,line,estr); |
| 902 | |
| 903 | if (server.crashlog_enabled) { |
| 904 | #ifdef HAVE_BACKTRACE |
| 905 | logStackTrace(NULL, 1); |
| 906 | #endif |
| 907 | printCrashReport(); |
| 908 | } |
| 909 | |
| 910 | // remove the signal handler so on abort() we will output the crash report. |
| 911 | removeSignalHandlers(); |
| 912 | bugReportEnd(0, 0); |
| 913 | } |
| 914 | |
| 915 | void _serverAssertPrintClientInfo(const client *c) { |
| 916 | int j; |
no test coverage detected