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

Issue 659543003: Fix LSan on swarming. (Closed)

Created:
6 years, 2 months ago by jam
Modified:
5 years, 10 months ago
Reviewers:
Nico, M-A Ruel, earthdok
CC:
chromium-reviews, M-A Ruel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix LSan on swarming. ASAN_OPTIONS=detect_leaks=1 needs to be passed in. BUG=414808 R=earthdok@chromium.org, maruel@chromium.org Committed: https://crrev.com/14ae054faefb81d8a1f8de1c3e0f399902d65843 Cr-Commit-Position: refs/heads/master@{#299712}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : fixes #

Patch Set 4 : fix browser tests #

Patch Set 5 : cleanup #

Total comments: 30

Patch Set 6 : updates #

Total comments: 2

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -19 lines) Patch
M base/base.isolate View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M testing/test_env.py View 1 2 3 4 5 6 7 8 4 chunks +90 lines, -19 lines 0 comments Download

Messages

Total messages: 40 (6 generated)
jam
6 years, 2 months ago (2014-10-14 21:52:16 UTC) #2
jam
6 years, 2 months ago (2014-10-14 21:53:55 UTC) #3
M-A Ruel
Generally lgtm, a few style comments, no comment on the actual behavior, as I'm not ...
6 years, 2 months ago (2014-10-14 23:38:52 UTC) #5
jam
Thanks Marc-Antoine for the review, please take another look. Sergey: thanks for catching this and ...
6 years, 2 months ago (2014-10-15 03:20:48 UTC) #9
jam
On 2014/10/15 03:20:48, jam wrote: > Thanks Marc-Antoine for the review, please take another look. ...
6 years, 2 months ago (2014-10-15 05:27:27 UTC) #10
jam
On 2014/10/15 05:27:27, jam wrote: > On 2014/10/15 03:20:48, jam wrote: > > Thanks Marc-Antoine ...
6 years, 2 months ago (2014-10-15 06:06:23 UTC) #11
M-A Ruel
purely styling nits https://codereview.chromium.org/659543003/diff/120001/base/base.isolate File base/base.isolate (right): https://codereview.chromium.org/659543003/diff/120001/base/base.isolate#newcode31 base/base.isolate:31: '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6', I assume we don't use ...
6 years, 2 months ago (2014-10-15 13:08:00 UTC) #12
earthdok
https://codereview.chromium.org/659543003/diff/120001/base/base.isolate File base/base.isolate (right): https://codereview.chromium.org/659543003/diff/120001/base/base.isolate#newcode31 base/base.isolate:31: '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6', I don't think you need this dependency. Please ...
6 years, 2 months ago (2014-10-15 14:11:46 UTC) #13
earthdok
On 2014/10/15 14:11:46, earthdok wrote: > https://codereview.chromium.org/659543003/diff/120001/base/base.isolate > File base/base.isolate (right): > > https://codereview.chromium.org/659543003/diff/120001/base/base.isolate#newcode31 > ...
6 years, 2 months ago (2014-10-15 14:16:01 UTC) #14
earthdok
https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py File testing/test_env.py (right): https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py#newcode98 testing/test_env.py:98: extra_env['LD_LIBRARY_PATH'] = '/usr/lib/x86_64-linux-gnu/debug:' On 2014/10/15 14:11:45, earthdok wrote: > ...
6 years, 2 months ago (2014-10-15 14:35:56 UTC) #15
jam
ptal https://codereview.chromium.org/659543003/diff/120001/base/base.isolate File base/base.isolate (right): https://codereview.chromium.org/659543003/diff/120001/base/base.isolate#newcode31 base/base.isolate:31: '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6', On 2014/10/15 14:11:45, earthdok wrote: > I ...
6 years, 2 months ago (2014-10-15 15:23:26 UTC) #16
M-A Ruel
https://codereview.chromium.org/659543003/diff/140001/testing/test_env.py File testing/test_env.py (right): https://codereview.chromium.org/659543003/diff/140001/testing/test_env.py#newcode163 testing/test_env.py:163: print 'Additional test environment:\n%s\n' \ Use () instead of ...
6 years, 2 months ago (2014-10-15 15:27:09 UTC) #17
jam
https://codereview.chromium.org/659543003/diff/140001/testing/test_env.py File testing/test_env.py (right): https://codereview.chromium.org/659543003/diff/140001/testing/test_env.py#newcode163 testing/test_env.py:163: print 'Additional test environment:\n%s\n' \ On 2014/10/15 15:27:09, M-A ...
6 years, 2 months ago (2014-10-15 15:32:53 UTC) #18
M-A Ruel
lgtm https://codereview.chromium.org/659543003/diff/160001/testing/test_env.py File testing/test_env.py (right): https://codereview.chromium.org/659543003/diff/160001/testing/test_env.py#newcode163 testing/test_env.py:163: print ('Additional test environment:\n%s\n' print is now a ...
6 years, 2 months ago (2014-10-15 16:14:34 UTC) #19
jam
https://codereview.chromium.org/659543003/diff/160001/testing/test_env.py File testing/test_env.py (right): https://codereview.chromium.org/659543003/diff/160001/testing/test_env.py#newcode163 testing/test_env.py:163: print ('Additional test environment:\n%s\n' On 2014/10/15 16:14:34, M-A Ruel ...
6 years, 2 months ago (2014-10-15 16:30:45 UTC) #20
earthdok
https://codereview.chromium.org/659543003/diff/120001/base/base.isolate File base/base.isolate (right): https://codereview.chromium.org/659543003/diff/120001/base/base.isolate#newcode31 base/base.isolate:31: '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6', On 2014/10/15 15:23:25, jam wrote: > On 2014/10/15 ...
6 years, 2 months ago (2014-10-15 17:00:37 UTC) #21
jam
https://codereview.chromium.org/659543003/diff/120001/base/base.isolate File base/base.isolate (right): https://codereview.chromium.org/659543003/diff/120001/base/base.isolate#newcode31 base/base.isolate:31: '../third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6', On 2014/10/15 17:00:37, earthdok wrote: > On 2014/10/15 ...
6 years, 2 months ago (2014-10-15 17:23:49 UTC) #22
earthdok
lgtm
6 years, 2 months ago (2014-10-15 17:35:00 UTC) #23
jam
Committed patchset #9 (id:200001) manually as 14ae054faefb81d8a1f8de1c3e0f399902d65843.
6 years, 2 months ago (2014-10-15 17:54:04 UTC) #26
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/14ae054faefb81d8a1f8de1c3e0f399902d65843 Cr-Commit-Position: refs/heads/master@{#299712}
6 years, 2 months ago (2014-10-15 17:54:07 UTC) #27
earthdok
https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py File testing/test_env.py (right): https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py#newcode83 testing/test_env.py:83: #extra_env['G_SLICE'] = 'always-malloc' On 2014/10/15 03:20:48, jam wrote: > ...
6 years, 2 months ago (2014-10-15 19:57:35 UTC) #28
binji
On 2014/10/15 19:57:35, earthdok wrote: > https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py > File testing/test_env.py (right): > > https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py#newcode83 > ...
6 years, 2 months ago (2014-10-15 21:10:35 UTC) #29
jam
On 2014/10/15 19:57:35, earthdok wrote: > https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py > File testing/test_env.py (right): > > https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py#newcode83 > ...
6 years, 2 months ago (2014-10-15 21:16:42 UTC) #30
jam
On 2014/10/15 21:10:35, binji wrote: > On 2014/10/15 19:57:35, earthdok wrote: > > https://codereview.chromium.org/659543003/diff/120001/testing/test_env.py > ...
6 years, 2 months ago (2014-10-15 21:17:07 UTC) #31
Nico
This looks pretty different from the asan options on runtest.py: https://code.google.com/p/chromium/codesearch#chromium/build/scripts/slave/runtest.py&l=2032 Is that intentional? Is ...
5 years, 10 months ago (2015-01-28 06:12:33 UTC) #33
Alexander Potapenko
On 2015/01/28 06:12:33, Nico wrote: > This looks pretty different from the asan options on ...
5 years, 10 months ago (2015-01-28 08:53:25 UTC) #34
Alexander Potapenko
On 2015/01/28 08:53:25, Alexander Potapenko wrote: > On 2015/01/28 06:12:33, Nico wrote: > > This ...
5 years, 10 months ago (2015-01-28 09:00:12 UTC) #35
Nico
On Wed, Jan 28, 2015 at 1:00 AM, <glider@chromium.org> wrote: > On 2015/01/28 08:53:25, Alexander ...
5 years, 10 months ago (2015-01-28 14:17:00 UTC) #36
M-A Ruel
That's right. Note that it's not a requirement to bake *everything* in test_env.py. I'd be ...
5 years, 10 months ago (2015-01-28 15:10:33 UTC) #37
earthdok
On 2015/01/28 15:10:33, M-A Ruel wrote: > That's right. > > Note that it's not ...
5 years, 10 months ago (2015-01-28 15:30:20 UTC) #38
Alexander Potapenko
To correct myself, not all platforms are currently supported by sanitizer_options.cc (namely CrOS is not), ...
5 years, 10 months ago (2015-01-28 17:13:06 UTC) #39
Nico
5 years, 10 months ago (2015-01-29 20:41:31 UTC) #40
Message was sent while issue was closed.
On 2015/01/28 15:30:20, earthdok wrote:
> On 2015/01/28 15:10:33, M-A Ruel wrote:
> > That's right.
> > 
> > Note that it's not a requirement to bake *everything* in test_env.py. I'd
> > be more than happy to have an test_env_asan.py or something like that,
> > maintainability wise.
> > 
> > M-A
> 
> It would be pretty awesome if we could hoist all sanitizer-related stuff out
of
> runtest.py and put it somewhere it could be shared between runtest.py and
> test_env.py.
> 
> Where would be a good place for it though? If we put it under src/testing/,
that
> would make runtest.py dependent on a Chromium checkout. Some of the users of
> that script don't have a Chromium checkout (GPU trybots come to mind).
Granted,
> it's likely that none of them use ASan, as there's already a dependency on
> llvm-symbolizer in that case. This means we could have something like:
> 
> if options.enable_asan or options.enable_msan or ...:
>   import test_env_asan
> 
> But I'm not super psyched about this solution.

Here's an idea: runtest.py could have a --env_setup_script parameter that it'd
run before running tests, and then the chromium bot config could pass in
--env_setup_script=src/testing/test_env.py . Then runtest.py wouldn't depend on
src directly, and the bot configs already know about both build and src.

Powered by Google App Engine
This is Rietveld 408576698