New issue
Advanced search Search tips

Issue 689245 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Data race in base::StatisticsRecorder::FindHistogram

Project Member Reported by ClusterFuzz, Feb 6 2017

Issue description

Labels: Test-Predator-Wrong M-58
Owner: bcwh...@chromium.org
Status: Assigned (was: Untriaged)
Through code search on file statistics_recorder.cc, suspected CL
https://chromium.googlesource.com/chromium/src/+/9075a09693ec32f975a12dd8207eab03a5cf48f9
bcwhite@, could you please take a look?

Project Member

Comment 2 by bugdroid1@chromium.org, Feb 9 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/471e0a3d9789243b6db151544c8ca9da17b29f36

commit 471e0a3d9789243b6db151544c8ca9da17b29f36
Author: bcwhite <bcwhite@chromium.org>
Date: Thu Feb 09 21:10:53 2017

Add acquire/release to global variable.

In the case of subprocesses that create this after general
initialization, it's possible for the thread that is doing the
import is different than and created before the thread that
creates the GlobalHistogramAllocator.

Using release-store ensures that ctor initialization is complete
before the global pointer is written while acquire-load ensures
that all accesses to it come after the read of the global pointer.

BUG= 689245 

Review-Url: https://codereview.chromium.org/2684993008
Cr-Commit-Position: refs/heads/master@{#449407}

[modify] https://crrev.com/471e0a3d9789243b6db151544c8ca9da17b29f36/base/metrics/persistent_histogram_allocator.cc

Status: Fixed (was: Assigned)
Labels: Merge-Request-57
Project Member

Comment 5 by sheriffbot@chromium.org, Feb 16 2017

Labels: -Merge-Request-57 Hotlist-Merge-Approved Merge-Approved-57
Your change meets the bar and is auto-approved for M57. Please go ahead and merge the CL to branch 2987 manually. Please contact milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), ketakid@(cros), govind@(desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 6 by bugdroid1@chromium.org, Feb 16 2017

Labels: -merge-approved-57 merge-merged-2987
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3ce527bfb13aed34dacc1f2605222b2b01bd0347

commit 3ce527bfb13aed34dacc1f2605222b2b01bd0347
Author: Brian White <bcwhite@chromium.org>
Date: Thu Feb 16 19:47:20 2017

Add acquire/release to global variable.

In the case of subprocesses that create this after general
initialization, it's possible for the thread that is doing the
import is different than and created before the thread that
creates the GlobalHistogramAllocator.

Using release-store ensures that ctor initialization is complete
before the global pointer is written while acquire-load ensures
that all accesses to it come after the read of the global pointer.

BUG= 689245 

Review-Url: https://codereview.chromium.org/2684993008
Cr-Commit-Position: refs/heads/master@{#449407}
(cherry picked from commit 471e0a3d9789243b6db151544c8ca9da17b29f36)

Review-Url: https://codereview.chromium.org/2699953002 .
Cr-Commit-Position: refs/branch-heads/2987@{#554}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[modify] https://crrev.com/3ce527bfb13aed34dacc1f2605222b2b01bd0347/base/metrics/persistent_histogram_allocator.cc

Sign in to add a comment