Improve crash diagnostics: the backtrace sanitizer may crash so we should dump the backtrace to stderr if that happens.