New issue
Advanced search Search tips

Issue 881211 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 11
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug
Flaky-Test: HeadlessBrowserTest.CreateAndDoNotDestroyWebContents



Sign in to add a comment

HeadlessBrowserTest.CreateAndDoNotDestroyWebContents is flaky

Project Member Reported by Findit, Sep 6

Issue description

Owner: moh...@chromium.org
Status: Assigned (was: Untriaged)
Since findit blames https://chromium-review.googlesource.com/c/chromium/src/+/1180658 to have caused this I'm assigning the bug to mohsen@chromium.org 
Labels: -Sheriff-Chromium
Status: Started (was: Assigned)
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 1

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

commit 7221e1a33a56ddaf67098a0065b961af3c567e00
Author: Mohsen Izadi <mohsen@chromium.org>
Date: Mon Oct 01 16:32:39 2018

Fix flakiness in HeadlessBrowserTest

In HeadlessContentMainDelegate::RunProcess(), if the headless browser
instance is destroyed before browser runner is shut down, GPU clients
might end up accessing the destroyed object in the meantime. An example
is when a client tries to establish a GPU channel ending up accessing
destroyed HeadlessBrowserImpl::options in order to instantiate
viz::GpuHostImpl. This CL changes the ordering to fix the race
condition.

BUG= 881211 
TEST=headless_browsertests --gtest_filter=HeadlessBrowserTest.*

Change-Id: I2518eeefcc1e446a59d680fa78eab88e26765404
Reviewed-on: https://chromium-review.googlesource.com/1251331
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Mohsen Izadi <mohsen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595465}
[modify] https://crrev.com/7221e1a33a56ddaf67098a0065b961af3c567e00/headless/lib/headless_content_main_delegate.cc

Status: Fixed (was: Started)
The flake has not happened since r595465 landed. Marking as fixed.

Sign in to add a comment