New issue
Advanced search Search tips

Issue 834663 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 834146
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Variable race condition in Vaapi VDA

Project Member Reported by hiroh@chromium.org, Apr 19 2018

Issue description

A Variable must be read and written by a specified thread.
Otherwise, it must be guarded by lock.
Vaapi breaks this rule about some variable. It would cause a race condition.
For example, awaiting_va_surfaces_recycle_ is written by decoder_thread_ and VDA client thread.
https://cs.chromium.org/chromium/src/media/gpu/vaapi/vaapi_video_decode_accelerator.cc?q=vaapi_video_decode_accelerator.cc&sq=package:chromium&dr&l=372
https://cs.chromium.org/chromium/src/media/gpu/vaapi/vaapi_video_decode_accelerator.cc?q=vaapi_video_decode_accelerator.cc&sq=package:chromium&dr&l=435
 
Components: OS>Kernel>Video
Labels: videoshortlist

Comment 2 by hiroh@chromium.org, Apr 19 2018

mcasas@, could you take a look. The race condition in the above example was introduced by your change. https://chromium-review.googlesource.com/c/chromium/src/+/973684

There may be some other race conditions. We need to fix them if there.

Thanks in advance.
M67 branched a week ago. Does the revert have conflict? If not, we should revert and merge it to m67.

Comment 4 by mcasas@chromium.org, Apr 19 2018

Mergedinto: 834146
Status: Duplicate (was: Assigned)

Comment 5 by mcasas@chromium.org, Apr 19 2018

Components: Internals>GPU>Video
Summary: Variable race condition in Vaapi VDA (was: Variable race condition in Vaapi VEA)

Sign in to add a comment