Skip to content
Browse files

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 6567510.)

Bug: 7093208
Change-Id: I4dcdff2ffe49a4897d8f5279d09a0dcc3de70db6
  • Loading branch information...
1 parent b79d90e commit bab2237924fa26e16f732965657f8ff93ab27f37 @enh enh committed Sep 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 vm/Native.cpp
View
1 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;
}

0 comments on commit bab2237

Please sign in to comment.
Something went wrong with that request. Please try again.