diff options
author | Elliott Hughes <enh@google.com> | 2012-09-26 16:40:41 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-09-26 17:10:25 -0700 |
commit | bab2237924fa26e16f732965657f8ff93ab27f37 (patch) | |
tree | f2d76f9b08db27c5775f33822e775299979da4d0 /vm/Native.cpp | |
parent | b79d90ebd197b9040c06d73f5dc8bbc8fdad1d54 (diff) | |
download | android_dalvik-bab2237924fa26e16f732965657f8ff93ab27f37.tar.gz android_dalvik-bab2237924fa26e16f732965657f8ff93ab27f37.tar.bz2 android_dalvik-bab2237924fa26e16f732965657f8ff93ab27f37.zip |
Log if dlopen(3) fails.
It turns out that some apps swallow the UnsatisfiedLinkError, making it
really hard to work out why they failed to launch.
Before:
D dalvikvm: Trying to load lib /data/app-lib/com.adobe.air-1/libCore.so 0x415be8a8
W dalvikvm: No implementation found for native Lcom/adobe/air/AIRWindowSurfaceView;.nativeSurfaceCreated:()V
After:
D dalvikvm: Trying to load lib /data/app-lib/com.adobe.air-1/libCore.so 0x415be8a8
E dalvikvm: dlopen("/data/app-lib/com.adobe.air-1/libCore.so") failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "_ZN7android10VectorImpl19reservedVectorImpl1Ev" referenced by "libCore.so"...
W dalvikvm: No implementation found for native Lcom/adobe/air/AIRWindowSurfaceView;.nativeSurfaceCreated:()V
(cherry-pick of 6567510ba1470bba6036d2b0b042425bdd03cf2b.)
Bug: 7093208
Change-Id: I4dcdff2ffe49a4897d8f5279d09a0dcc3de70db6
Diffstat (limited to 'vm/Native.cpp')
-rw-r--r-- | vm/Native.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/Native.cpp b/vm/Native.cpp index be719a7f0..8892c2a34 100644 --- a/vm/Native.cpp +++ b/vm/Native.cpp @@ -385,6 +385,7 @@ bool dvmLoadNativeCode(const char* pathName, Object* classLoader, if (handle == NULL) { *detail = strdup(dlerror()); + ALOGE("dlopen(\"%s\") failed: %s", pathName, *detail); return false; } |