HarmonyOS Asan开启detect\_leaks后卡死在启动页?

{
  "app": {
  "bundleName": "xxx",
  "vendor": "example",
  "versionCode": 1000000,
  "versionName": "1.0.0",
  "icon": "$media:app_icon",
  "label": "$string:app_name",
  "appEnvironments": [
  {
    "name": "ASAN_OPTIONS",
  "value": "log_path=/dev/asanlog/asan.log log_exe_name=true abort_on_error=false detect_leaks=1 alloc_dealloc_mismatch=0 detect_container_overflow=0"
  }
  ],
  "asanEnabled": true
}
}

如上所示: 添加detect\_leaks=1后就卡死在启动页,是HarmonyOS套件不支持C++ 检测内存泄露吗?若支持,如何进行配置?

阅读 546
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进