MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / _serverAssert

Function _serverAssert

src/debug.cpp:1004–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002/* =========================== Crash handling ============================== */
1003
1004void _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
1022void _serverAssertPrintClientInfo(const client *c) {
1023 int j;

Callers 2

_serverAssertWithInfoFunction · 0.70
RM__AssertFunction · 0.70

Calls 6

bugReportStartFunction · 0.85
serverLogFunction · 0.85
printCrashReportFunction · 0.85
removeSignalHandlersFunction · 0.85
bugReportEndFunction · 0.85
logStackTraceFunction · 0.70

Tested by

no test coverage detected