From f1ab83465857bc80a50fa24f185e88ba10abf7d2 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 15 Dec 2015 18:00:29 +0100 Subject: [PATCH] Log address causing SIGSEGV. --- src/debug.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug.c b/src/debug.c index a22556bd..0a2e6c68 100644 --- a/src/debug.c +++ b/src/debug.c @@ -811,6 +811,10 @@ void sigsegvHandler(int sig, siginfo_t *info, void *secret) { bugReportStart(); redisLog(REDIS_WARNING, " Redis %s crashed by signal: %d", REDIS_VERSION, sig); + if (sig == SIGSEGV) { + redisLog(REDIS_WARNING, + " SIGSEGV caused by address: %p", (void*)info->si_addr); + } redisLog(REDIS_WARNING, " Failed assertion: %s (%s:%d)", server.assert_failed, server.assert_file, server.assert_line);