forked from github/server
reserve memory for backtrace before it runs out
This commit is contained in:
parent
5b167077a9
commit
5a01ea14b6
1 changed files with 1 additions and 1 deletions
|
@ -268,10 +268,10 @@ static int parse_args(int argc, char **argv)
|
|||
#ifdef HAVE_BACKTRACE
|
||||
#include <execinfo.h>
|
||||
#include <signal.h>
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue