From 4e4fe4f9ae4160e917400616567cf6c41f585d58 Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Wed, 1 Oct 2014 08:03:19 +0000 Subject: [PATCH] Add support for MSan Add third_party/instrumented_libraries to setup_links.py Add tools/msan/blacklist.txt which is the default location used by MSan. These changes are prerequisites to be able to use MSan with WebRTC. To use it, one must also run: sudo third_party/instrumented_libraries/install-build-deps.sh to get the instrumented libraries installed (requires /etc/apt/sources.list to be setup with deb-src entries). NOTICE: Compilation is not yet working, but with this we can setup a FYI bot to work with. BUG=chromium:416871 TESTED=gclient sync + generate projects using: GYP_DEFINES='msan=1 use_instrumented_libraries=1 instrumented_libraries_jobs=20' webrtc/build/gyp_webrtc Built successfully in Release and ran a couple of tests (some crashed, some passed). R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/25649004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7352 4adac7df-926f-26a2-2b94-8c16560cd09d --- .gitignore | 1 + setup_links.py | 1 + tools/msan/OWNERS | 1 + tools/msan/blacklist.txt | 12 ++++++++++++ 4 files changed, 15 insertions(+) create mode 100644 tools/msan/OWNERS create mode 100644 tools/msan/blacklist.txt diff --git a/.gitignore b/.gitignore index 97370295f..473ae13aa 100644 --- a/.gitignore +++ b/.gitignore @@ -73,6 +73,7 @@ /third_party/gflags/src /third_party/google-visualization-python /third_party/icu +/third_party/instrumented_libraries /third_party/jsoncpp /third_party/jsr-305 /third_party/junit diff --git a/setup_links.py b/setup_links.py index a72565e4d..a0fd6e566 100755 --- a/setup_links.py +++ b/setup_links.py @@ -43,6 +43,7 @@ DIRECTORIES = [ 'third_party/drmemory', 'third_party/expat', 'third_party/icu', + 'third_party/instrumented_libraries', 'third_party/jsoncpp', 'third_party/libc++', 'third_party/libc++abi', diff --git a/tools/msan/OWNERS b/tools/msan/OWNERS new file mode 100644 index 000000000..72e8ffc0d --- /dev/null +++ b/tools/msan/OWNERS @@ -0,0 +1 @@ +* diff --git a/tools/msan/blacklist.txt b/tools/msan/blacklist.txt new file mode 100644 index 000000000..3c9c9b202 --- /dev/null +++ b/tools/msan/blacklist.txt @@ -0,0 +1,12 @@ +# The rules in this file are only applied at compile time. +# Because the Chrome buildsystem does not automatically touch the files +# mentioned here, changing this file requires clobbering all MSan bots. +# +# Please think twice before you add or remove these rules. + +# This is a stripped down copy of Chromium's blacklist.txt, to enable +# adding WebRTC-specific blacklist entries. + +# Uninit in zlib. http://crbug.com/116277 +fun:*MOZ_Z_deflate* +