05-25 03:02:28.166: I/DEBUG(131): Build fingerprint: 'SEMC/MT11i_1254-8478/MT11i:2.3.4/4.0.2.A.0.42/1f_v3w:user/release-keys'
05-25 03:02:28.166: I/DEBUG(131): pid: 23962, tid: 23970 >>> xx.xx <<<
05-25 03:02:28.166: I/DEBUG(131): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
05-25 03:02:28.166: I/DEBUG(131): r0 fffffe84 r1 deadd00d r2 00000026 r3 00000000
05-25 03:02:28.166: I/DEBUG(131): r4 6ca9f600 r5 0082e608 r6 6ca9f600 r7 6ca86a13
05-25 03:02:28.166: I/DEBUG(131): r8 00000000 r9 00000000 10 41b19e18 fp 302d5758
05-25 03:02:28.166: I/DEBUG(131): ip 6ca9f70c sp 302d5258 lr 6fd19209 pc 6ca402c8 cpsr 20000030
05-25 03:02:28.166: I/DEBUG(131): d0 643a64696f72646e d1 6472656767756265
05-25 03:02:28.166: I/DEBUG(131): d2 6874654d24746967 d3 677241646e41640a
05-25 03:02:28.166: I/DEBUG(131): d4 7373656d223d7261 d5 3c3e226f74656761
05-25 03:02:28.166: I/DEBUG(131): d6 30313e65756c6176 d7 7840313430303030
05-25 03:02:28.166: I/DEBUG(131): d8 00000000437c0000 d9 0000000000000000
05-25 03:02:28.166: I/DEBUG(131): d10 0000000000000000 d11 0000000000000000
05-25 03:02:28.166: I/DEBUG(131): d12 0000000000000000 d13 0000000000000000
05-25 03:02:28.166: I/DEBUG(131): d14 0000000000000000 d15 0000000000000000
05-25 03:02:28.166: I/DEBUG(131): d16 0000000000000000 d17 3ff0000000000000
05-25 03:02:28.166: I/DEBUG(131): d18 4028000000000000 d19 3ff0000000000000
05-25 03:02:28.166: I/DEBUG(131): d20 3ff0000000000000 d21 4197d78400000000
05-25 03:02:28.166: I/DEBUG(131): d22 0000000000000000 d23 0000000000000000
05-25 03:02:28.166: I/DEBUG(131): d24 0000000000000000 d25 3ff0000000000000
05-25 03:02:28.166: I/DEBUG(131): d26 0000000000000000 d27 3ff2e8ba20000000
05-25 03:02:28.166: I/DEBUG(131): d28 0100010001000100 d29 3ff0000000000000
05-25 03:02:28.166: I/DEBUG(131): d30 0000000000000000 d31 3ff0000000000000
05-25 03:02:28.166: I/DEBUG(131): scr 20000012
05-25 03:02:28.186: I/DEBUG(131): #00 pc 000402c8 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #01 pc 0006565c /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #02 pc 000658fe /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #03 pc 00065916 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #04 pc 0003f9fc /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #05 pc 0003fa58 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #06 pc 000634d2 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #07 pc 0006537a /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #08 pc 00046a04 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #09 pc 0003a594 /data/data//lib/libxxx.so
05-25 03:02:28.186: I/DEBUG(131): code around pc:
05-25 03:02:28.186: I/DEBUG(131): 6ca402a8 447a4479 f7d14c0b 2000e982 ea86f7d1
05-25 03:02:28.186: I/DEBUG(131): 6ca402b8 447c4809 6bdb5823 4798b103 22264902
05-25 03:02:28.186: I/DEBUG(131): 6ca402c8 f7d1700a bf00eaee deadd00d 00043947
05-25 03:02:28.186: I/DEBUG(131): 6ca402d8 00045505 0005f342 fffffe84 4b09b40e
05-25 03:02:28.186: I/DEBUG(131): 6ca402e8 4c09b517 aa05447b f852591b 6b5b1b04
05-25 03:02:28.186: I/DEBUG(131): code around lr:
05-25 03:02:28.186: I/DEBUG(131): 6fd191e8 4a0e4b0d e92d447b 589c41f0 26004680
05-25 03:02:28.186: I/DEBUG(131): 6fd191f8 686768a5 f9b5e006 b113300c 47c04628
05-25 03:02:28.186: I/DEBUG(131): 6fd19208 35544306 37fff117 6824d5f5 d1ef2c00
05-25 03:02:28.186: I/DEBUG(131): 6fd19218 e8bd4630 bf0081f0 00028334 ffffff88
05-25 03:02:28.186: I/DEBUG(131): 6fd19228 b086b570 f602fb01 9004460c a804a901
05-25 03:02:28.186: I/DEBUG(131): stack:
05-25 03:02:28.186: I/DEBUG(131): 302d5218 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d521c 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d5220 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d5224 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d5228 6fd4272c
05-25 03:02:28.186: I/DEBUG(131): 302d522c 6fd426d8
05-25 03:02:28.186: I/DEBUG(131): 302d5230 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d5234 6fd19209 /system/lib/libc.so
05-25 03:02:28.186: I/DEBUG(131): 302d5238 0005f342
05-25 03:02:28.186: I/DEBUG(131): 302d523c 0082e608
05-25 03:02:28.186: I/DEBUG(131): 302d5240 6ca9f600
05-25 03:02:28.186: I/DEBUG(131): 302d5244 6ca86a13 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): 302d5248 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d524c 6fd18301 /system/lib/libc.so
05-25 03:02:28.186: I/DEBUG(131): 302d5250 df002777
05-25 03:02:28.186: I/DEBUG(131): 302d5254 e3a070ad
05-25 03:02:28.186: I/DEBUG(131): #00 302d5258 00a4bbd0
05-25 03:02:28.186: I/DEBUG(131): 302d525c 6ca65661 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): #01 302d5260 2d3cfd7d
05-25 03:02:28.186: I/DEBUG(131): 302d5264 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d5268 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d526c 6caa4d38
05-25 03:02:28.186: I/DEBUG(131): 302d5270 00a4bbd0
05-25 03:02:28.186: I/DEBUG(131): 302d5274 6ca86a13 /system/lib/libdvm.so
05-25 03:02:28.186: I/DEBUG(131): 302d5278 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d527c 00000000
05-25 03:02:28.186: I/DEBUG(131): 302d5280 0038104c
05-25 03:02:28.186: I/DEBUG(131): 302d5284 302d5354
05-25 03:02:28.186: I/DEBUG(131): 302d5288 41b19e18
05-25 03:02:28.186: I/DEBUG(131): 302d528c 6ca65903 /system/lib/libdvm.so
05-25 03:02:28.576: I/BootReceiver(274): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
如果出现上面的错误,说明调用JNI中的某个方法出错了,但具体那个方法很难定位!
首先要知道是那个so出错,可以看上面的stack错误,这里发现 libxxx.so是我自己写的so;
可以利用 /arm-linux-androideabi-addr2line -f -e libxxx.so 0003a594
// /usr/local/android-ndk-r7-crystax-1/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-addr2line -f -e libxxx.so 0003a594