Print stack trace on assert() failure or when calling fatal_error()

Note: this uses the __sanitizer_print_stack_trace() function from the
AddressSanitizer runtime, so it only works when AddressSanitizer is
in use.
This commit is contained in:
Craig Barnes 2021-01-15 20:39:45 +00:00
parent bcf46d9eab
commit 22f25a9e4f
23 changed files with 125 additions and 37 deletions

View file

@ -6,7 +6,6 @@
#include <stdbool.h>
#include <ctype.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <pwd.h>
#include <fcntl.h>
@ -21,6 +20,7 @@
#define LOG_MODULE "config"
#define LOG_ENABLE_DBG 0
#include "log.h"
#include "debug.h"
#include "input.h"
#include "macros.h"
#include "tokenize.h"