Skip to content

Commit

Permalink
Log address causing SIGSEGV.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Dec 15, 2015
1 parent 8f8c399 commit 6db8e85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,10 @@ void sigsegvHandler(int sig, siginfo_t *info, void *secret) {
bugReportStart();
serverLog(LL_WARNING,
" Redis %s crashed by signal: %d", REDIS_VERSION, sig);
if (sig == SIGSEGV) {
serverLog(LL_WARNING,
" SIGSEGV caused by address: %p", (void*)info->si_addr);
}
serverLog(LL_WARNING,
" Failed assertion: %s (%s:%d)", server.assert_failed,
server.assert_file, server.assert_line);
Expand Down

0 comments on commit 6db8e85

Please sign in to comment.