|
@@ -109,8 +109,10 @@ log_backtrace(int severity, int domain, const char *msg)
|
|
|
|
|
|
tor_log(severity, domain, "%s. Stack trace:", msg);
|
|
|
if (!symbols) {
|
|
|
+ /* LCOV_EXCL_START -- we can't provoke this. */
|
|
|
tor_log(severity, domain, " Unable to generate backtrace.");
|
|
|
goto done;
|
|
|
+ /* LCOV_EXCL_STOP */
|
|
|
}
|
|
|
for (i=0; i < depth; ++i) {
|
|
|
tor_log(severity, domain, " %s", symbols[i]);
|
|
@@ -173,8 +175,10 @@ install_bt_handler(void)
|
|
|
|
|
|
for (i = 0; trap_signals[i] >= 0; ++i) {
|
|
|
if (sigaction(trap_signals[i], &sa, NULL) == -1) {
|
|
|
+ /* LCOV_EXCL_START */
|
|
|
log_warn(LD_BUG, "Sigaction failed: %s", strerror(errno));
|
|
|
rv = -1;
|
|
|
+ /* LCOV_EXCL_STOP */
|
|
|
}
|
|
|
}
|
|
|
|