Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Issue 1070853002: ASan: re-enable strict memcmp() checks. (Closed)

Created:
5 years, 8 months ago by earthdok
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ASan: re-enable strict memcmp() checks. Also, introduce ASan suppressions and use them to suppress a memcmp() report in system-installed libsqlite. BUG=178677 TBR=glider@chromium.org Committed: https://crrev.com/01151d346358a1911639a97fd061393bc0b54e43 Cr-Commit-Position: refs/heads/master@{#324448}

Patch Set 1 #

Patch Set 2 : add suppressions #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -5 lines) Patch
A build/sanitizers/asan_suppressions.cc View 1 1 chunk +23 lines, -0 lines 1 comment Download
M build/sanitizers/sanitizer_options.cc View 1 3 chunks +9 lines, -5 lines 0 comments Download
M build/sanitizers/sanitizers.gyp View 1 1 chunk +5 lines, -0 lines 1 comment Download

Messages

Total messages: 14 (2 generated)
earthdok
5 years, 8 months ago (2015-04-09 00:30:57 UTC) #1
Alexander Potapenko
https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/asan_suppressions.cc File build/sanitizers/asan_suppressions.cc (right): https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/asan_suppressions.cc#newcode16 build/sanitizers/asan_suppressions.cc:16: "interceptor_via_lib:libsqlite3.so\n" Don't we want to make the suppressions OS-specific?
5 years, 8 months ago (2015-04-09 10:22:21 UTC) #2
earthdok
On 2015/04/09 10:22:21, Alexander Potapenko wrote: > https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/asan_suppressions.cc > File build/sanitizers/asan_suppressions.cc (right): > > https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/asan_suppressions.cc#newcode16 ...
5 years, 8 months ago (2015-04-09 12:26:43 UTC) #3
Alexander Potapenko
On 2015/04/09 12:26:43, earthdok wrote: > On 2015/04/09 10:22:21, Alexander Potapenko wrote: > > > ...
5 years, 8 months ago (2015-04-09 12:47:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1070853002/20001
5 years, 8 months ago (2015-04-09 12:48:28 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-09 15:50:12 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/01151d346358a1911639a97fd061393bc0b54e43 Cr-Commit-Position: refs/heads/master@{#324448}
5 years, 8 months ago (2015-04-09 15:51:09 UTC) #8
jamesr
https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/sanitizers.gyp File build/sanitizers/sanitizers.gyp (right): https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/sanitizers.gyp#newcode46 build/sanitizers/sanitizers.gyp:46: 'asan_suppressions.cc', shouldn't this file be added to the GN ...
5 years, 7 months ago (2015-05-06 00:01:28 UTC) #10
earthdok
On 2015/05/06 00:01:28, jamesr wrote: > https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/sanitizers.gyp > File build/sanitizers/sanitizers.gyp (right): > > https://codereview.chromium.org/1070853002/diff/20001/build/sanitizers/sanitizers.gyp#newcode46 > ...
5 years, 7 months ago (2015-05-06 00:50:11 UTC) #11
jamesr
We're successfully using asan with GN which is why I'm asking. It appears that adding ...
5 years, 7 months ago (2015-05-06 00:51:42 UTC) #12
earthdok
On 2015/05/06 00:51:42, jamesr wrote: > We're successfully using asan with GN which is why ...
5 years, 7 months ago (2015-05-06 16:54:23 UTC) #13
jamesr
5 years, 7 months ago (2015-05-06 17:29:55 UTC) #14
Message was sent while issue was closed.
We're running asan (but not lsan, tsan, msan, ubsan, or any other *san) in Mojo.
 That uses the build configs from chromium although it lives in a different
repo.  Here's one bot:

http://build.chromium.org/p/client.mojo/builders/Mojo%20Linux%20ASan

it's been extremely useful at finding issues in the past and I believe it's
operating correctly now (I'll induce a failure locally to check).  Before we got
this set up we predictably had double-frees and other memory errors in lots of
our core code that was very difficult to diagnose without ASan's help.

We would love to run the rest of the sanitizer family as well on our binaries
but haven't had bandwidth to try to get them set up.

I know y'all are very busy and don't want to add any extra work, but if there
are any things you can provide that are easy (from your perspective) it'd
definitely help us out.

For this particular issue it looks like
https://chromium.googlesource.com/chromium/src/+/7080a81857e6a5be8eed11942ead...
fixed what we were seeing.

Powered by Google App Engine
This is Rietveld 408576698