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

Issue 545943004: Protect access Pipeline::renderer_ with a lock. (Closed)

Created:
6 years, 3 months ago by scherkus (not reviewing)
Modified:
6 years, 3 months ago
Reviewers:
xhwang, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Protect access to Pipeline::renderer_ with a lock. During teardown it's possible to race calling Renderer::GetMediaTime() on the main thread with ~Renderer() on the media thread. This was introduced in be9da705e341863169faeff532c24c568fad2852 by moving the TimeDeltaInterpolator (which used to never get destroyed) into Renderer (which does get destroyed during error/stop). BUG=411320 Committed: https://crrev.com/d3b784f65d7ff055b8e339ee607ebb59d6e692f1 Cr-Commit-Position: refs/heads/master@{#293577}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M media/base/pipeline.cc View 3 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
scherkus (not reviewing)
I believe this works but I am afraid of running into deadlocks :\ Haven't ran ...
6 years, 3 months ago (2014-09-05 17:28:13 UTC) #2
xhwang
On 2014/09/05 17:28:13, scherkus wrote: > I believe this works but I am afraid of ...
6 years, 3 months ago (2014-09-05 18:09:01 UTC) #3
scherkus (not reviewing)
On 2014/09/05 18:09:01, xhwang wrote: > On 2014/09/05 17:28:13, scherkus wrote: > > I believe ...
6 years, 3 months ago (2014-09-05 18:13:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/545943004/1
6 years, 3 months ago (2014-09-05 18:15:21 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/2532)
6 years, 3 months ago (2014-09-05 19:10:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/545943004/1
6 years, 3 months ago (2014-09-05 19:23:26 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as 3ca727ccbd11817dbbc55af8b68ee9d5b7d5f212
6 years, 3 months ago (2014-09-05 21:01:09 UTC) #11
Nico
This causes deadlocks: http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Tests%20%28TSan%20v2%29%281%29/builds/13603/steps/media_unittests/logs/BasicPlayback_VP8_WebVTT_WebM WARNING: ThreadSanitizer: lock-order-inversion (potential deadlock) (pid=13672) Cycle in lock order graph: ...
6 years, 3 months ago (2014-09-08 20:28:10 UTC) #12
Nico
The bug 403s for me. How serious is the bug this fixes? More serious than ...
6 years, 3 months ago (2014-09-08 21:02:23 UTC) #13
DaleCurtis
Added you to the bug. scherkus: What do you want to do?
6 years, 3 months ago (2014-09-08 21:04:54 UTC) #15
scherkus (not reviewing)
On 2014/09/08 21:04:54, DaleCurtis wrote: > Added you to the bug. scherkus: What do you ...
6 years, 3 months ago (2014-09-09 00:49:08 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:41:27 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d3b784f65d7ff055b8e339ee607ebb59d6e692f1
Cr-Commit-Position: refs/heads/master@{#293577}

Powered by Google App Engine
This is Rietveld 408576698