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

Function printCrashReport

src/debug.cpp:2067–2081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2065}
2066
2067void printCrashReport(void) {
2068 g_fInCrash = true;
2069
2070 /* Log INFO and CLIENT LIST */
2071 logServerInfo();
2072
2073 /* Log the current client */
2074 logCurrentClient();
2075
2076 /* Log modules info. Something we wanna do last since we fear it may crash. */
2077 logModulesInfo();
2078
2079 /* Run memory test in case the crash was triggered by memory corruption. */
2080 doFastMemoryTest();
2081}
2082
2083void bugReportEnd(int killViaSignal, int sig) {
2084 struct sigaction act;

Callers 3

_serverAssertFunction · 0.85
_serverPanicFunction · 0.85
sigsegvHandlerFunction · 0.85

Calls 4

logServerInfoFunction · 0.85
logCurrentClientFunction · 0.85
logModulesInfoFunction · 0.85
doFastMemoryTestFunction · 0.85

Tested by

no test coverage detected