Advertisement
rowntreerob

jni exception log excerpt

Jan 23rd, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. cpp interface for throwing exceptions back thru JNI to java/android layer...
  2.  
  3. jint
  4. Java_fm_audioboo_jni_FLACStreamEncoder_write(JNIEnv * env, jobject obj,
  5. jobject buffer, jint bufsize)
  6. {
  7. FLACStreamEncoder * encoder = get_encoder(env, obj);
  8.  
  9. if (NULL == encoder) {
  10. aj::throwByName(env, IllegalArgumentException_classname, //aj is namespace
  11. "Called without a valid encoder instance!");
  12. return 0;
  13. }
  14.  
  15. /**
  16. * Throws the given exception/message
  17. **/
  18. void throwByName(JNIEnv * env, const char * name, const char * msg)
  19. {
  20. jclass cls = env->FindClass(name);
  21.  
  22. // If cls is NULL, an exception has already been thrown
  23. if (NULL != cls) {
  24. env->ThrowNew(cls, msg);
  25. // Ignore return value of ThrowNew... all we could reasonably do is try and
  26. // throw another exception, after all.
  27. }
  28.  
  29. env->DeleteLocalRef(cls);
  30. }
  31.  
  32. sample log on sig 11...
  33.  
  34.  
  35. F/libc ( 2660): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 2837 (Thread-1846)
  36. I/DEBUG ( 95): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  37. I/DEBUG ( 95): Build fingerprint: 'samsung/espressowifiue/espressowifi:4.1.1/JRO03C/P3113UECLK7:user/release-keys'
  38. I/DEBUG ( 95): pid: 2660, tid: 2837, name: Thread-1846 >>> com.borneo.media.stories <<<
  39. I/DEBUG ( 95): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
  40. I/DEBUG ( 95): r0 41b7bb90 r1 000001da r2 1da00001 r3 00000001
  41. I/DEBUG ( 95): r4 5a337408 r5 00000000 r6 1da00001 r7 00000000
  42. I/DEBUG ( 95): r8 1da00001 r9 5e16ff6c sl 5e167400 fp 5e7a7c6c
  43. I/DEBUG ( 95): ip 00000000 sp 5e7a7c10 lr 407aeeef pc 407b0100 cpsr 28000030
  44. I/DEBUG ( 95): d0 616c63206e692027 d1 273d656d616e2072
  45. I/DEBUG ( 95): d2 20322e3120434165 d3 373139303730303d
  46. I/DEBUG ( 95): d4 3bc3198a2e000000 d5 3ba3198a2e000000
  47. I/DEBUG ( 95): d6 0000000000000000 d7 3ff0000000000000
  48. I/DEBUG ( 95): d8 0000000000000000 d9 4354000000000000
  49. I/DEBUG ( 95): d10 0000000042600000 d11 0000000000000000
  50. I/DEBUG ( 95): d12 0000000000000000 d13 0000000000000000
  51. I/DEBUG ( 95): d14 0000000000000000 d15 0000000000000000
  52. I/DEBUG ( 95): d16 3ff0000000000000 d17 3ff0000000000000
  53. I/DEBUG ( 95): d18 b96377ce858a5d48 d19 3929f5135cb87c55
  54. I/DEBUG ( 95): d20 0000000000000000 d21 397377ce858a5d48
  55. I/DEBUG ( 95): d22 3fa555555555554c d23 bcb1a62633145c07
  56. I/DEBUG ( 95): d24 3f50000000000000 d25 0000000000000000
  57. I/DEBUG ( 95): d26 0000000000000000 d27 c024000000000000
  58. I/DEBUG ( 95): d28 0000000000000000 d29 3ff0000000000000
  59. I/DEBUG ( 95): d30 3ff0000000000000 d31 3ff0000000000000
  60. I/DEBUG ( 95): scr 80000013
  61. I/DEBUG ( 95):
  62. I/DEBUG ( 95): backtrace:
  63. I/DEBUG ( 95): #00 pc 0004b100 /system/lib/libdvm.so
  64. I/DEBUG ( 95): #01 pc 00007061 /data/data/com.borneo.media.stories/lib/libaudioboo-native.so
  65. I/DEBUG ( 95): #02 pc 0001deb0 /system/lib/libdvm.so (dvmPlatformInvoke+112)
  66. I/DEBUG ( 95): #03 pc 0004d103 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
  67. I/DEBUG ( 95): #04 pc 0004f21f /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+174)
  68. I/DEBUG ( 95): #05 pc 000272e0 /system/lib/libdvm.so
  69. I/DEBUG ( 95): #06 pc 0002bbe8 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
  70. I/DEBUG ( 95): #07 pc 0005f871 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
  71. I/DEBUG ( 95): #08 pc 0005f89b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
  72. I/DEBUG ( 95): #09 pc 00054453 /system/lib/libdvm.so
  73. I/DEBUG ( 95): #10 pc 00012d20 /system/lib/libc.so (__thread_entry+48)
  74. I/DEBUG ( 95): #11 pc 00012478 /system/lib/libc.so (pthread_create+172)
  75. I/DEBUG ( 95):
  76. I/DEBUG ( 95): stack:
  77. I/DEBUG ( 95): 5e7a7bd0 41ef8820 /dev/ashmem/dalvik-heap (deleted)
  78. I/DEBUG ( 95): 5e7a7bd4 4004beb5 /system/lib/libc.so (free+12)
  79. I/DEBUG ( 95): 5e7a7bd8 00001000
  80. I/DEBUG ( 95): 5e7a7bdc 35fc5ce2
  81. I/DEBUG ( 95): 5e7a7be0 00000000
  82. I/DEBUG ( 95): 5e7a7be4 5e4e6b72 /data/data/com.borneo.media.stories/lib/libaudioboo-native.so
  83. I/DEBUG ( 95): 5e7a7be8 5e7a7c14
  84. I/DEBUG ( 95): 5e7a7bec 00000000
  85. I/DEBUG ( 95): 5e7a7bf0 1da00001
  86. I/DEBUG ( 95): 5e7a7bf4 5a337408
  87. I/DEBUG ( 95): 5e7a7bf8 00000000
  88. I/DEBUG ( 95): 5e7a7bfc 407aeeef /system/lib/libdvm.so (dvmDecodeIndirectRef(Thread*, _jobject*)+34)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement