summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Narayan Kamath <narayan@google.com> 2017-04-18 17:48:39 +0100
committer Andreas Gampe <agampe@google.com> 2017-06-12 16:54:40 -0700
commitcfd0f9beeed9c1934b47a2914533cdd06c9f79e3 (patch)
treec83b6e5d33b5427d3dd86b51a176cf1cf7f99481
parent83a24af5459696c3905fe476ca86c7b34e75650f (diff)
Binder: Log details of pending exception.
This was accidentally removed by change d64abfcf93b59500a0d. Test: manual; verify exception trace is printed in logs. Bug: 36813403 Bug: 37435516 Change-Id: I73ae8de167c457d56fddb85943a8f08f8913f0f7 (cherry picked from commit ccc9fad9e6abfa3cf082567669cc5d03ec7a3086)
-rw-r--r--core/jni/android_util_Binder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp
index 1aed501335c4..de67c50e7195 100644
--- a/core/jni/android_util_Binder.cpp
+++ b/core/jni/android_util_Binder.cpp
@@ -193,10 +193,10 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg)
if (env->IsInstanceOf(excep, gErrorOffsets.mClass)) {
/*
* It's an Error: Reraise the exception and ask the runtime to abort.
- * This will dump the pending exception as well as all thread traces
- * to the log.
*/
env->Throw(excep);
+ ALOGE("java.lang.Error thrown during binder transaction (stack trace follows) : ");
+ env->ExceptionDescribe();
env->FatalError("java.lang.Error thrown during binder transaction.");
}