diff options
author | Andreas Gampe <agampe@google.com> | 2017-04-28 10:33:50 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2017-04-28 10:33:50 -0700 |
commit | d7f900170dac3d3df60f6f7cbac14bcd4173b139 (patch) | |
tree | 62db8e3b31dd808986268cdc8a1f224c30649d83 | |
parent | 9c25c168a1ea9a10bfe136a1ba146e9b11af9159 (diff) | |
download | aidl-d7f900170dac3d3df60f6f7cbac14bcd4173b139.tar.gz |
Aidl: Let ASAN know that aidl doesn't want lsanandroid-wear-o-preview-4android-wear-o-preview-3android-o-preview-3android-o-preview-2android-n-iot-preview-4n-iot-preview-4
Temporary workaround. Aidl is not cleaning up itself right now.
This is in code, as otherwise generated makefiles would have to
use ASAN_OPTIONS=... at every invocation.
Bug: 37749857
Test: ASAN_OPTIONS= SANITIZE_HOST=address m
Change-Id: Ife7c97c076c1f182c9699f388edc852f94fc7c12
-rw-r--r-- | main_cpp.cpp | 5 | ||||
-rw-r--r-- | main_java.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/main_cpp.cpp b/main_cpp.cpp index 790efdce..e904a929 100644 --- a/main_cpp.cpp +++ b/main_cpp.cpp @@ -23,6 +23,11 @@ using android::aidl::CppOptions; +// aidl is leaky. Turn off LeakSanitizer by default. b/37749857 +extern "C" const char *__asan_default_options() { + return "detect_leaks=0"; +} + int main(int argc, char** argv) { android::base::InitLogging(argv); LOG(DEBUG) << "aidl starting"; diff --git a/main_java.cpp b/main_java.cpp index 7d32b242..d624a138 100644 --- a/main_java.cpp +++ b/main_java.cpp @@ -24,6 +24,11 @@ using android::aidl::JavaOptions; +// aidl is leaky. Turn off LeakSanitizer by default. b/37749857 +extern "C" const char *__asan_default_options() { + return "detect_leaks=0"; +} + int main(int argc, char** argv) { android::base::InitLogging(argv); LOG(DEBUG) << "aidl starting"; |