Crash on Android 12 When start with "Debug 'app'"
cantalou opened this issue · 4 comments
This crash occurs every time when When start with "Debug 'app'" in AndroidStudio.
Model: Pixel 5a
Android version: 12
Build number: SP1A.210812.016.A1
Add below code in ExampleApp onCreate method:
@Override public void onCreate() {
super.onCreate();
PineConfig.debug = true;
PineConfig.debuggable = BuildConfig.DEBUG;
Pine.disableJitInline();
// Cause crash code start
try {
Pine.hook(JSONObject.class.getDeclaredMethod("put",new Class[]{String.class, Object.class}), new MethodHook(){
@Override
public void beforeCall(Pine.CallFrame callFrame) throws Throwable {
Log.e("Pine","put " + callFrame.args[0] + ":" + callFrame.args[1]);
}
});
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
JSONObject a = new JSONObject();
try {
a.put("str", "1");
} catch (JSONException e) {
throw new RuntimeException(e);
}
//Causes crash code end
}
2022-06-06 10:15:18.292 31367-31367/top.canyie.pine.examples E/Pine: put str:1
2022-06-06 10:15:18.292 31367-31367/top.canyie.pine.examples A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfffffcbd6c26d8 in tid 31367 (e.pine.examples), pid 31367 (e.pine.examples)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: Build fingerprint: 'google/barbet/barbet:12/SP1A.210812.016.A1/7796139:user/release-keys'
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: Revision: 'MP1.0'
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: ABI: 'arm64'
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: Timestamp: 2022-06-06 10:15:18.339604585+0800
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: Process uptime: 3s
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: Cmdline: top.canyie.pine.examples
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: pid: 31367, tid: 31367, name: e.pine.examples >>> top.canyie.pine.examples <<<
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: uid: 10575
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfffffcbd6c26d8
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x0 0000000012d0a6f8 x1 000000000000000c x2 0000000000000032 x3 000000731a23df90
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x4 0000000000000000 x5 0000000000000000 x6 b400007469f34de0 x7 0000007fd42ca020
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x8 fffffffcbd6c26c8 x9 0000000012d0a6cc x10 0000000000000000 x11 0000000000007a87
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x12 b400007469f33380 x13 b400007429f2e010 x14 00000075a0cfb760 x15 0000007fd42c9f88
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x16 00000072763ef568 x17 00000072f8f9a64c x18 00000075a1ecc000 x19 b400007469f33380
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x20 b400007359f25b00 x21 0000007fd42c9b20 x22 000000006fb42c50 x23 0000000012d0a6f8
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x24 000000006fb42c50 x25 000000731a23df90 x26 00000075a14ec000 x27 0000000395536ffa
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: x28 0000000081000000 x29 0000007fd42c9a80
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: lr 00000072f8f9a9dc sp 0000007fd42c9a00 pc 00000072f8f9a9ec pst 0000000020001000
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: backtrace:
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #00 pc 000000000059a9ec /apex/com.android.art/lib64/libart.so!libart.so (unsigned long art::jni::JniIdManager::EncodeGenericId<art::ArtMethod>(art::ReflectiveHandle<art::ArtMethod>)+472) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #01 pc 000000000059a6c4 /apex/com.android.art/lib64/libart.so!libart.so (art::jni::JniIdManager::EncodeMethodId(art::ArtMethod*)+120) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #02 pc 000000000004899c /apex/com.android.art/lib64/libopenjdkjvmti.so (openjdkjvmti::JvmtiMethodTraceListener::DexPcMoved(art::Thread*, art::Handle<art::mirror::Object>, art::ArtMethod*, unsigned int)+108) (BuildId: 2b29640bb11aff42247d53dd3fed1b01)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #03 pc 0000000000253094 /apex/com.android.art/lib64/libart.so (art::instrumentation::Instrumentation::DexPcMovedEventImpl(art::Thread*, art::ObjPtr<art::mirror::Object>, art::ArtMethod*, unsigned int) const+164) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #04 pc 00000000002203d8 /apex/com.android.art/lib64/libart.so (art::interpreter::InstructionHandler<false, false, (art::Instruction::Format)26>::DoDexPcMoveEvent(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame const&, unsigned int, art::instrumentation::Instrumentation const*, art::JValue*)+236) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #05 pc 0000000000216b88 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+26960) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #06 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #07 pc 0000000000046760 /apex/com.android.art/javalib/core-libart.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #08 pc 000000000027dc88 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+408) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #09 pc 000000000027cf1c /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1176) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #10 pc 00000000002d9b78 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #11 pc 00000000002d0164 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #12 pc 0000000000364cec /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+744) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #13 pc 00000000003649dc /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #14 pc 00000000000b2f74 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: ab2bf4ec264efdb6c452a238be38fe624de826b8)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #15 pc 00000000002d0164 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #16 pc 00000000002f47c4 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+312) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #17 pc 0000000000417a1c /apex/com.android.art/lib64/libart.so!libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+820) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #18 pc 0000000000216608 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+25552) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #19 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #20 pc 0000000000007418 /data/data/top.canyie.pine.examples/code_cache/.overlay/base.apk/classes.dex
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #21 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #22 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #23 pc 00000000003851d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+148) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #24 pc 0000000000417c94 /apex/com.android.art/lib64/libart.so!libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1452) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #25 pc 0000000000210700 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+1224) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #26 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #27 pc 0000000000006e0c /data/data/top.canyie.pine.examples/code_cache/.overlay/base.apk/classes.dex
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #28 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #29 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #30 pc 00000000003851d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+148) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #31 pc 0000000000417c94 /apex/com.android.art/lib64/libart.so!libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1452) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #32 pc 0000000000216608 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+25552) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #33 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #34 pc 0000000000007474 /data/data/top.canyie.pine.examples/code_cache/.overlay/base.apk/classes.dex
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #35 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #36 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #37 pc 00000000003851d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+148) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #38 pc 0000000000417c94 /apex/com.android.art/lib64/libart.so!libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1452) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #39 pc 0000000000210700 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+1224) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #40 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #41 pc 00000000000093d0 /data/data/top.canyie.pine.examples/code_cache/.overlay/base.apk/classes.dex
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #42 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #43 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #44 pc 00000000003851d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+148) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #45 pc 0000000000385834 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1032) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #46 pc 0000000000216534 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+25340) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #47 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #48 pc 0000000000009760 /data/data/top.canyie.pine.examples/code_cache/.overlay/base.apk/classes.dex
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #49 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #50 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #51 pc 000000000027cf1c /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1176) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #52 pc 00000000002d9b78 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #53 pc 00000000002d0164 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #54 pc 00000000002f47c4 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+312) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #55 pc 0000000000417a1c /apex/com.android.art/lib64/libart.so!libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+820) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #56 pc 0000000000216608 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+25552) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #57 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #58 pc 000000000000a510 /data/data/top.canyie.pine.examples/code_cache/.overlay/base.apk/classes.dex
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #59 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #60 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #61 pc 00000000003851d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+148) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #62 pc 0000000000417c94 /apex/com.android.art/lib64/libart.so!libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1452) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #63 pc 0000000000216608 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+25552) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #64 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #65 pc 000000000023e8a0 /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #66 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #67 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #68 pc 00000000002f3f8c /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+3908) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #69 pc 00000000002349c0 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<true, false>(art::interpreter::SwitchImplContext*)+28752) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #70 pc 00000000002dc3d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #71 pc 00000000001c4940 /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #72 pc 0000000000545d54 /apex/com.android.art/lib64/libart.so!libart.so (art::interpreter::ExecuteSwitch(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.6649268296134209133)+192) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #73 pc 000000000027e2ec /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+2044) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #74 pc 00000000002f3f8c /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+3908) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #75 pc 0000000000416ca4 /apex/com.android.art/lib64/libart.so!libart.so (MterpInvokeDirect+2488) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #76 pc 00000000002ca994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #77 pc 00000000001c1d7c /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #78 pc 000000000027dd74 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+644) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #79 pc 00000000003851d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+148) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #80 pc 0000000000417c94 /apex/com.android.art/lib64/libart.so!libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1452) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #81 pc 000000000077699c /apex/com.android.art/lib64/libart.so!libart.so (MterpInvokeStatic+3812) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #82 pc 00000000002caa14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #83 pc 00000000001be520 /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #84 pc 00000000002c5c48 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+2292) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #85 pc 00000000002ca894 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #86 pc 00000000004232ce /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #87 pc 00000000002c5c48 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+2292) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #88 pc 00000000002ca894 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #89 pc 000000000044ccc6 /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #90 pc 0000000000776300 /apex/com.android.art/lib64/libart.so!libart.so (MterpInvokeStatic+2120) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #91 pc 00000000002caa14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #92 pc 000000000044d308 /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #93 pc 0000000000775d24 /apex/com.android.art/lib64/libart.so!libart.so (MterpInvokeStatic+620) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #94 pc 00000000002caa14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #95 pc 00000000001c8532 /system/framework/framework.jar
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #96 pc 000000000027dd74 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6649268296134209133)+644) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #97 pc 000000000027cf1c /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1176) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #98 pc 00000000002d9b78 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.512 31397-31397/? A/DEBUG: #99 pc 00000000002d9d8c /apex/com.android.art/lib64/libart.so (BuildId: cdecb8dde1264c9871695c29854aa3b1)
2022-06-06 10:15:18.527 702-702/? E/tombstoned: Tombstone written to: tombstone_22
Having the same issue here as well (Android 11). I thought setting the debuggable
flag to BuildConfig.DEBUG
before hooking (as mentioned in the readme) should take care of this. But it is still throwing as you mentioned.
@ibradwan You now know why lsplant hooks EncodeGenericId
:P
@canyie Hello, I've also encountered this issue. Is there any update on it?
Update: Vivo and huawei crashes while xiaomi works well when debugger is attached.
@yujincheng08 Hi, is there any solution for this issue ?
Thanks have a nice day.