MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _serverAssert

Function _serverAssert

app/redis-6.2.6/src/debug.c:898–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896/* =========================== Crash handling ============================== */
897
898void _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
915void _serverAssertPrintClientInfo(const client *c) {
916 int j;

Callers 2

_serverAssertWithInfoFunction · 0.70
RM__AssertFunction · 0.70

Calls 5

bugReportStartFunction · 0.85
logStackTraceFunction · 0.85
printCrashReportFunction · 0.85
removeSignalHandlersFunction · 0.85
bugReportEndFunction · 0.85

Tested by

no test coverage detected