summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAchim Kriso <achim.kriso@student.kit.edu>2020-03-11 15:50:22 +0100
committerAndreas Fried <andreas.fried@kit.edu>2020-03-26 14:08:14 +0100
commit510e5bc09247baaf061363d36de475e3ecb3843d (patch)
treeb8e1115ea4216fd326ac6b2a97cbf17a0c018685
parent4e0d9f5b6a7b000bef1479d5d442273785889349 (diff)
raise debug break on error
-rw-r--r--runtime/lfmalloc/src/lfinternal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lfmalloc/src/lfinternal.c b/runtime/lfmalloc/src/lfinternal.c
index 0d6af92..9e8fbcb 100644
--- a/runtime/lfmalloc/src/lfinternal.c
+++ b/runtime/lfmalloc/src/lfinternal.c
@@ -5,6 +5,8 @@
#include <sys/mman.h>
#include <stdbool.h>
+#include <signal.h>
+
#include <pthread.h>
#include "lfinternal.h"
@@ -389,6 +391,8 @@ void __lf_error(void *ptr, void* base, unsigned long size, unsigned int reason,
s_reason, ptr, base, size);
}
+ raise(SIGINT);
+
#ifdef ABORT_ON_ERROR
abort();
#endif