From 92149757328945fdaa36b96d6e9b216c33f41034 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 24 Jan 2019 16:18:58 +0100 Subject: [PATCH] reserve memory for backtrace before it runs out --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index bd5a92b46..6b80c0cb0 100644 --- a/src/main.c +++ b/src/main.c @@ -268,10 +268,10 @@ static int parse_args(int argc, char **argv) #ifdef HAVE_BACKTRACE #include #include +static void *btrace[50]; static void report_segfault(int signo, siginfo_t * sinf, void *arg) { - void *btrace[50]; size_t size; int fd = fileno(stderr);