X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/447ebf3bc73016a6137a458bf0314109a0128157..8e0ef249a2c1a67e11838ff48329b51c4aa7ccdc:/src/debug.c diff --git a/src/debug.c b/src/debug.c index f16bcfd1..fe21531b 100644 --- a/src/debug.c +++ b/src/debug.c @@ -389,6 +389,14 @@ void _redisPanic(char *msg, char *file, int line) { #endif } +void bugReportStart(void) { + if (server.bug_report_start == 0) { + redisLog(REDIS_WARNING, + "\n\n=== REDIS BUG REPORT START: Cut & paste starting from here ==="); + server.bug_report_start = 1; + } +} + #ifdef HAVE_BACKTRACE static void *getMcontextEip(ucontext_t *uc) { #if defined(__FreeBSD__) @@ -420,14 +428,6 @@ static void *getMcontextEip(ucontext_t *uc) { #endif } -void bugReportStart(void) { - if (server.bug_report_start == 0) { - redisLog(REDIS_WARNING, - "\n\n=== REDIS BUG REPORT START: Cut & paste starting from here ==="); - server.bug_report_start = 1; - } -} - void logStackContent(void **sp) { int i; for (i = 15; i >= 0; i--) { @@ -589,6 +589,8 @@ void sigsegvHandler(int sig, siginfo_t *info, void *secret) { /* Log INFO and CLIENT LIST */ redisLog(REDIS_WARNING, "--- INFO OUTPUT"); infostring = genRedisInfoString("all"); + infostring = sdscatprintf(infostring, "hash_init_value: %u\n", + dictGetHashFunctionSeed()); redisLogRaw(REDIS_WARNING, infostring); redisLog(REDIS_WARNING, "--- CLIENT LIST OUTPUT"); clients = getAllClientsInfoString();