Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[koom-native] 兼容 MTE #272

Open
rabbitknight opened this issue Feb 28, 2024 · 1 comment
Open

[koom-native] 兼容 MTE #272

rabbitknight opened this issue Feb 28, 2024 · 1 comment
Assignees

Comments

@rabbitknight
Copy link

rabbitknight commented Feb 28, 2024

在应用接入 KOOM-native 时,发现 native leak完全无法 捕获。
对 native 的代码进行分析:打印日志如下:

2024-02-28 19:00:22.351  3764-3906  leak_monitor               E  GetLeakAllocs live before 0xb400007cf6ab5c00

指针前缀带有0xb4的标识。经排查 如果将demo target 33 API 会出现这样的分配。
见官方文档:https://source.android.com/docs/security/test/tagged-pointers?hl=zh-cn

临时解决方案,在app xml 中使用如下标记,可以临时解决。

  <application android:allowNativeHeapPointerTagging="false">
  ...
  </application>

希望尽快修复~

@AndroidInternal
Copy link
Contributor

感谢反馈,因为我们做了分配器替换所以一直没发现这个问题,后面会修复下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants