summaryrefslogtreecommitdiff
path: root/src/redis-check-rdb.c
diff options
context:
space:
mode:
authorMeir Shpilraien (Spielrein) <meir@redislabs.com>2020-11-03 14:59:21 +0200
committerGitHub <noreply@github.com>2020-11-03 14:59:21 +0200
commitf210e197f3b9d0b4a81c6c354296da8f1ddad513 (patch)
tree01e61a28daad00738288db582cf48c387b39cfbd /src/redis-check-rdb.c
parent9122379abc3b15dfd2af3624586cc1e3f826eb55 (diff)
downloadredis-f210e197f3b9d0b4a81c6c354296da8f1ddad513.tar.gz
Added crash report on SIGABRT (#8004)
The reason that we want to get a full crash report on SIGABRT is that the jmalloc, when detecting a corruption, calls abort(). This will cause the Redis to exist silently without any report and without any way to analyze what happened.
Diffstat (limited to 'src/redis-check-rdb.c')
-rw-r--r--src/redis-check-rdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redis-check-rdb.c b/src/redis-check-rdb.c
index a9d110aa8..f399864dd 100644
--- a/src/redis-check-rdb.c
+++ b/src/redis-check-rdb.c
@@ -172,6 +172,7 @@ void rdbCheckSetupSignals(void) {
sigaction(SIGBUS, &act, NULL);
sigaction(SIGFPE, &act, NULL);
sigaction(SIGILL, &act, NULL);
+ sigaction(SIGABRT, &act, NULL);
}
/* Check the specified RDB file. Return 0 if the RDB looks sane, otherwise