Add backtrace support for internal errors

This commit is contained in:
Andrea Mazzoleni 2015-12-02 23:21:33 +01:00
parent a66ccb5cc1
commit f71ddbb3fd
9 changed files with 134 additions and 43 deletions

View file

@ -77,7 +77,7 @@ void state_rehash(struct snapraid_state* state)
if (info_get_rehash(info)) {
/* LCOV_EXCL_START */
log_fatal("Internal inconsistency for a rehash already in progress\n");
exit(EXIT_FAILURE);
os_abort();
/* LCOV_EXCL_STOP */
}