From 68083003b8875e0acec834461ba3574a4d65e583 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Fri, 25 Sep 2020 13:51:02 -0700 Subject: [PATCH] Improve error message in debuggerd fallback handler. Bug: http://b/164014625 Test: none Change-Id: I4f1e61be93c511676e66b909a15735bba963eff0 --- debuggerd/handler/debuggerd_fallback.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debuggerd/handler/debuggerd_fallback.cpp b/debuggerd/handler/debuggerd_fallback.cpp index 9bcbdb36a..85ba09ed6 100644 --- a/debuggerd/handler/debuggerd_fallback.cpp +++ b/debuggerd/handler/debuggerd_fallback.cpp @@ -237,6 +237,8 @@ static void trace_handler(siginfo_t* info, ucontext_t* ucontext) { // Fetch output fd from tombstoned. unique_fd tombstone_socket, output_fd; if (!tombstoned_connect(getpid(), &tombstone_socket, &output_fd, kDebuggerdNativeBacktrace)) { + async_safe_format_log(ANDROID_LOG_ERROR, "libc", + "missing crash_dump_fallback() in selinux policy?"); goto exit; }