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

Issue 14109004: Do not instrument globals when running ASan on Mac. (Closed)

Created:
7 years, 8 months ago by Alexander Potapenko
Modified:
7 years, 8 months ago
Reviewers:
Nico
CC:
chromium-reviews
Visibility:
Public.

Description

Do not instrument globals when running ASan on Mac. There is a subtle bug in the instrumentation of globals for ObjC (https://code.google.com/p/address-sanitizer/issues/detail?id=171), which manifests in random errors in tests on 10.8 (e.g. issue 196561) BUG=196561 TBR=thakis Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193925

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M build/common.gypi View 1 2 3 2 chunks +8 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Alexander Potapenko
TBR I'm landing this in order to hotfix the ASan Mac buildbots after the 10.8 ...
7 years, 8 months ago (2013-04-12 14:06:24 UTC) #1
Alexander Potapenko
Committed patchset #4 manually as r193925.
7 years, 8 months ago (2013-04-12 14:26:41 UTC) #2
Nico
Lgtm On Apr 12, 2013 7:26 AM, <glider@chromium.org> wrote: > Committed patchset #4 manually as ...
7 years, 8 months ago (2013-04-12 14:40:07 UTC) #3
Nico
https://codereview.chromium.org/14109004/diff/7001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/14109004/diff/7001/build/common.gypi#newcode2984 build/common.gypi:2984: '-mllvm -asan-globals=0', # http://crbug.com/196561 Sorry, I missed this: 'cflags' ...
7 years, 8 months ago (2013-04-22 22:20:29 UTC) #4
Alexander Potapenko
7 years, 8 months ago (2013-04-23 10:09:04 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/14109004/diff/7001/build/common.gypi
File build/common.gypi (right):

https://codereview.chromium.org/14109004/diff/7001/build/common.gypi#newcode2984
build/common.gypi:2984: '-mllvm -asan-globals=0',  # http://crbug.com/196561
On 2013/04/22 22:20:29, Nico wrote:
> Sorry, I missed this: 'cflags' isn't used on mac. You probably want
> 'xcodesettings': { 'OTHER_CFLAGS': ...} instead. As is, this is a no-op.

See below, I'm also setting -asan-globals=0 in xcode_settings.

BTW, this is weird. Why can't we just append cflags to OTHER_CFLAGS when
generating Xcode projects?

Powered by Google App Engine
This is Rietveld 408576698