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

@ -424,7 +424,7 @@ struct snapraid_handle* handle_map(struct snapraid_state* state, unsigned* handl
if (k == 0) {
/* LCOV_EXCL_START */
log_fatal("Internal error for inconsistent disk mapping.\n");
exit(EXIT_FAILURE);
os_abort();
/* LCOV_EXCL_STOP */
}