• Android JNI, .so library 调试命令


    /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

  • 相关阅读:
    JVM系列六(自定义插入式注解器).
    JVM系列五(Javac 字节码编译器).
    2019 — 求不得,放不下
    Mybatis 条件判断单双引号解析问题
    JVM系列四(对象分配策略).
    JVM系列三(垃圾收集器).
    Spring MVC -- Spring Tool Suite和Maven(安装Tomcat、JDK)
    Spring MVC -- 单元测试和集成测试
    Spring MVC -- 下载文件
    Spring MVC -- 上传文件
  • 原文地址:https://www.cnblogs.com/adamli/p/3179624.html
Copyright © 2020-2023  润新知