文章目录
- 一、问题所在
- 二、addr2line使用
-
- 一、找到对应的工具目录
开发板为rockchip的3566,版本android11。
一、问题所在 这两天调试开发板出现了一个问题。就是这个安卓的墓碑机制,他会有一些类似的报错,就是一大段DEBUG的错误
[12.289543] DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[12.290103] DEBUG: Build fingerprint: 'xxxxxxxxx/1.0/eng.xxxxxxx.20211125.143115:userdebug/release-keys'
[12.290499] DEBUG: Revision: '0'
[12.290741] DEBUG: ABI: 'arm64'
[12.291302] DEBUG: Timestamp: 1970-01-01 00:00:12+0000
[12.291721] DEBUG: pid: 148, tid: 148, name: surfaceflinger>>> /system/bin/surfaceflinger <<<
[12.291917] DEBUG: uid: 1000
[12.292256] DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[12.292599] DEBUG: Abort message: 'eglQueryStringImplementationANDROID(EGL_VERSION) failed'
[12.292855] DEBUG:x00000000000000000x10000000000000094x20000000000000006x30000007fc97017f0
[12.293088] DEBUG:x40000000029aaaaf1x50000000029aaaaf1x60000000029aaaaf1x700000073e6cb3000
[12.293460] DEBUG:x800000000000000f0x900000073e46bf6d8x10 ffffff80ffffffdfx11 0000000000000001
[12.293726] DEBUG:x12 0000007fc97017b0x13 0000000000000038x14 ff00000000000000x15 ffffffffffffffff
[12.293986] DEBUG:x16 00000073e478f948x17 00000073e476ea60x18 00000073e6692000x19 0000000000000094
[12.294233] DEBUG:x20 0000000000000094x21 00000000ffffffffx22 0000000300000001x23 0000000000000001
[12.294479] DEBUG:x24 0000000000000003x25 0000000000000000x26 0000000000000000x27 0000000000000000
[12.294735] DEBUG:x28 0000000000000000x29 0000007fc9701870
[12.295071] DEBUG:lr00000073e4722888sp0000007fc97017d0pc00000073e47228b8pst 0000000000001000
[12.353908] DEBUG:
[12.354009] DEBUG: backtrace:
[12.354354] DEBUG:#00 pc 00000000000898b8/apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: d33c7ee9ce128fbcab34ed8529cd06f3)
[12.354875] DEBUG:#01 pc 00000000000062e4/system/lib64/liblog.so (__android_log_default_aborter+12) (BuildId: 796c64bd8c172c74bbe9d13be7fdb14b)
[12.355207] DEBUG:#02 pc 0000000000006e58/system/lib64/liblog.so (__android_log_assert+336) (BuildId: 796c64bd8c172c74bbe9d13be7fdb14b)
[12.355684] DEBUG:#03 pc 000000000018a498/system/lib64/libsurfaceflinger.so (android::renderengine::gl::GLESRenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+4496) (BuildId: 2e50c52a66754342019ef33b8c2aa865)
[12.356158] DEBUG:#04 pc 000000000018914c/system/lib64/libsurfaceflinger.so (android::renderengine::RenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+168) (BuildId: 2e50c52a66754342019ef33b8c2aa865)
[12.356639] DEBUG:#05 pc 0000000000109a68/system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::init()+184) (BuildId: 2e50c52a66754342019ef33b8c2aa865)
[12.357011] DEBUG:#06 pc 00000000000021b8/system/bin/surfaceflinger (main+368) (BuildId: a89eb6c00bbdc77278f0b6b1fee2e129)
[12.357349] DEBUG:#07 pc 0000000000084e58/apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: d33c7ee9ce128fbcab34ed8529cd06f3)
hierarchy support. Nested cgroups may change behavior in the future.
[8.762858] cgroup: "memory" requires setting use_hierarchy to 1 on the root
[8.969083] ueventd: ueventd started!
[8.977701] selinux: SELinux: Loaded file_contexts
[8.977786] selinux:
[8.978516] ueventd: Parsing file /system/etc/ueventd.rc...
[8.980727] ueventd: Parsing file /vendor/ueventd.rc...
[8.983512] ueventd: /vendor/ueventd.rc: 60: invalid gid 'net_bt_stack'
[8.983744] ueventd: /vendor/ueventd.rc: 61: invalid gid 'net_bt_stack'
[8.983952] ueventd: /vendor/ueventd.rc: 62: invalid gid 'net_bt_stack'
[8.984157] ueventd: /vendor/ueventd.rc: 64: invalid gid 'net_bt_stack'
[8.984726] ueventd: /vendor/ueventd.rc: 118: invalid gid 'trace'
[9.020004] apexd: This device does not support updatable APEX. Exiting
[9.532057] bifrost_kbase: disagrees about version of symbol module_layout
[9.597749] rknpu: disagrees about version of symbol module_layout
[9.655403] rknpu: disagrees about version of symbol module_layout
[10.580265] Registered swp emulation handler
[10.711775] EXT4-fs (mmcblk0p10): Ignoring removed nomblk_io_submit option
[10.779042] EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit
[10.802954] logd.auditd: start
[10.803129] logd.klogd: 10658326406
[10.862832] e2fsck: e2fsck 1.45.4 (23-Sep-2019)
[10.872998] e2fsck: /dev/block/by-name/cache: clean, 37/98304 files, 7318/98304 blocks
[10.888973] EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: noauto_da_alloc,discard
[11.387228] vdc: Waited 0ms for vold
[11.485048] fsck.f2fs: Info: Fix the reported corruption.
[11.487912] fsck.f2fs: \x09Info: No support kernel version!
[11.488266] fsck.f2fs: Info: Segments per section = 1
[11.488337] fsck.f2fs: Info: Sections per zone = 1
[11.488388] fsck.f2fs: Info: sector size = 512
[11.488573] fsck.f2fs: Info: total sectors = 23467999 (11458 MB)
[11.490541] fsck.f2fs: Info: MKFS version
[11.490681] fsck.f2fs:"4.19.172 #1 SMP PREEMPT Thu Nov 25 09:01:57 CST 2021"
[11.508760] F2FS-fs (mmcblk0p13): Using encoding defined by superblock: utf8-12.1.0 with flags 0x0
[11.553683] F2FS-fs (mmcblk0p13): Found nat_bits in checkpoint
[11.797641] F2FS-fs (mmcblk0p13): Mounted with checkpoint version = 7fef911b
[11.983901] vdc: Waited 0ms for vold
[12.046083] fscrypt: AES-256-CTS-CBC using implementation "cts(cbc-aes-ce)"
[12.076168] fscrypt: AES-256-XTS using implementation "xts-aes-ce"
[12.137376] apexd: This device does not support updatable APEX. Exiting
[12.137872] apexd: Marking APEXd as activated
[12.289543] DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[12.290103] DEBUG: Build fingerprint: 'rockchip/rk66_qls/rk66_qls:11/1.0/eng.xxxx.20211125.143115:userdebug/release-keys'
[12.290499] DEBUG: Revision: '0'
[12.290741] DEBUG: ABI: 'arm64'
[12.291302] DEBUG: Timestamp: 1970-01-01 00:00:12+0000
[12.291721] DEBUG: pid: 148, tid: 148, name: surfaceflinger>>> /system/bin/surfaceflinger <<<
[12.291917] DEBUG: uid: 1000
[12.292256] DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[12.292599] DEBUG: Abort message: 'eglQueryStringImplementationANDROID(EGL_VERSION) failed'
[12.292855] DEBUG:x00000000000000000x10000000000000094x20000000000000006x30000007fc97017f0
[12.293088] DEBUG:x40000000029aaaaf1x50000000029aaaaf1x60000000029aaaaf1x700000073e6cb3000
[12.293460] DEBUG:x800000000000000f0x900000073e46bf6d8x10 ffffff80ffffffdfx11 0000000000000001
[12.293726] DEBUG:x12 0000007fc97017b0x13 0000000000000038x14 ff00000000000000x15 ffffffffffffffff
[12.293986] DEBUG:x16 00000073e478f948x17 00000073e476ea60x18 00000073e6692000x19 0000000000000094
[12.294233] DEBUG:x20 0000000000000094x21 00000000ffffffffx22 0000000300000001x23 0000000000000001
[12.294479] DEBUG:x24 0000000000000003x25 0000000000000000x26 0000000000000000x27 0000000000000000
[12.294735] DEBUG:x28 0000000000000000x29 0000007fc9701870
[12.295071] DEBUG:lr00000073e4722888sp0000007fc97017d0pc00000073e47228b8pst 0000000000001000
[12.353908] DEBUG:
[12.354009] DEBUG: backtrace:
[12.354354] DEBUG:#00 pc 00000000000898b8/apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: d33c7ee9ce128fbcab34ed8529cd06f3)
[12.354875] DEBUG:#01 pc 00000000000062e4/system/lib64/liblog.so (__android_log_default_aborter+12) (BuildId: 796c64bd8c172c74bbe9d13be7fdb14b)
[12.355207] DEBUG:#02 pc 0000000000006e58/system/lib64/liblog.so (__android_log_assert+336) (BuildId: 796c64bd8c172c74bbe9d13be7fdb14b)
[12.355684] DEBUG:#03 pc 000000000018a498/system/lib64/libsurfaceflinger.so (android::renderengine::gl::GLESRenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+4496) (BuildId: 2e50c52a66754342019ef33b8c2aa865)
[12.356158] DEBUG:#04 pc 000000000018914c/system/lib64/libsurfaceflinger.so (android::renderengine::RenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+168) (BuildId: 2e50c52a66754342019ef33b8c2aa865)
[12.356639] DEBUG:#05 pc 0000000000109a68/system/lib64/libsurfaceflinger.so (android::SurfaceFlinger::init()+184) (BuildId: 2e50c52a66754342019ef33b8c2aa865)
[12.357011] DEBUG:#06 pc 00000000000021b8/system/bin/surfaceflinger (main+368) (BuildId: a89eb6c00bbdc77278f0b6b1fee2e129)
[12.357349] DEBUG:#07 pc 0000000000084e58/apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: d33c7ee9ce128fbcab34ed8529cd06f3)
[12.501968] vdc: Waited 0ms for vold
[12.691523] type=1400 audit(12.543:5): avc: denied { open } for comm="crash_dump64" path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=11771 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1
[12.692115] type=1400 audit(12.543:6): avc: denied { getattr } for comm="crash_dump64" path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=11771 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1
[12.692490] type=1400 audit(12.543:7): avc: denied { map } for comm="crash_dump64" path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=11771 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1
[12.744140] logd: logdr: UID=1000 GID=1003 PID=173 n tail=50 logMask=8 pid=148 start=0ns timeout=0ns
[12.745944] logd: logdr: UID=1000 GID=1003 PID=173 n tail=50 logMask=1 pid=148 start=0ns timeout=0ns
[12.785632] logd: logdr: UID=1000 GID=1003 PID=173 n tail=0 logMask=8 pid=148 start=0ns timeout=0ns
[12.786999] logd: logdr: UID=1000 GID=1003 PID=173 n tail=0 logMask=1 pid=148 start=0ns timeout=0ns
[12.954395] apexd: This device does not support updatable APEX. Exiting
[12.954621] apexd: Marking APEXd as ready
[13.536943] init: Command 'restorecon --recursive --skip-ce /data' action=post-fs-data (/system/etc/init/hw/init.rc:770) took 573ms and succeeded
[13.538379] init: starting service 'exec 7 (/system/bin/tzdatacheck /apex/com.android.tzdata/etc/tz /data/misc/zoneinfo)'...
[13.542231] init: SVC_EXEC service 'exec 7 (/system/bin/tzdatacheck /apex/com.android.tzdata/etc/tz /data/misc/zoneinfo)' pid 191 (uid 1000 gid 1000+0 context default) started;
waiting...
[13.577582] init: Service 'exec 7 (/system/bin/tzdatacheck /apex/com.android.tzdata/etc/tz /data/misc/zoneinfo)' (pid 191) exited with status 0 waiting took 0.036000 seconds
[13.577729] init: Sending signal 9 to service 'exec 7 (/system/bin/tzdatacheck /apex/com.android.tzdata/etc/tz /data/misc/zoneinfo)' (pid 191) process group...
[13.578545] libprocessgroup: Successfully killed process cgroup uid 1000 pid 191 in 0ms
[13.582002] init: processing action (post-fs-data) from (/system/etc/init/hw/init.usb.rc:6)
[13.586454] init: Encryption policy of /data/adb set to 9cc9f30e4cf39ffa6b5f44337271194c v2 modes 1/4 flags 0xa
[13.586667] init: processing action (post-fs-data) from (/vendor/etc/init/hw/init.rk30board.rc:9)
[13.599414] init: processing action (post-fs-data) from (/system/etc/init/bootstat.rc:9)
[13.897307] logd.daemon: reinit
[14.004374] init: Verified that /data/nfc has the encryption policy 9cc9f30e4cf39ffa6b5f44337271194c v2 modes 1/4 flags 0xa
[14.026449] init: Inferred action different from explicit one, expected 0 but got 2
[14.030403] init: Verified that /data/nfc/param has the encryption policy 9cc9f30e4cf39ffa6b5f44337271194c v2 modes 1/4 flags 0xa
[15.769418] healthd: No battery devices found
[15.801205] healthd: battery none chg=
[15.971310] type=1400 audit(15.823:19): avc: denied { read } for comm="rockchip.hardwa" name="u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:vendor-rockit-hal-1-0:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.009182] type=1400 audit(15.823:20): avc: denied { open } for comm="rockchip.hardwa" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:vendor-rockit-hal-1-0:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.009900] type=1400 audit(15.823:21): avc: denied { getattr } for comm="rockchip.hardwa" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:vendor-rockit-hal-1-0:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.010518] type=1400 audit(15.823:22): avc: denied { map } for comm="rockchip.hardwa" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:vendor-rockit-hal-1-0:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.067986] bcmdhd: disagrees about version of symbol module_layout
[16.206644] type=1400 audit(16.060:23): avc: denied { read } for comm="android.hardwar" name="u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.232429] type=1400 audit(16.060:24): avc: denied { open } for comm="android.hardwar" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.250022] type=1400 audit(16.060:25): avc: denied { getattr } for comm="android.hardwar" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.272913] type=1400 audit(16.060:26): avc: denied { map } for comm="android.hardwar" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=11719 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=1
[16.317699] type=1400 audit(16.156:27): avc: denied { open } for comm="crash_dump64" path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=11771 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1
[16.323000] logd: logdr: UID=1000 GID=1003 PID=268 n tail=50 logMask=8 pid=241 start=0ns timeout=0ns
[16.426014] file system registered
[16.439450] using random self ethernet address
[16.439616] using random host ethernet address
[17.195495] read descriptors
[17.195659] read strings
[17.910335] dwc3 fcc00000.dwc3: device reset
[18.042059] dwc3 fcc00000.dwc3: device reset
[18.042272] android_work: did not send uevent (0 0(null))
[18.187493] android_work: sent uevent USB_STATE=CONNECTED
[18.187945] configfs-gadget gadget: high-speed config #1: b
[18.191841] android_work: sent uevent USB_STATE=CONFIGURED
[19.159702] init: starting service 'vendor.audio-hal'...
[19.860676] init: starting service 'audioserver'...
[19.869594] init: processing action (init.svc.audioserver=running) from (/system/etc/init/audioserver.rc:35)
[19.870183] init: Command 'start vendor.audio-hal-4-0-msd' action=init.svc.audioserver=running (/system/etc/init/audioserver.rc:37) took 0ms and failed: service vendor.audio-hal-4-0-msd not found
[19.870468] init: Command 'start vendor.audio-hal-2-0' action=init.svc.audioserver=running (/system/etc/init/audioserver.rc:39) took 0ms and failed: service vendor.audio-hal-2-0 not found
[19.870854] init: Command 'start audio-hal-2-0' action=init.svc.audioserver=running (/system/etc/init/audioserver.rc:40) took 0ms and failed: service audio-hal-2-0 not found
[20.192920] init: starting service 'surfaceflinger'...
[20.195241] init: Could not create socket 'pdx/system/vr/display/client': Failed to bind socket 'pdx/system/vr/display/client': No such file or directory
[20.196690] init: Could not create socket 'pdx/system/vr/display/manager': Failed to bind socket 'pdx/system/vr/display/manager': No such file or directory
[20.197955] init: Could not create socket 'pdx/system/vr/display/vsync': Failed to bind socket 'pdx/system/vr/display/vsync': No such file or directory
[21.131332] type=1400 audit(20.983:34): avc: denied { open } for comm="crash_dump64" path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=11771 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1
[21.132279] type=1400 audit(20.983:35): avc: denied { getattr } for comm="crash_dump64" path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=11771 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1
[21.132783] type=1400 audit(20.983:36): avc: denied { map } for comm="crash_dump64" path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=11771 scontext=u:r:crash_dump:s0 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1
[21.144454] logd: logdr: UID=1000 GID=1003 PID=423 n tail=50 logMask=8 pid=405 start=0ns timeout=0ns
[21.146833] logd: logdr: UID=1000 GID=1003 PID=423 n tail=50 logMask=1 pid=405 start=0ns timeout=0ns
[21.187939] logd: logdr: UID=1000 GID=1003 PID=423 n tail=0 logMask=8 pid=405 start=0ns timeout=0ns
[21.189826] logd: logdr: UID=1000 GID=1003 PID=423 n tail=0 logMask=1 pid=405 start=0ns timeout=0ns
[24.165959] init: starting service 'vendor.audio-hal'...
[24.867337] init: starting service 'audioserver'...
[24.874154] init: processing action (init.svc.audioserver=running) from (/system/etc/init/audioserver.rc:35)
[24.874899] init: Command 'start vendor.audio-hal-4-0-msd' action=init.svc.audioserver=running (/system/etc/init/audioserver.rc:37) took 0ms and failed: service vendor.audio-hal-4-0-msd not found
[24.875251] init: Command 'start vendor.audio-hal-2-0' action=init.svc.audioserver=running (/system/etc/init/audioserver.rc:39) took 0ms and failed: service vendor.audio-hal-2-0 not found
[24.875654] init: Command 'start audio-hal-2-0' action=init.svc.audioserver=running (/system/etc/init/audioserver.rc:40) took 0ms and failed: service audio-hal-2-0 not found
[25.203462] init: starting service 'surfaceflinger'...
[25.204726] init: Could not create socket 'pdx/system/vr/display/client': Failed to bind socket 'pdx/system/vr/display/client': No such file or directory
[25.205982] init: Could not create socket 'pdx/system/vr/display/manager': Failed to bind socket 'pdx/system/vr/display/manager': No such file or directory
[25.207058] init: Could not create socket 'pdx/system/vr/display/vsync': Failed to bind socket 'pdx/system/vr/display/vsync': No such file or directory
目前没又发现方法可以解开,使用add2line工具,追查到对应的报错后是调库没有调起来,导致一直在重复的跑阿跑,然后就死了。
自己把同样的镜像烧录在不同的板子里面,没有使用的板子就不会出现这种情况。怀疑是硬件问题。硬件也没有查出任何东西,后面自己换了一块开发板就好了,怀疑是冬天自己身上的静电导致板子可能出现了短路问题。
在接触开发板的时候一定要注意不要短路这些,还有就是最好弄一块静电皮。
二、addr2line使用 一、找到对应的工具目录
echo $PATH
应该会出现下面一段
`/opt/RK3566-QLS/prebuilts/jdk/jdk11/linux-x86/bin:/opt/RK3566-QLS/out/soong/host/linux-x86/bin:/opt/RK3566-QLS/out/host/linux-x86/bin:/opt/RK3566-QLS/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/opt/RK3566-QLS/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/opt/RK3566-QLS/development/scripts:/opt/RK3566-QLS/prebuilts/devtools/tools:/opt/RK3566-QLS/external/selinux/prebuilts/bin:/opt/RK3566-QLS/prebuilts/misc/linux-x86/dtc:/opt/RK3566-QLS/prebuilts/misc/linux-x86/libufdt:/opt/RK3566-QLS/prebuilts/clang/host/linux-x86/llvm-binutils-stable:/opt/RK3566-QLS/prebuilts/android-emulator/linux-x86_64:/opt/RK3566-QLS/prebuilts/asuite/acloud/linux-x86:/opt/RK3566-QLS/prebuilts/asuite/aidegen/linux-x86:/opt/RK3566-QLS/prebuilts/asuite/atest/linux-x86:/home/cluo/.bin:/home/cluo/.local/share/umake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin`
没有就按照官方平台加载下环境,source 和lunch下环境
source build/envsetup.sh
lunch xx
然后进入到这个addr目录
opt/RK3566-QLS/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
这个目录下有很多工具包
aarch64-linux-android-addr2lineaarch64-linux-android-gcovaarch64-linux-androidkernel-objdumpaarch64-linux-android-objdump
aarch64-linux-android-araarch64-linux-android-gcov-toolaarch64-linux-androidkernel-readelfaarch64-linux-android-ranlib
aarch64-linux-android-asaarch64-linux-android-gprofaarch64-linux-androidkernel-sizeaarch64-linux-android-readelf
aarch64-linux-android-c++filtaarch64-linux-androidkernel-araarch64-linux-androidkernel-stripaarch64-linux-android-size
aarch64-linux-android-dwpaarch64-linux-androidkernel-asaarch64-linux-android-ldaarch64-linux-android-strings
aarch64-linux-android-elfeditaarch64-linux-androidkernel-elfeditaarch64-linux-android-ld.bfdaarch64-linux-android-strip
aarch64-linux-android-gcc-araarch64-linux-androidkernel-ldaarch64-linux-android-ld.gold
aarch64-linux-android-gcc-nmaarch64-linux-androidkernel-nmaarch64-linux-android-nm
aarch64-linux-android-gcc-ranlibaarch64-linux-androidkernel-objcopyaarch64-linux-android-objcopy
我们使用第一个来查找
根据前面的报错从下往上找,因为一层一层调用,我们需要找到源头
[12.357349] DEBUG:#07 pc 0000000000084e58/apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: d33c7ee9ce128fbcab34ed8529cd06f3)
./aarch64-linux-android-addr2line -e/opt/RK3566-QLS/out/target/product/rk66_qls/symbols/apex/com.android.runtime/lib64/bionic/libc.so0x0000000000084e58
工具 -e 报错的.so文件 地址
下面就会打印一行东西,提示你那个文件错误,在那一行,可以取看看
bionic/libc/bionic/libc_init_dynamic.cpp:151
【linux驱动学习(兼容安卓)|android11墓碑机制和addr2line使用】提示你这个文件第151行出错。
但是我目前不知道这个错误怎么取解决,只能找到对应文件。
推荐阅读
- Linux|Linux(访问权限与粘滞位之详解)
- Linux|【Linux】权限-粘滞位
- linux|CentOS 7.0 防火墙常用命令
- python|生成对抗网络gans_生成对抗网络gans简介
- 操作系统简介
- 操作系统|Linux系统编程【3.1】——编写ls命令
- linux|linux中的网络配置
- 操作系统|Linux系统编程【1】——编写more命令
- Linux安装中文字体(已验证)