Hi,
I am trying to use the address sanitizer tool in Android AOSP -(Android 10.)
I am trying to check the possible memory leaks in AudioFlinger.
I have added the foll. code in Android.bp file
(frameworks/av/services/audioflinger/Android.bp) to enable ASAN:
cflags: [
+ "-Wno-error",
+ "-fno-omit-frame-pointer",
+ "-O0",
+ "-Wno-frame-larger-than=",
+ "-fvisibility=hidden",
+ "-Wall",
+ "-Werror",
+ "-Wno-error=unused-function",
+ * "-fsanitize-recover=address"*
],
* clang: true,*
* sanitize: { address: true, },*
I have inserted the intentional memory leak in the code so as to check the
ASAN detection. built the code using "mm" and pushed it to the device.
But I do not get any issue reported/crash from ASAN. Seems that I need to
enable ASAN in some other part of AOSP.
Can anyone help me with this. Hoping for the reply.
Regards,
Varsha
--
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-porting/0a715b17-d6f4-412f-961a-8647e8f5cdfbn%40googlegroups.com.