Libdw: Reduce maximum backtrace depth
authorBen Gamari <ben@smart-cactus.org>
Tue, 22 Nov 2016 02:50:55 +0000 (21:50 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 7 May 2017 19:36:16 +0000 (15:36 -0400)
rts/Libdw.c

index 33a40a1..1e4f50e 100644 (file)
@@ -16,7 +16,7 @@
 #include <dwarf.h>
 #include <unistd.h>
 
-const int max_backtrace_depth = 5000;
+const int max_backtrace_depth = 500;
 
 static BacktraceChunk *backtraceAllocChunk(BacktraceChunk *next) {
     BacktraceChunk *chunk = stgMallocBytes(sizeof(BacktraceChunk),