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

This commit is contained in:
antirez
2009-06-07 14:00:31 +02:00
parent c4cd5f393c
commit 56906eefea
4 changed files with 174 additions and 152 deletions

2
sds.c
View File

@ -28,6 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#define SDS_ABORT_ON_OOM
#include "sds.h"
#include <stdio.h>
#include <stdlib.h>