Skip to content

Commit 56906ee

Browse files
committed
Dump a backtrace on sigsegv/sigbus, original coded thanks to Diego Rosario Brogna, modified in order to work on different OSes and to enhance reliability
1 parent c4cd5f3 commit 56906ee

File tree

4 files changed

+181
-159
lines changed

4 files changed

+181
-159
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is released under the BSD license, see the COPYING file
44

55
DEBUG?= -g -rdynamic -ggdb
6-
CFLAGS?= -std=c99 -pedantic -O0 -Wall -W -DSDS_ABORT_ON_OOM
6+
CFLAGS?= -std=c99 -pedantic -O2 -Wall -W
77
CCOPT= $(CFLAGS)
88

99
OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o

TODO

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BEFORE REDIS 1.0.0-rc1
44
* Resize the expires and Sets hash tables if needed as well? For Sets the right moment to check for this is probably in SREM
55
* check 'server.dirty' everywere. Make it proprotional to the number of objects modified.
66
* Cover most of the source code with test-redis.tcl
7+
* Remove tmp-.... files when saving child exits in the wrong way, to do so use tmp-pid.rdb as filename so that the parent can rebuild the file name just from the child pid.
78

89
AFTER 1.0 stable release
910

0 commit comments

Comments
 (0)