the-mac / AndroidJniHelpers

Tools for writing secure Android/JNI code, based upon Spotify's Jni Helpers Library
http://on.fb.me/1MIc51o
MIT License
37 stars 5 forks source link

Demo loadAPIKey failing on HTTP_BIN request #2

Closed cdm2012 closed 6 years ago

cdm2012 commented 7 years ago

`I: Not late-enabling -Xcheck:jni (already on) W: Unexpected CPU variant for X86 using defaults: x86 D: Called MainApplication static {...} successfully W: Called JNI_OnLoad in native-lib W: Called JNI_OnLoad Completely in native-lib D: Called MainApplication constructor successfully D: Called MainProvider static {...} successfully W: Called Java_us_the_mac_library_demo_androidjni_MainProvider_loadAPIKey in native-lib W: Called ... loadAPIKey, The nativeKey string is FHppc7om5dCkJGzhHYc5ug== for us/the/mac/android/jni/helpers/EncryptedString W: java.lang.Exception: cf: java.security.cert.CertificateFactory@db51d4f, caInput: null, ca: null W: at us.the.mac.android.jni.helpers.Network.getSSLClient(Network.java:157) W: at us.the.mac.android.jni.helpers.Network.access$000(Network.java:39) W: at us.the.mac.android.jni.helpers.Network$1.doInBackground(Network.java:97) W: at us.the.mac.android.jni.helpers.Network$1.doInBackground(Network.java:94) W: at android.os.AsyncTask$2.call(AsyncTask.java:304) W: at java.util.concurrent.FutureTask.run(FutureTask.java:237) W: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) W: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) W: at java.lang.Thread.run(Thread.java:761) W: Caused by: java.lang.NullPointerException: Attempt to get length of null array W: at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106) W: at us.the.mac.android.jni.helpers.Network.getSSLClient(Network.java:120) W: ... 8 more W: java.lang.NullPointerException: Attempt to invoke virtual method 'org.apache.http.HttpResponse org.apache.http.impl.client.AbstractHttpClient.execute(org.apache.http.client.methods.HttpUriRequest)' on a null object reference W: at us.the.mac.android.jni.helpers.Network$1.doInBackground(Network.java:97) W: at us.the.mac.android.jni.helpers.Network$1.doInBackground(Network.java:94) W: at android.os.AsyncTask$2.call(AsyncTask.java:304) W: at java.util.concurrent.FutureTask.run(FutureTask.java:237) W: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) W: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) W: at java.lang.Thread.run(Thread.java:761) E: Called request retryCountRemaining: 2, requestJsonObject: { "apiKey": "FHppc7om5dCkJGzhHYc5ug==" }, response length: 192, jsonObject: Attempt to invoke virtual method 'org.apache.http.HttpResponse org.apache.http.impl.client.AbstractHttpClient.execute(org.apache.http.client.methods.HttpUriRequest)' on a null object reference W: Called ... loadAPIKey, The response string is Attempt to invoke virtual method 'org.apache.http.HttpResponse org.apache.http.impl.client.AbstractHttpClient.execute(org.apache.http.client.methods.HttpUriRequest)' on a null object reference for us/the/mac/library/demo/androidjni/MainRequests W: Called ... loadAPIKey, The response string length is 192 for us/the/mac/library/demo/androidjni/MainRequests A: art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception org.json.JSONException: Value Attempt of type java.lang.String cannot be converted to JSONObject A: art/runtime/java_vm_ext.cc:470] at org.json.JSONException org.json.JSON.typeMismatch(java.lang.Object, java.lang.String) (JSON.java:111) A: art/runtime/java_vm_ext.cc:470] at void org.json.JSONObject.(org.json.JSONTokener) (JSONObject.java:160) A: art/runtime/java_vm_ext.cc:470] at void org.json.JSONObject.(java.lang.String) (JSONObject.java:173) A: art/runtime/java_vm_ext.cc:470] at void us.the.mac.library.demo.androidjni.MainProvider.loadAPIKey() (MainProvider.java:-2) A: art/runtime/java_vm_ext.cc:470] at void us.the.mac.library.demo.androidjni.MainProvider.() (MainProvider.java:15) A: art/runtime/java_vm_ext.cc:470] at java.lang.Object java.lang.Class.newInstance!() (Class.java:-2) A: art/runtime/java_vm_ext.cc:470] at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:5799) A: art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5403) A: art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5342) A: art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) A: art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1528) A: art/runtime/java_vm_ext.cc:470] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) A: art/runtime/java_vm_ext.cc:470] at void android.os.Looper.loop() (Looper.java:154) A: art/runtime/java_vm_ext.cc:470] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077) A: art/runtime/java_vm_ext.cc:470] at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) A: art/runtime/java_vm_ext.cc:470] at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865) A: art/runtime/java_vm_ext.cc:470] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755) A: art/runtime/java_vm_ext.cc:470] A: art/runtime/java_vm_ext.cc:470] in call to FindClass A: art/runtime/java_vm_ext.cc:470] from void us.the.mac.library.demo.androidjni.MainProvider.loadAPIKey() A: art/runtime/java_vm_ext.cc:470] "main" prio=5 tid=1 Runnable A: art/runtime/java_vm_ext.cc:470] | group="main" sCount=0 dsCount=0 obj=0x7544a268 self=0xaaa0b400 A: art/runtime/java_vm_ext.cc:470] | sysTid=2934 nice=0 cgrp=default sched=0/0 handle=0xaed67534 A: art/runtime/java_vm_ext.cc:470] | state=R schedstat=( 0 0 0 ) utm=2 stm=1 core=0 HZ=100 A: art/runtime/java_vm_ext.cc:470] | stack=0xbf1ab000-0xbf1ad000 stackSize=8MB A: art/runtime/java_vm_ext.cc:470] | held mutexes= "mutator lock"(shared held) A: art/runtime/java_vm_ext.cc:470] native: #00 pc 0056d8de /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+238) A: art/runtime/java_vm_ext.cc:470] native: #01 pc 00539f6e /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+526) A: art/runtime/java_vm_ext.cc:470] native: #02 pc 00536f6b /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+75) A: art/runtime/java_vm_ext.cc:470] native: #03 pc 0038e868 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+1560) A: art/runtime/java_vm_ext.cc:470] native: #04 pc 0038f168 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_Pc+120) A: art/runtime/java_vm_ext.cc:470] native: #05 pc 0013d112 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+82) A: art/runtime/java_vm_ext.cc:470] native: #06 pc 0013cb49 /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+569) A: art/runtime/java_vm_ext.cc:470] native: #07 pc 0013b4eb /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+91) A: art/runtime/java_vm_ext.cc:470] native: #08 pc 0013a26e /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+1390) A: art/runtime/java_vm_ext.cc:470] native: #09 pc 00127ed6 /system/lib/libart.so (_ZN3art8CheckJNI9FindClassEP7_JNIEnvPKc+982) A: art/runtime/java_vm_ext.cc:470] native: #10 pc 00032895 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7_JNIEnv9FindClassEPKc+53) A: art/runtime/java_vm_ext.cc:470] native: #11 pc 00045680 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni14JavaClassUtils9findClassEP7_JNIEnvPKcb+240) A: art/runtime/java_vm_ext.cc:470] native: #12 pc 00046eaa /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni18JavaExceptionUtils20throwExceptionOfTypeEP7_JNIEnvPKcS5_Pc+122) A: art/runtime/java_vm_ext.cc:470] native: #13 pc 00047396 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni18JavaExceptionUtils20throwExceptionOfTypeEP7_JNIEnvPKcS5_z+86) A: art/runtime/java_vm_ext.cc:470] native: #14 pc 0003976b /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN10JSONObjectC1EP7_JNIEnvSs+299) A: art/runtime/java_vm_ext.cc:470] native: #15 pc 0002e2f7 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (Java_us_the_mac_library_demo_androidjni_MainProvider_loadAPIKey+2151) A: art/runtime/java_vm_ext.cc:470] native: #16 pc 0002c046 /data/app/us.the.mac.library.demo.androidjni-1/oat/x86/base.odex (???) A: art/runtime/java_vm_ext.cc:470] at us.the.mac.library.demo.androidjni.MainProvider.loadAPIKey(Native method) A: art/runtime/java_vm_ext.cc:470] at us.the.mac.library.demo.androidjni.MainProvider.(MainProvider.java:15) A: art/runtime/java_vm_ext.cc:470] at java.lang.Class.newInstance!(Native method) A: art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.installProvider(ActivityThread.java:5799) A: art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.installContentProviders(ActivityThread.java:5403) A: art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5342) A: art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.-wrap2(ActivityThread.java:-1) A: art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528) A: art/runtime/java_vm_ext.cc:470] at android.os.Handler.dispatchMessage(Handler.java:102) A: art/runtime/java_vm_ext.cc:470] at android.os.Looper.loop(Looper.java:154) A: art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.main(ActivityThread.java:6077) A: art/runtime/java_vm_ext.cc:470] at java.lang.reflect.Method.invoke!(Native method) A: art/runtime/java_vm_ext.cc:470] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) A: art/runtime/java_vm_ext.cc:470] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) A: art/runtime/java_vm_ext.cc:470] A: art/runtime/runtime.cc:403] Runtime aborting... A: art/runtime/runtime.cc:403] Aborting thread: A: art/runtime/runtime.cc:403] "main" prio=5 tid=1 Native A: art/runtime/runtime.cc:403] | group="" sCount=0 dsCount=0 obj=0x7544a268 self=0xaaa0b400 A: art/runtime/runtime.cc:403] | sysTid=2934 nice=0 cgrp=default sched=0/0 handle=0xaed67534 A: art/runtime/runtime.cc:403] | state=R schedstat=( 0 0 0 ) utm=2 stm=2 core=0 HZ=100 A: art/runtime/runtime.cc:403] | stack=0xbf1ab000-0xbf1ad000 stackSize=8MB A: art/runtime/runtime.cc:403] | held mutexes= "abort lock" A: art/runtime/runtime.cc:403] native: #00 pc 0056d8de /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+238) A: art/runtime/runtime.cc:403] native: #01 pc 00539f6e /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+526) A: art/runtime/runtime.cc:403] native: #02 pc 00536f6b /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+75) A: art/runtime/runtime.cc:403] native: #03 pc 00522d43 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+67) A: art/runtime/runtime.cc:403] native: #04 pc 00522b17 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+615) A: art/runtime/runtime.cc:403] native: #05 pc 0051327b /system/lib/libart.so (_ZN3art7Runtime5AbortEv+155) A: art/runtime/runtime.cc:403] native: #06 pc 00119572 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1298) A: art/runtime/runtime.cc:403] native: #07 pc 0038efc5 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+3445) A: art/runtime/runtime.cc:403] native: #08 pc 0038f168 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_Pc+120) A: art/runtime/runtime.cc:403] native: #09 pc 0013d112 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+82) A: art/runtime/runtime.cc:403] native: #10 pc 0013cb49 /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+569) A: art/runtime/runtime.cc:403] native: #11 pc 0013b4eb /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+91) A: art/runtime/runtime.cc:403] native: #12 pc 0013a26e /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+1390) A: art/runtime/runtime.cc:403] native: #13 pc 00127ed6 /system/lib/libart.so (_ZN3art8CheckJNI9FindClassEP7_JNIEnvPKc+982) A: art/runtime/runtime.cc:403] native: #14 pc 00032895 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7_JNIEnv9FindClassEPKc+53) A: art/runtime/runtime.cc:403] native: #15 pc 00045680 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni14JavaClassUtils9findClassEP7_JNIEnvPKcb+240) A: art/runtime/runtime.cc:403] native: #16 pc 00046eaa /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni18JavaExceptionUtils20throwExceptionOfTypeEP7_JNIEnvPKcS5_Pc+122) A: art/runtime/runtime.cc:403] native: #17 pc 00047396 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni18JavaExceptionUtils20throwExceptionOfTypeEP7_JNIEnvPKcS5_z+86) A: art/runtime/runtime.cc:403] native: #18 pc 0003976b /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN10JSONObjectC1EP7_JNIEnvSs+299) A: art/runtime/runtime.cc:403] native: #19 pc 0002e2f7 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (Java_us_the_mac_library_demo_androidjni_MainProvider_loadAPIKey+2151) A: art/runtime/runtime.cc:403] native: #20 pc 0002c046 /data/app/us.the.mac.library.demo.androidjni-1/oat/x86/base.odex (???) A: art/runtime/runtime.cc:403] at us.the.mac.library.demo.androidjni.MainProvider.loadAPIKey(Native method) A: art/runtime/runtime.cc:403] at us.the.mac.library.demo.androidjni.MainProvider.(MainProvider.java:15) A: art/runtime/runtime.cc:403] at java.lang.Class.newInstance!(Native method) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.installProvider(ActivityThread.java:5799) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.installContentProviders(ActivityThread.java:5403) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5342) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.-wrap2(ActivityThread.java:-1) A: art/runtime/runtime.cc:403] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528) A: art/runtime/runtime.cc:403] at android.os.Handler.dispatchMessage(Handler.java:102) A: art/runtime/runtime.cc:403] at android.os.Looper.loop(Looper.java:154) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.main(ActivityThread.java:6077) A: art/runtime/runtime.cc:403] at java.lang.reflect.Method.invoke!(Native method) A: art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) A: art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) A: art/runtime/runtime.cc:403] Pending exception org.json.JSONException: Value Attempt of type java.lang.String cannot be converted to JSONObject A: art/runtime/runtime.cc:403] at org.json.JSONException org.json.JSON.typeMismatch(java.lang.Object, java.lang.String) (JSON.java:111) A: art/runtime/runtime.cc:403] at void org.json.JSONObject.(org.json.JSONTokener) (JSONObject.java:160) A: art/runtime/runtime.cc:403] at void org.json.JSONObject.(java.lang.String) (JSONObject.java:173) A: art/runtime/runtime.cc:403] at void us.the.mac.library.demo.androidjni.MainProvider.loadAPIKey() (MainProvider.java:-2) A: art/runtime/runtime.cc:403] at void us.the.mac.library.demo.androidjni.MainProvider.() (MainProvider.java:15) A: art/runtime/runtime.cc:403] at java.lang.Object java.lang.Class.newInstance!() (Class.java:-2) A: art/runtime/runtime.cc:403] at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:5799) A: art/runtime/runtime.cc:403] at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5403) A: art/runtime/runtime.cc:403] at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5342) A: art/runtime/runtime.cc:403] at void android.app.ActivityThread.-wrap2(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) A: art/runtime/runtime.cc:403] at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1528) A: art/runtime/runtime.cc:403] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) A: art/runtime/runtime.cc:403] at void android.os.Looper.loop() (Looper.java:154) A: art/runtime/runtime.cc:403] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077) A: art/runtime/runtime.cc:403] at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) A: art/runtime/runtime.cc:403] at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865) A: art/runtime/runtime.cc:403] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755) A: art/runtime/runtime.cc:403] Dumping all threads without appropriate locks held: thread list lock mutator lock A: art/runtime/runtime.cc:403] All threads: A: art/runtime/runtime.cc:403] DALVIK THREADS (12): A: art/runtime/runtime.cc:403] "main" prio=5 tid=1 Runnable A: art/runtime/runtime.cc:403] | group="" sCount=0 dsCount=0 obj=0x7544a268 self=0xaaa0b400 A: art/runtime/runtime.cc:403] | sysTid=2934 nice=0 cgrp=default sched=0/0 handle=0xaed67534 A: art/runtime/runtime.cc:403] | state=R schedstat=( 0 0 0 ) utm=2 stm=2 core=0 HZ=100 A: art/runtime/runtime.cc:403] | stack=0xbf1ab000-0xbf1ad000 stackSize=8MB A: art/runtime/runtime.cc:403] | held mutexes= "abort lock" "mutator lock"(shared held) A: art/runtime/runtime.cc:403] native: #00 pc 0056d8de /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+238) A: art/runtime/runtime.cc:403] native: #01 pc 00539f6e /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+526) A: art/runtime/runtime.cc:403] native: #02 pc 00536f6b /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+75) A: art/runtime/runtime.cc:403] native: #03 pc 005568bb /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+1115) A: art/runtime/runtime.cc:403] native: #04 pc 0054cb7e /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+590) A: art/runtime/runtime.cc:403] native: #05 pc 0054c706 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEb+310) A: art/runtime/runtime.cc:403] native: #06 pc 00522f98 /system/lib/libart.so (_ZNK3art10AbortState14DumpAllThreadsERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+424) A: art/runtime/runtime.cc:403] native: #07 pc 00522ce6 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEE+1078) A: art/runtime/runtime.cc:403] native: #08 pc 0051327b /system/lib/libart.so (_ZN3art7Runtime5AbortEv+155) A: art/runtime/runtime.cc:403] native: #09 pc 00119572 /system/lib/libart.so (_ZN3art10LogMessageD1Ev+1298) A: art/runtime/runtime.cc:403] native: #10 pc 0038efc5 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+3445) A: art/runtime/runtime.cc:403] native: #11 pc 0038f168 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_Pc+120) A: art/runtime/runtime.cc:403] native: #12 pc 0013d112 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+82) A: art/runtime/runtime.cc:403] native: #13 pc 0013cb49 /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+569) A: art/runtime/runtime.cc:403] native: #14 pc 0013b4eb /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+91) A: art/runtime/runtime.cc:403] native: #15 pc 0013a26e /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+1390) A: art/runtime/runtime.cc:403] native: #16 pc 00127ed6 /system/lib/libart.so (_ZN3art8CheckJNI9FindClassEP7_JNIEnvPKc+982) A: art/runtime/runtime.cc:403] native: #17 pc 00032895 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7_JNIEnv9FindClassEPKc+53) A: art/runtime/runtime.cc:403] native: #18 pc 00045680 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni14JavaClassUtils9findClassEP7_JNIEnvPKcb+240) A: art/runtime/runtime.cc:403] native: #19 pc 00046eaa /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni18JavaExceptionUtils20throwExceptionOfTypeEP7_JNIEnvPKcS5_Pc+122) A: art/runtime/runtime.cc:403] native: #20 pc 00047396 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN7spotify3jni18JavaExceptionUtils20throwExceptionOfTypeEP7_JNIEnvPKcS5_z+86) A: art/runtime/runtime.cc:403] native: #21 pc 0003976b /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (_ZN10JSONObjectC1EP7_JNIEnvSs+299) A: art/runtime/runtime.cc:403] native: #22 pc 0002e2f7 /data/app/us.the.mac.library.demo.androidjni-1/lib/x86/libnative-lib.so (Java_us_the_mac_library_demo_androidjni_MainProvider_loadAPIKey+2151) A: art/runtime/runtime.cc:403] native: #23 pc 0002c046 /data/app/us.the.mac.library.demo.androidjni-1/oat/x86/base.odex (???) A: art/runtime/runtime.cc:403] at us.the.mac.library.demo.androidjni.MainProvider.loadAPIKey(Native method) A: art/runtime/runtime.cc:403] at us.the.mac.library.demo.androidjni.MainProvider.(MainProvider.java:15) A: art/runtime/runtime.cc:403] at java.lang.Class.newInstance!(Native method) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.installProvider(ActivityThread.java:5799) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.installContentProviders(ActivityThread.java:5403) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5342) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.-wrap2(ActivityThread.java:-1) A: art/runtime/runtime.cc:403] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1528) A: art/runtime/runtime.cc:403] at android.os.Handler.dispatchMessage(Handler.java:102) A: art/runtime/runtime.cc:403] at android.os.Looper.loop(Looper.java:154) A: art/runtime/runtime.cc:403] at android.app.ActivityThread.main(ActivityThread.java:6077) A: art/runtime/runtime.cc:403] at java.lang.reflect.Method.invoke!(Native method) A: art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) A: art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "Jit thread pool worker thread 0" prio=5 tid=2 Native (still starting up) A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x0 self=0xae660500 A: art/runtime/runtime.cc:403] | sysTid=2939 nice=9 cgrp=default sched=0/0 handle=0xa9e58920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0xa9d5a000-0xa9d5c000 stackSize=1022KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: futex_wait_queue_me+0xcd/0x113 A: art/runtime/runtime.cc:403] kernel: futex_wait+0xc5/0x197 A: art/runtime/runtime.cc:403] kernel: do_futex+0x9b/0x742 A: art/runtime/runtime.cc:403] kernel: SyS_futex+0xaf/0xf6 A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe422 [vdso] (kernel_vsyscall+14) A: art/runtime/runtime.cc:403] native: #01 pc 0001e228 /system/lib/libc.so (syscall+40) A: art/runtime/runtime.cc:403] native: #02 pc 0011c19e /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+142) A: art/runtime/runtime.cc:403] native: #03 pc 0011c107 /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+39) A: art/runtime/runtime.cc:403] native: #04 pc 00558bc2 /system/lib/libart.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+258) A: art/runtime/runtime.cc:403] native: #05 pc 00557ec5 /system/lib/libart.so (_ZN3art16ThreadPoolWorker3RunEv+117) A: art/runtime/runtime.cc:403] native: #06 pc 0055769a /system/lib/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+106) A: art/runtime/runtime.cc:403] native: #07 pc 00075052 /system/lib/libc.so (_ZL15pthread_startPv+210) A: art/runtime/runtime.cc:403] native: #08 pc 0002026e /system/lib/libc.so (__start_thread+30) A: art/runtime/runtime.cc:403] native: #09 pc 0001e046 /system/lib/libc.so (bionic_clone+70) A: art/runtime/runtime.cc:403] (no managed stack frames) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "Signal Catcher" prio=5 tid=3 WaitingInMainSignalCatcherLoop A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c4a8b0 self=0xa16f0e00 A: art/runtime/runtime.cc:403] | sysTid=2940 nice=0 cgrp=default sched=0/0 handle=0xa9d57920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0xa9c5b000-0xa9c5d000 stackSize=1014KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: do_sigtimedwait+0xd7/0x19f A: art/runtime/runtime.cc:403] kernel: SyS_rt_sigtimedwait+0x6d/0x9c A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe424 [vdso] (kernel_vsyscall+16) A: art/runtime/runtime.cc:403] native: #01 pc 00077fc1 /system/lib/libc.so (__rt_sigtimedwait+33) A: art/runtime/runtime.cc:403] native: #02 pc 000289af /system/lib/libc.so (sigwait+95) A: art/runtime/runtime.cc:403] native: #03 pc 0052974b /system/lib/libart.so (_ZN3art9SignalSet4WaitEv+59) A: art/runtime/runtime.cc:403] native: #04 pc 00529117 /system/lib/libart.so (_ZN3art13SignalCatcher13WaitForSignalEPNS_6ThreadERNS_9SignalSetE+215) A: art/runtime/runtime.cc:403] native: #05 pc 0052727a /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+314) A: art/runtime/runtime.cc:403] native: #06 pc 00075052 /system/lib/libc.so (_ZL15pthread_startPv+210) A: art/runtime/runtime.cc:403] native: #07 pc 0002026e /system/lib/libc.so (start_thread+30) A: art/runtime/runtime.cc:403] native: #08 pc 0001e046 /system/lib/libc.so (__bionic_clone+70) A: art/runtime/runtime.cc:403] (no managed stack frames) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "JDWP" prio=5 tid=4 WaitingInMainDebuggerLoop A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c4a940 self=0xae661900 A: art/runtime/runtime.cc:403] | sysTid=2941 nice=0 cgrp=default sched=0/0 handle=0xa9c58920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0xa9b5c000-0xa9b5e000 stackSize=1014KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: poll_schedule_timeout+0x42/0x8e A: art/runtime/runtime.cc:403] kernel: do_select+0x4a6/0x4f4 A: art/runtime/runtime.cc:403] kernel: core_sys_select+0x16c/0x24c A: art/runtime/runtime.cc:403] kernel: SyS_pselect6+0xff/0x17a A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe424 [vdso] (kernel_vsyscall+16) A: art/runtime/runtime.cc:403] native: #01 pc 00077dcb /system/lib/libc.so (pselect6+43) A: art/runtime/runtime.cc:403] native: #02 pc 000268bd /system/lib/libc.so (select+173) A: art/runtime/runtime.cc:403] native: #03 pc 0067346c /system/lib/libart.so (_ZN3art4JDWP12JdwpAdbState15ProcessIncomingEv+476) A: art/runtime/runtime.cc:403] native: #04 pc 003a7ff1 /system/lib/libart.so (_ZN3art4JDWP9JdwpState3RunEv+593) A: art/runtime/runtime.cc:403] native: #05 pc 003a7470 /system/lib/libart.so (_ZN3art4JDWPL15StartJdwpThreadEPv+48) A: art/runtime/runtime.cc:403] native: #06 pc 00075052 /system/lib/libc.so (_ZL15pthread_startPv+210) A: art/runtime/runtime.cc:403] native: #07 pc 0002026e /system/lib/libc.so (start_thread+30) A: art/runtime/runtime.cc:403] native: #08 pc 0001e046 /system/lib/libc.so (bionic_clone+70) A: art/runtime/runtime.cc:403] (no managed stack frames) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "Binder:2934_1" prio=5 tid=5 Native A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c4aca0 self=0xaaa0b900 A: art/runtime/runtime.cc:403] | sysTid=2946 nice=0 cgrp=default sched=0/0 handle=0x94785920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0x94689000-0x9468b000 stackSize=1014KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: binder_thread_read+0xa4a/0xbf3 A: art/runtime/runtime.cc:403] kernel: binder_ioctl+0xce0/0x1114 A: art/runtime/runtime.cc:403] kernel: do_vfs_ioctl+0x36b/0x418 A: art/runtime/runtime.cc:403] kernel: SyS_ioctl+0x4a/0x6a A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe422 [vdso] (kernel_vsyscall+14) A: art/runtime/runtime.cc:403] native: #01 pc 00077bfc /system/lib/libc.so (ioctl+28) A: art/runtime/runtime.cc:403] native: #02 pc 000226a7 /system/lib/libc.so (ioctl+71) A: art/runtime/runtime.cc:403] native: #03 pc 00047797 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+279) A: art/runtime/runtime.cc:403] native: #04 pc 0004793a /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+42) A: art/runtime/runtime.cc:403] native: #05 pc 000481ff /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+95) A: art/runtime/runtime.cc:403] native: #06 pc 0006ecde /system/lib/libbinder.so (_ZN7android10PoolThread10threadLoopEv+46) A: art/runtime/runtime.cc:403] native: #07 pc 00012085 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+309) A: art/runtime/runtime.cc:403] native: #08 pc 0006e53b /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+111) A: art/runtime/runtime.cc:403] native: #09 pc 00011873 /system/lib/libutils.so (_ZN13thread_datat10trampolineEPKS+259) A: art/runtime/runtime.cc:403] native: #10 pc 00075052 /system/lib/libc.so (_ZL15pthread_startPv+210) A: art/runtime/runtime.cc:403] native: #11 pc 0002026e /system/lib/libc.so (__start_thread+30) A: art/runtime/runtime.cc:403] native: #12 pc 0001e046 /system/lib/libc.so (bionic_clone+70) A: art/runtime/runtime.cc:403] (no managed stack frames) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "HeapTaskDaemon" prio=5 tid=6 Blocked A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c4ab80 self=0xa16f3100 A: art/runtime/runtime.cc:403] | sysTid=2945 nice=0 cgrp=default sched=0/0 handle=0x9488a920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0x94788000-0x9478a000 stackSize=1038KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: futex_wait_queue_me+0xcd/0x113 A: art/runtime/runtime.cc:403] kernel: futex_wait+0xc5/0x197 A: art/runtime/runtime.cc:403] kernel: do_futex+0x9b/0x742 A: art/runtime/runtime.cc:403] kernel: SyS_futex+0xaf/0xf6 A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe422 [vdso] (kernel_vsyscall+14) A: art/runtime/runtime.cc:403] native: #01 pc 0001e228 /system/lib/libc.so (syscall+40) A: art/runtime/runtime.cc:403] native: #02 pc 0011c19e /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+142) A: art/runtime/runtime.cc:403] native: #03 pc 0011c107 /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+39) A: art/runtime/runtime.cc:403] native: #04 pc 002bdf7e /system/lib/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+430) A: art/runtime/runtime.cc:403] native: #05 pc 002be992 /system/lib/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+82) A: art/runtime/runtime.cc:403] native: #06 pc 0044239b /system/lib/libart.so (_ZN3artL22VMRuntime_runHeapTasksEP7_JNIEnvP8_jobject+59) A: art/runtime/runtime.cc:403] native: #07 pc 001cb89c /system/framework/x86/boot-core-libart.oat (Java_dalvik_system_VMRuntime_runHeapTasks+104) A: art/runtime/runtime.cc:403] at dalvik.system.VMRuntime.runHeapTasks(Native method) A: art/runtime/runtime.cc:403] - waiting to lock an unknown object A: art/runtime/runtime.cc:403] at java.lang.Daemons$HeapTaskDaemon.run(Daemons.java:433) A: art/runtime/runtime.cc:403] at java.lang.Thread.run(Thread.java:761) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "FinalizerWatchdogDaemon" prio=5 tid=7 Waiting A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c4aaf0 self=0xa16f2c00 A: art/runtime/runtime.cc:403] | sysTid=2944 nice=0 cgrp=default sched=0/0 handle=0x9498f920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0x9488d000-0x9488f000 stackSize=1038KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: futex_wait_queue_me+0xcd/0x113 A: art/runtime/runtime.cc:403] kernel: futex_wait+0xc5/0x197 A: art/runtime/runtime.cc:403] kernel: do_futex+0x9b/0x742 A: art/runtime/runtime.cc:403] kernel: SyS_futex+0xaf/0xf6 A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe422 [vdso] (kernel_vsyscall+14) A: art/runtime/runtime.cc:403] native: #01 pc 0001e228 /system/lib/libc.so (syscall+40) A: art/runtime/runtime.cc:403] native: #02 pc 0011c19e /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+142) A: art/runtime/runtime.cc:403] native: #03 pc 0011c107 /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+39) A: art/runtime/runtime.cc:403] native: #04 pc 00433199 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+537) A: art/runtime/runtime.cc:403] native: #05 pc 00435773 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+339) A: art/runtime/runtime.cc:403] native: #06 pc 0044d88f /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+95) A: art/runtime/runtime.cc:403] native: #07 pc 000006dc /system/framework/x86/boot.oat (Java_java_lang_Object_wait+104) A: art/runtime/runtime.cc:403] at java.lang.Object.wait!(Native method) A: art/runtime/runtime.cc:403] - waiting on <0x0ad03f6b> (a java.lang.Daemons$FinalizerWatchdogDaemon) A: art/runtime/runtime.cc:403] at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded(Daemons.java:269) A: art/runtime/runtime.cc:403] - locked <0x0ad03f6b> (a java.lang.Daemons$FinalizerWatchdogDaemon) A: art/runtime/runtime.cc:403] at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:249) A: art/runtime/runtime.cc:403] at java.lang.Thread.run(Thread.java:761) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "FinalizerDaemon" prio=5 tid=8 Waiting A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c4aa60 self=0xa16f2700 A: art/runtime/runtime.cc:403] | sysTid=2943 nice=0 cgrp=default sched=0/0 handle=0xa9a54920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0xa9952000-0xa9954000 stackSize=1038KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: futex_wait_queue_me+0xcd/0x113 A: art/runtime/runtime.cc:403] kernel: futex_wait+0xc5/0x197 A: art/runtime/runtime.cc:403] kernel: do_futex+0x9b/0x742 A: art/runtime/runtime.cc:403] kernel: SyS_futex+0xaf/0xf6 A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe422 [vdso] (kernel_vsyscall+14) A: art/runtime/runtime.cc:403] native: #01 pc 0001e228 /system/lib/libc.so (syscall+40) A: art/runtime/runtime.cc:403] native: #02 pc 0011c19e /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+142) A: art/runtime/runtime.cc:403] native: #03 pc 0011c107 /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+39) A: art/runtime/runtime.cc:403] native: #04 pc 00433199 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+537) A: art/runtime/runtime.cc:403] native: #05 pc 00435773 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+339) A: art/runtime/runtime.cc:403] native: #06 pc 0044d8fd /system/lib/libart.so (_ZN3artL13Object_waitJIEP7_JNIEnvP8_jobjectxi+93) A: art/runtime/runtime.cc:403] native: #07 pc 0000083c /system/framework/x86/boot.oat (Java_java_lang_Object_waitJI+136) A: art/runtime/runtime.cc:403] at java.lang.Object.wait!(Native method) A: art/runtime/runtime.cc:403] - waiting on <0x05bfcac8> (a java.lang.Object) A: art/runtime/runtime.cc:403] at java.lang.Object.wait(Object.java:407) A: art/runtime/runtime.cc:403] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188) A: art/runtime/runtime.cc:403] - locked <0x05bfcac8> (a java.lang.Object) A: art/runtime/runtime.cc:403] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209) A: art/runtime/runtime.cc:403] at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:204) A: art/runtime/runtime.cc:403] at java.lang.Thread.run(Thread.java:761) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "ReferenceQueueDaemon" prio=5 tid=9 Waiting A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c4a9d0 self=0xa16f2200 A: art/runtime/runtime.cc:403] | sysTid=2942 nice=0 cgrp=default sched=0/0 handle=0xa9b59920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0xa9a57000-0xa9a59000 stackSize=1038KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: futex_wait_queue_me+0xcd/0x113 A: art/runtime/runtime.cc:403] kernel: futex_wait+0xc5/0x197 A: art/runtime/runtime.cc:403] kernel: do_futex+0x9b/0x742 A: art/runtime/runtime.cc:403] kernel: SyS_futex+0xaf/0xf6 A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe422 [vdso] (kernel_vsyscall+14) A: art/runtime/runtime.cc:403] native: #01 pc 0001e228 /system/lib/libc.so (syscall+40) A: art/runtime/runtime.cc:403] native: #02 pc 0011c19e /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+142) A: art/runtime/runtime.cc:403] native: #03 pc 0011c107 /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+39) A: art/runtime/runtime.cc:403] native: #04 pc 00433199 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+537) A: art/runtime/runtime.cc:403] native: #05 pc 00435773 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+339) A: art/runtime/runtime.cc:403] native: #06 pc 0044d88f /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+95) A: art/runtime/runtime.cc:403] native: #07 pc 000006dc /system/framework/x86/boot.oat (Java_java_lang_Object_wait+104) A: art/runtime/runtime.cc:403] at java.lang.Object.wait!(Native method) A: art/runtime/runtime.cc:403] - waiting on <0x01227761> (a java.lang.Class) A: art/runtime/runtime.cc:403] at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:150) A: art/runtime/runtime.cc:403] - locked <0x01227761> (a java.lang.Class) A: art/runtime/runtime.cc:403] at java.lang.Thread.run(Thread.java:761) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "Profile Saver" prio=5 tid=10 Native A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c681f0 self=0xae662d00 A: art/runtime/runtime.cc:403] | sysTid=2948 nice=0 cgrp=default sched=0/0 handle=0x94158920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100 A: art/runtime/runtime.cc:403] | stack=0x9405c000-0x9405e000 stackSize=1014KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: futex_wait_queue_me+0xcd/0x113 A: art/runtime/runtime.cc:403] kernel: futex_wait+0xc5/0x197 A: art/runtime/runtime.cc:403] kernel: do_futex+0x9b/0x742 A: art/runtime/runtime.cc:403] kernel: SyS_futex+0xaf/0xf6 A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe424 [vdso] (kernel_vsyscall+16) A: art/runtime/runtime.cc:403] native: #01 pc 0001e228 /system/lib/libc.so (syscall+40) A: art/runtime/runtime.cc:403] native: #02 pc 0011c888 /system/lib/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadExi+200) A: art/runtime/runtime.cc:403] native: #03 pc 003c5577 /system/lib/libart.so (_ZN3art12ProfileSaver3RunEv+199) A: art/runtime/runtime.cc:403] native: #04 pc 003c774a /system/lib/libart.so (_ZN3art12ProfileSaver21RunProfileSaverThreadEPv+106) A: art/runtime/runtime.cc:403] native: #05 pc 00075052 /system/lib/libc.so (_ZL15__pthread_startPv+210) A: art/runtime/runtime.cc:403] native: #06 pc 0002026e /system/lib/libc.so (start_thread+30) A: art/runtime/runtime.cc:403] native: #07 pc 0001e046 /system/lib/libc.so (bionic_clone+70) A: art/runtime/runtime.cc:403] (no managed stack frames) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "Binder:2934_2" prio=5 tid=11 Native A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c68790 self=0xa0437000 A: art/runtime/runtime.cc:403] | sysTid=2947 nice=0 cgrp=default sched=0/0 handle=0x94686920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100 A: art/runtime/runtime.cc:403] | stack=0x9458a000-0x9458c000 stackSize=1014KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: binder_thread_read+0xa4a/0xbf3 A: art/runtime/runtime.cc:403] kernel: binder_ioctl+0xce0/0x1114 A: art/runtime/runtime.cc:403] kernel: do_vfs_ioctl+0x36b/0x418 A: art/runtime/runtime.cc:403] kernel: SyS_ioctl+0x4a/0x6a A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe422 [vdso] (kernel_vsyscall+14) A: art/runtime/runtime.cc:403] native: #01 pc 00077bfc /system/lib/libc.so (ioctl+28) A: art/runtime/runtime.cc:403] native: #02 pc 000226a7 /system/lib/libc.so (ioctl+71) A: art/runtime/runtime.cc:403] native: #03 pc 00047797 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+279) A: art/runtime/runtime.cc:403] native: #04 pc 0004793a /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+42) A: art/runtime/runtime.cc:403] native: #05 pc 000481ff /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+95) A: art/runtime/runtime.cc:403] native: #06 pc 0006ecde /system/lib/libbinder.so (_ZN7android10PoolThread10threadLoopEv+46) A: art/runtime/runtime.cc:403] native: #07 pc 00012085 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+309) A: art/runtime/runtime.cc:403] native: #08 pc 0006e53b /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+111) A: art/runtime/runtime.cc:403] native: #09 pc 00011873 /system/lib/libutils.so (_ZN13thread_datat10trampolineEPKS+259) A: art/runtime/runtime.cc:403] native: #10 pc 00075052 /system/lib/libc.so (_ZL15__pthread_startPv+210) A: art/runtime/runtime.cc:403] native: #11 pc 0002026e /system/lib/libc.so (start_thread+30) A: art/runtime/runtime.cc:403] native: #12 pc 0001e046 /system/lib/libc.so (__bionic_clone+70) A: art/runtime/runtime.cc:403] (no managed stack frames) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403] "AsyncTask #1" prio=5 tid=12 TimedWaiting A: art/runtime/runtime.cc:403] | group="" sCount=1 dsCount=0 obj=0x12c68940 self=0xa16f3b00 A: art/runtime/runtime.cc:403] | sysTid=2952 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0x93f1e920 A: art/runtime/runtime.cc:403] | state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100 A: art/runtime/runtime.cc:403] | stack=0x93e1c000-0x93e1e000 stackSize=1038KB A: art/runtime/runtime.cc:403] | held mutexes= A: art/runtime/runtime.cc:403] kernel: futex_wait_queue_me+0xcd/0x113 A: art/runtime/runtime.cc:403] kernel: futex_wait+0xc5/0x197 A: art/runtime/runtime.cc:403] kernel: do_futex+0x9b/0x742 A: art/runtime/runtime.cc:403] kernel: SyS_futex+0xaf/0xf6 A: art/runtime/runtime.cc:403] kernel: sysenter_do_call+0x12/0x22 A: art/runtime/runtime.cc:403] native: #00 pc ffffe424 [vdso] (kernel_vsyscall+16) A: art/runtime/runtime.cc:403] native: #01 pc 0001e228 /system/lib/libc.so (syscall+40) A: art/runtime/runtime.cc:403] native: #02 pc 0011c888 /system/lib/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadExi+200) A: art/runtime/runtime.cc:403] native: #03 pc 004331bc /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+572) A: art/runtime/runtime.cc:403] native: #04 pc 00435773 /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+339) A: art/runtime/runtime.cc:403] native: #05 pc 0044d8fd /system/lib/libart.so (_ZN3artL13Object_waitJIEP7_JNIEnvP8_jobjectxi+93) A: art/runtime/runtime.cc:403] native: #06 pc 0000083c /system/framework/x86/boot.oat (Java_java_lang_Object_waitJI+136) A: art/runtime/runtime.cc:403] at java.lang.Object.wait!(Native method) A: art/runtime/runtime.cc:403] - waiting on <0x02129286> (a java.lang.Object) A: art/runtime/runtime.cc:403] at java.lang.Thread.parkFor$(Thread.java:2127) A: art/runtime/runtime.cc:403] - locked <0x02129286> (a java.lang.Object) A: art/runtime/runtime.cc:403] at sun.misc.Unsafe.park(Unsafe.java:325) A: art/runtime/runtime.cc:403] at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:201) A: art/runtime/runtime.cc:403] at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2077) A: art/runtime/runtime.cc:403] at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:438) A: art/runtime/runtime.cc:403] at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1057) A: art/runtime/runtime.cc:403] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1118) A: art/runtime/runtime.cc:403] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) A: art/runtime/runtime.cc:403] at java.lang.Thread.run(Thread.java:761) A: art/runtime/runtime.cc:403] A: art/runtime/runtime.cc:403]

--------- beginning of crash A: Fatal signal 6 (SIGABRT), code -6 in tid 2934 (demo.androidjni)

[ 10-23 13:21:24.035 1177: 1177 W/ ] debuggerd: handling request: pid=2934 uid=10070 gid=10070 tid=2934 `

cdm2012 commented 7 years ago

curl -H "Content-Type: application/json" -X POST -d '{"foo":"bar"}' http://httpbin.org/post

{
  "args": {}, 
  "data": "{\"foo\":\"bar\"}", 
  "files": {}, 
  "form": {}, 
  "headers": {
    "Accept": "*/*", 
    "Connection": "close", 
    "Content-Length": "13", 
    "Content-Type": "application/json", 
    "Host": "httpbin.org", 
    "User-Agent": "curl/7.43.0"
  }, 
  "json": {
    "foo": "bar"
  }, 
  "origin": "66.56.7.13", 
  "url": "http://httpbin.org/post"
}
cdm2012 commented 6 years ago

Solved in commit 2ce560562158c3669dd8622f1cbccd45b6d7f8eb