forked from github/server
reserve memory for backtrace before it runs out
This commit is contained in:
parent
ebe1df4cb9
commit
9214975732
1 changed files with 1 additions and 1 deletions
|
@ -268,10 +268,10 @@ static int parse_args(int argc, char **argv)
|
||||||
#ifdef HAVE_BACKTRACE
|
#ifdef HAVE_BACKTRACE
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
static void *btrace[50];
|
||||||
|
|
||||||
static void report_segfault(int signo, siginfo_t * sinf, void *arg)
|
static void report_segfault(int signo, siginfo_t * sinf, void *arg)
|
||||||
{
|
{
|
||||||
void *btrace[50];
|
|
||||||
size_t size;
|
size_t size;
|
||||||
int fd = fileno(stderr);
|
int fd = fileno(stderr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue