OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83a24af
)
Binder: Log details of pending exception.
author
Narayan Kamath
<narayan@google.com>
Tue, 18 Apr 2017 16:48:39 +0000
(17:48 +0100)
committer
Andreas Gampe
<agampe@google.com>
Mon, 12 Jun 2017 23:54:40 +0000
(16:54 -0700)
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
)
core/jni/android_util_Binder.cpp
patch
|
blob
|
history
diff --git
a/core/jni/android_util_Binder.cpp
b/core/jni/android_util_Binder.cpp
index
1aed501
..
de67c50
100644
(file)
--- 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.");
}