asan版本编译报错
使用这个命令编译我们自己的产品的时候报错,另外问一下,这个编译处理的system.img是说可以发现鸿蒙相关模块踩内存的问题,我自己适配的gpu库踩内存的问题是否也可以查看到相关的栈调用信息了?
类似这种:
Generated by HiviewDFX@OpenHarmony
================================================================
Device info:OpenHarmony 3.2
Build info:OpenHarmony 3.2.11.9
Module name:com.ohos.systemui
Version:1.0.0
Pid:25273
Uid:10008
Reason:Signal:SIGSEGV(SEGV_MAPERR)@0x0001abd0
Tid:25347, Name:RSRenderThread
#00 pc 0001abd0 Not mapped pc
#01 pc 00010509 /system/lib/libEGL.so(eglMakeCurrent+152) (64120247f4add49b229e4e5d5de9d70a)
#02 pc b6ff2350 Unknown
编译命令:
./build/common/asan/build_mixed_asan.sh --product-name 自己的产品名--ccache --build-variant root --gn-args is_asan=true
版本是3.2.1,编译报错信息
[OHOS ERROR] [33487/33494] ACTION //build/ohos/images:phone_updater_image(//build/toolchain/ohos:ohos_clang_arm)
[OHOS ERROR] FAILED: packages/phone/images/updater.img
[OHOS ERROR] /usr/bin/env ../../build/ohos/images/build_image.py --depfile gen/build/ohos/images/phone_updater_image.d --image-name updater --input-path packages/phone/updater --image-config-file ../../build/ohos/images/mkimage/updater_image_conf.txt --device-image-config-file packages/imagesconf/updater_image_conf.txt --output-image packages/phone/images/updater.img --target-cpu arm --build-image-tools-path clang_x64/thirdparty/e2fsprogs clang_x64/thirdparty/f2fs_tools ../../third_party/e2fsprogs/prebuilt/host/bin ../../build/ohos/images/mkimage
[OHOS ERROR] pid 1488839 ret 2
[OHOS ERROR] info: e2fsdroid -e -C ../../build/ohos/images/mkimage/dac.txt -f packages/phone/updater -a /updater packages/phone/images/updater.img
[OHOS ERROR] pid 1488849 ret 1
[OHOS ERROR] __populate_fs: Could not allocate block in ext2 filesystem while writing file "updater_binary"
[OHOS ERROR] e2fsdroid: Could not allocate block in ext2 filesystem while populating file system
[OHOS ERROR]
[OHOS ERROR] error run e2fsdroid errno: 1
[OHOS ERROR]
[OHOS ERROR] MkImages failed errno: 2
更多推荐
所有评论(0)