Android JNI, .so library 调试命令

一个人想着一个人 提交于 2020-01-09 04:15:49

/data/tombstones/tombstone_XX

============Log info=============

01-01 23:59:09.196: I/DEBUG(91): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
01-01 23:59:09.196: I/DEBUG(91):  r0 00000000  r1 00f92310  r2 00000000  r3 00000000
01-01 23:59:09.196: I/DEBUG(91):  r4 deadd00d  r5 40aadc78  r6 0000020c  r7 5287794c
01-01 23:59:09.196: I/DEBUG(91):  r8 4bf7b940  r9 4bf7be50  10 0106c080  fp 01132bc0
01-01 23:59:09.196: I/DEBUG(91):  ip 00000000  sp 528776e0  lr 40a45f8f  pc 40a45f8e  cpsr 60000030
01-01 23:59:09.326: I/DEBUG(91):          #00  pc 00050f8e  /system/lib/libdvm.so (dvmAbort)
01-01 23:59:09.326: I/DEBUG(91):          #01  pc 00055bd4  /system/lib/libdvm.so (_Z20dvmDecodeIndirectRefP6ThreadP8_jobject)
01-01 23:59:09.327: I/DEBUG(91):          #02  pc 000589f8  /system/lib/libdvm.so
01-01 23:59:09.329: I/DEBUG(91):          #03  pc 0004b44a  /system/lib/libchromium_net.so
01-01 23:59:09.330: I/DEBUG(91):          #04  pc 0004b4aa  /system/lib/libchromium_net.so
01-01 23:59:09.332: I/DEBUG(91):          #05  pc 0012f490  /system/lib/libchromium_net.so
01-01 23:59:09.332: I/DEBUG(91):          #06  pc 0012df42  /system/lib/libchromium_net.so
01-01 23:59:09.333: I/DEBUG(91):          #07  pc 0012e234  /system/lib/libchromium_net.so
01-01 23:59:09.334: I/DEBUG(91):          #08  pc 001394fc  /system/lib/libchromium_net.so (_ZN15AutofillProfile7SetInfoE10_FieldTypeRKSbItN4base20string16_char_traitsESaItEE)
01-01 23:59:09.336: I/DEBUG(91):          #09  pc 0029b794  /system/lib/liblewebcore.so
01-01 23:59:09.337: I/DEBUG(91):          #10  pc 0029b8ec  /system/lib/liblewebcore.so
01-01 23:59:09.338: I/DEBUG(91):          #11  pc 0029c37a  /system/lib/liblewebcore.so
01-01 23:59:09.340: I/DEBUG(91):          #12  pc 0026abc8  /system/lib/liblewebcore.so
01-01 23:59:09.341: I/DEBUG(91):          #13  pc 0027acca  /system/lib/liblewebcore.so
01-01 23:59:09.342: I/DEBUG(91):          #14  pc 0001ed30  /system/lib/libdvm.so (dvmPlatformInvoke)
01-01 23:59:09.344: I/DEBUG(91):          #15  pc 00059536  /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
01-01 23:59:09.345: I/DEBUG(91):          #16  pc 00030b4c  /system/lib/libdvm.so
01-01 23:59:09.346: I/DEBUG(91):          #17  pc 00034430  /system/lib/libdvm.so (_Z12dvmInterpretP6ThreadPK6MethodP6JValue)
01-01 23:59:09.347: I/DEBUG(91):          #18  pc 0006d10c  /system/lib/libdvm.so (_Z14dvmCallMethodVP6ThreadPK6MethodP6ObjectbP6JValueSt9__va_list)
01-01 23:59:09.349: I/DEBUG(91):          #19  pc 0006d130  /system/lib/libdvm.so (_Z13dvmCallMethodP6ThreadPK6MethodP6ObjectP6JValuez)
01-01 23:59:09.350: I/DEBUG(91):          #20  pc 0006021a  /system/lib/libdvm.so
01-01 23:59:09.351: I/DEBUG(91):          #21  pc 00013114  /system/lib/libc.so (__thread_entry)
01-01 23:59:09.352: I/DEBUG(91):          #22  pc 00012c64  /system/lib/libc.so (pthread_create)

============Log info==============

 

===========Command=============

./prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-addr2line -C -f -e ./out/target/product/a2_3g_data/symbols/system/lib/liblewebcore.so 0x0004b44a
================================

BFD: Dwarf Error: mangled line number section.
WebCore::MediaPlayerPrivate::setVisible(bool)
diy-fp.cc:0

 

----高通平台还有一种方法调试native crash

$   . build/envsetup.sh

$  lunch sabresd_6dp-eng

$ development/scripts/stack

<< Copy the logcat crash log from : I/DEBUG  ( 2253): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

to the end line of this crash

>> 

<< CTRL-D To send a EOF >>>

 

You will got this output:

详情见:http://blog.csdn.net/jianzhengzhouzjz/article/details/7766656

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!