KwaiAppTeam / KOOM

KOOM is an OOM killer on mobile platform by Kwai.
Other
3.15k stars 420 forks source link

部分机器运行Koom demo 时,检测不到native 内存泄漏,LeakRecordMap size 为0 #280

Open caichuli opened 1 month ago

caichuli commented 1 month ago

Android14机器,arm64-v8a架构:

[Uploading koom_native.txt…]()

07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb4000079d229d218 size 13272 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb4000079d229d218 size 13272 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb4000079c2281d38 size 8904 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb4000079c2281d38 size 8904 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb400007922230318 size 600 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb400007922230318 size 600 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb4000079a22fe4a8 size 6216 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb4000079a22fe4a8 size 6216 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb40000796226c868 size 2304 07-05 16:43:32.146 14336 14772 I NativeLeakTest: TestNewArrayLeak 0xb40000796226c868 size 2304 07-05 16:43:33.808 14822 14379 I libmemunreachable: collecting thread info for process 14336... 07-05 16:43:33.873 14822 14379 I libmemunreachable: collection thread done 07-05 16:43:33.874 14827 14827 I libmemunreachable: searching process 14336 for allocations 07-05 16:43:33.930 14827 14827 I libmemunreachable: searching done 07-05 16:43:33.930 14827 14827 I libmemunreachable: sweeping process 14336 for unreachable memory 07-05 16:43:35.055 14827 14827 I libmemunreachable: sweeping done 07-05 16:43:35.055 14827 14827 I libmemunreachable: folding related leaks 07-05 16:43:35.055 14827 14827 I libmemunreachable: folding related leaks 07-05 16:43:35.522 14827 14827 I libmemunreachable: folding done 07-05 16:43:35.524 14336 14379 I libmemunreachable: unreachable memory detection done 07-05 16:43:35.524 14336 14379 E libmemunreachable: 826379185 bytes in 1074 allocations unreachable out of 928846747 bytes in 46542 allocations 07-05 16:43:35.537 14336 14379 I NativeLeakMonitor: LeakRecordMap size: 0 07-05 16:43:35.537 14336 14379 I NativeLeakMonitor: LeakRecordMap size: 0

Xinmeng322 commented 1 month ago

你的邮件已收到。

gogi2010 commented 1 week ago

@caichuli 你是只有部分Android14还是所有Android14都检测不到,android 11-android 13的能检测到吗