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

Issue 7541045: Adding GYP_DEFINES=ASAN to enable ASAN build (Closed)

Created:
9 years, 4 months ago by glotov
Modified:
9 years, 4 months ago
Reviewers:
Nico
CC:
chromium-reviews, davemoore+watch_chromium.org
Visibility:
Public.

Description

Adding GYP_DEFINES=ASAN to enable ASAN build BUG=chromium-os:16717 TEST=manual yet Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96772

Patch Set 1 #

Patch Set 2 : sync #

Total comments: 4

Patch Set 3 : review comments fixed #

Total comments: 4

Patch Set 4 : fixes #

Total comments: 2

Patch Set 5 : comment added #

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

Messages

Total messages: 17 (0 generated)
glotov
Hi! Please have a look.
9 years, 4 months ago (2011-08-05 18:33:06 UTC) #1
Nico
http://codereview.chromium.org/7541045/diff/1001/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/7541045/diff/1001/build/common.gypi#newcode407 build/common.gypi:407: 'asan%': 0, Should setting this set 'clang' to 1 ...
9 years, 4 months ago (2011-08-05 18:37:19 UTC) #2
glotov
Hi Nico! What are CC.host and CXX.host variables? I don't know about them. On Fri, ...
9 years, 4 months ago (2011-08-05 19:02:50 UTC) #3
Nico
See http://code.google.com/p/chromium/wiki/Clang On Fri, Aug 5, 2011 at 11:37 AM, <thakis@chromium.org> wrote: > > http://codereview.chromium.org/7541045/diff/1001/build/common.gypi ...
9 years, 4 months ago (2011-08-05 19:03:27 UTC) #4
Nico
They're used for cross-compiling. Do you use clang with cross-compiled CrOS builds (say, arm)? On ...
9 years, 4 months ago (2011-08-05 19:04:19 UTC) #5
glotov
Hi Nico! Please have another look. http://codereview.chromium.org/7541045/diff/1001/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/7541045/diff/1001/build/common.gypi#newcode407 build/common.gypi:407: 'asan%': 0, On ...
9 years, 4 months ago (2011-08-10 18:10:30 UTC) #6
Nico
LGTM http://codereview.chromium.org/7541045/diff/5001/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/7541045/diff/5001/build/common.gypi#newcode1525 build/common.gypi:1525: '-fasan', Add a comment above this line "-fasan ...
9 years, 4 months ago (2011-08-10 18:15:19 UTC) #7
Nico
http://codereview.chromium.org/7541045/diff/5001/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/7541045/diff/5001/build/common.gypi#newcode1524 build/common.gypi:1524: 'cflags': [ Is this required for ldflags as well? ...
9 years, 4 months ago (2011-08-10 18:48:17 UTC) #8
glotov
-ldl is generated automatically as soon as one uses ASAN-patched clang with -fasan option. Or ...
9 years, 4 months ago (2011-08-10 18:53:09 UTC) #9
Nico
Here's the error aarya was seeing (note: You need to set LINK.host=$CXX before seeing this): ...
9 years, 4 months ago (2011-08-10 19:44:37 UTC) #10
glotov
Yes, I just noticed the ASAN change. Will amend and test it tomorrow. Thanks! One ...
9 years, 4 months ago (2011-08-11 20:13:37 UTC) #11
Nico
On Thu, Aug 11, 2011 at 1:13 PM, Denis Glotov <glotov@chromium.org> wrote: > Yes, I ...
9 years, 4 months ago (2011-08-11 20:15:44 UTC) #12
glotov
Yes, I've just seen this on latest sources. Seems that this is because libasan32.a library ...
9 years, 4 months ago (2011-08-12 17:15:41 UTC) #13
Nico
On Fri, Aug 12, 2011 at 10:15 AM, Denis Glotov <glotov@chromium.org> wrote: > Yes, I've ...
9 years, 4 months ago (2011-08-12 17:20:11 UTC) #14
glotov
Successfully built and run with BUILDTYPE=Release. In Debug mode I see errors in asan_rtl.cc, tracking ...
9 years, 4 months ago (2011-08-12 20:13:05 UTC) #15
Nico
Do you want to figure out what's up with release builds before checking in or ...
9 years, 4 months ago (2011-08-12 20:17:27 UTC) #16
glotov
9 years, 4 months ago (2011-08-15 14:02:35 UTC) #17
Release build works fine, Debug build errors are tracked here:
https://groups.google.com/a/google.com/group/asan-users/browse_thread/thread/...

http://codereview.chromium.org/7541045/diff/14001/build/common.gypi
File build/common.gypi (right):

http://codereview.chromium.org/7541045/diff/14001/build/common.gypi#newcode1556
build/common.gypi:1556: ['asan==1', {
On 2011/08/12 20:17:27, Nico wrote:
> Add a comment "# Only in the linux section for now, since ASAN doesn't work on
> Mac yet."

Done.

Powered by Google App Engine
This is Rietveld 408576698