android 堆栈 分析,Android应用开发之Native堆栈解析addr2line

本文将带你了解Android应用开发之Native堆栈解析addr2line,希望本文对大家学Android有所帮助

Native堆栈解析addr2line

命令:

aarch64-linux-android-addr2line.exe –f –C –e libAddress address

举例如下:

F:\tools\GAT_exe_v3.1552.5\GATv3.1552.5\gat-win32-x86_64-3\prebuilt\android-sdk\bin>aarch64-linux-android-addr2line.exe

-f -C -e   F:\Share\home\system4\MTK_5.1\CPY803_8_Volte_5.1_Int\mydroid\out\target\product\CPY803_8\symbols\system\lib64\l

ibsurfaceflinger.so 000000000001e98c

android::DisplayDevice::swapBuffers(android::HWComposer&) const    /home/system4/MTK_5.1/CPY803_8_Volte_5.1_Int/mydroid/frameworks/native/services/surfaceflinger/DisplayDevice.cpp:285

F:\tools\GAT_exe_v3.1552.5\GATv3.1552.5\gat-win32-x86_64-3\prebuilt\android-sdk\bin>aarch64-linux-android-addr2line.exe

-f -C -e   F:\Share\home\system4\MTK_5.1\CPY803_8_Volte_5.1_Int\mydroid\out\target\product\CPY803_8\symbols\system\lib64\l

ibcutils.so 000000000000d5a4

__android_log_assert/home/system4/MTK_5.1/MTK_5.1_Volte_Dev/mydroid/system/core/liblog/logd_write_kern.c:438

Build fingerprint: 'Coolpad/Y803-8/Y803-8:5.1/LMY47D/5.1.033.P2.160602.Y803_8-LC:user/release-keys'

Revision: '0'

ABI: 'arm64'

pid: 10476, tid: 10476, name: surfaceflinger  >>>   /system/bin/surfaceflinger <<<

signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x3e8000028ec

Abort message: 'eglSwapBuffers(0x1, 0x7f956a0040) failed with   0x00003003'

ALOGE("eglSwapBuffers(%p, %p) failed with 0x%08x", mDisplay,   mSurface, error);

backtrace:

#00 pc 000000000000d5a4  /system/lib64/libcutils.so   (__android_log_assert+236)

#01 pc 000000000001e98c  /system/lib64/libsurfaceflinger.so

#02 pc 0000000000030304    /system/lib64/libsurfaceflinger.so

#03 pc 000000000002eb14    /system/lib64/libsurfaceflinger.so

#04 pc 000000000002d12c  /system/lib64/libsurfaceflinger.so

#05 pc 000000000002cde8    /system/lib64/libsurfaceflinger.so

#06 pc 000000000001b600  /system/lib64/libutils.so   (_ZN7android6Looper9pollInnerEi+300)

#07 pc 000000000001b91c  /system/lib64/libutils.so   (_ZN7android6Looper8pollOnceEiPiS1_PPv+76)

#08 pc 00000000000291c0    /system/lib64/libsurfaceflinger.so

#09 pc 000000000002c868    /system/lib64/libsurfaceflinger.so   (_ZN7android14SurfaceFlinger3runEv+20)

#10 pc 0000000000000f5c    /system/bin/surfaceflinger

#11 pc 00000000000196cc  /system/lib64/libc.so   (__libc_init+96)

#12 pc 0000000000001048  /system/bin/surfaceflinger

本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注职坐标移动开发之Android频道!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值