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

Issue 2762173002: Content test launcher: Initialize globals to nullptr (Closed)

Created:
3 years, 9 months ago by johnme
Modified:
3 years, 9 months ago
Reviewers:
jam
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Content test launcher: Initialize globals to nullptr g_launcher_delegate and g_params in content/public/test/test_launcher.cc were both uninitialized. This sometimes caused the DCHECK(!g_launcher_delegate) in LaunchTests to fail, since the uninitialized memory wasn't necessarily zero! In particular, this has caused significant flakiness in content_browsertests on Lollipop Tablet Tester starting from https://build.chromium.org/p/chromium.android/builders/Lollipop%20Tablet%20Tester/builds/7234 Presumably something changed between 6019ce8862dbf9acbc4b2a6b42849657002f3b41 {#458098} and f6108b39ff0fa823e85bada2e56dbf89d4f9acad {#458116} which happens to alter the uninitialized memory. BUG=none NOTRY=true SKIPTREECHECKS=true TBR=jam@chromium.org Review-Url: https://codereview.chromium.org/2762173002 Cr-Commit-Position: refs/heads/master@{#458396} Committed: https://chromium.googlesource.com/chromium/src/+/f41cd022151ab7afea8ccbf411132984965cd6b9

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M content/public/test/test_launcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
johnme
3 years, 9 months ago (2017-03-21 13:56:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2762173002/1
3 years, 9 months ago (2017-03-21 13:56:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2762173002/1
3 years, 9 months ago (2017-03-21 14:01:44 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/f41cd022151ab7afea8ccbf411132984965cd6b9
3 years, 9 months ago (2017-03-21 14:06:11 UTC) #11
johnme
3 years, 9 months ago (2017-03-21 14:16:28 UTC) #12
Message was sent while issue was closed.
In hindsight this shouldn't make a difference, as these variables have static
storage duration, so should theoretically already be getting zero-initialized.

But I can't see any other explanation for the following DCHECK failures:
[FATAL:test_launcher.cc(487)] Check failed: !g_launcher_delegate.

Since g_launcher_delegate is only set by LaunchTests, which is only called from
main, and it seems unlikely that main is being called multiple times.

Powered by Google App Engine
This is Rietveld 408576698