frida / frida

Clone this repo to build Frida
https://frida.re
Other
15.73k stars 1.63k forks source link

java_vm_ext.cc:638] JNI ERROR (app bug): global reference table overflow (max=51200)global reference table dump: #1206

Open galenzhao opened 4 years ago

galenzhao commented 4 years ago

` time: 1583651506031 msg: Native crash: Aborted stacktrace: Build fingerprint: 'samsung/hltexx/hlte:5.0/LRX21V/N9005XXSGBRI2:user/release-keys' Revision: '0' ABI: 'arm' pid: 19303, tid: 19303, name: om.xtooltech.ui >>> com.xtooltech.ui <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- Abort message: 'java_vm_ext.cc:638] JNI ERROR (app bug): global reference table overflow (max=51200)global reference table dump:' r0 00000000 r1 00004b67 r2 00000006 r3 00000008 r4 00004b67 r5 00004b67 r6 bef6ea8c r7 0000010c r8 0000000b r9 bef6eaf9 r10 0000000a r11 bef6eaf8 ip 00000041 sp bef6ea78 lr b1ceb125 pc b1ce2e4a

backtrace:

00 pc 0001ce4a /system/lib/libc.so (abort+58)

#01 pc 00357253  /system/lib/libart.so (offset 0x96000) (art::Runtime::Abort(char const*)+950)
#02 pc 000071c3  /system/lib/libbase.so (android::base::LogMessage::~LogMessage()+506)
#03 pc 00236c99  /system/lib/libart.so (offset 0x96000) (art::JavaVMExt::AddGlobalRef(art::Thread*, art::ObjPtr<art::mirror::Object>)+204)
#04 pc 0026ab45  /system/lib/libart.so (offset 0x96000) (art::JNI::NewGlobalRef(_JNIEnv*, _jobject*)+432)
#05 pc 000c5765  /system/lib/libart.so (offset 0x96000) (art::(anonymous namespace)::CheckJNI::NewRef(char const*, _JNIEnv*, _jobject*, art::IndirectRefKind)+552)
#06 pc 000d7cb0  /data/app/com.xtooltech.ui-Gy5ewkdpudzB_JiPjBuQsA==/lib/arm/libgdgt.so
#07 pc 000d77e7  /data/app/com.xtooltech.ui-Gy5ewkdpudzB_JiPjBuQsA==/lib/arm/libgdgt.so 

`

Hi, how can I debug the cause of this problem?

oleavr commented 4 years ago

Would be great to create a minimal reproducer. Then once you have that you can add a test to frida-java-bridge. For locally experimenting I would recommend setting up a local playground like this.