Hi All,
I am trying to find memory leak using libmemunreachable library in AOSP. i have getting following output on adb shell, but not able to find line number of code where memory leak present or any backtrace logs in adb logs. following commands are executed as mentioned in
link.
Commands:-
adb root
adb shell setprop libc.debug.malloc.program app_process
adb shell setprop wrap.[process] "\$\@"
adb shell setprop libc.debug.malloc.options backtrace=4
dumpsys -t 600 meminfo --unreachable [process].
adb shell output:-
Unreachable memory
704 bytes in 5 unreachable allocations
ABI: 'arm64'
288 bytes unreachable at 7862adf450
first 20 bytes of contents:
7862adf450: 88 13 e8 07 00 00 00 00 9e 9f 15 08 00 00 00 00 ................
7862adf460: 2c bb 17 08 00 00 00 00 23 8a 89 08 00 00 00 00 ,.......#.......
No. of backtrace frames are 0 in debug logs. is there any way to enable backtrace in adb logs or to get line no. of source code from above adb shell output.
Thanks & Regards,
Shubham Salunkhe