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

Issue 2955083002: Fix deadlock in webrtc_perf_tests (Closed)

Created:
3 years, 5 months ago by ilnik
Modified:
3 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix deadlock in webrtc_perf_tests Reenable hanging tests on Mac. Deadlock happened because the following locks were grabbed by two threads at the end of a test: Thread 1: CapturedFrameForwarder::AddOrUpdateSink() locks CapturedFrameForwarder::crit_ and calls FrameGeneratorCapturer::AddOrUpdateSink() what tries to lock FrameGeneratorCapturer::lock_. Thread 2: FrameGeneratorCapturer::InsertFrame() locks FrameGeneratorCapturer::lock_ and calls CapturedFrameForwarder::OnFrame() which tries to lock CapturedFrameForwarder::crit_. So two threads are locking two same locks in different orders which may cause deadlock. BUG=webrtc:7870 Review-Url: https://codereview.webrtc.org/2955083002 Cr-Commit-Position: refs/heads/master@{#18783} Committed: https://chromium.googlesource.com/external/webrtc/+/267041c47086fc0da9ce3247a496964c924bb2d9

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M webrtc/video/full_stack_tests.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (7 generated)
sprang_webrtc
lgtm nice find
3 years, 5 months ago (2017-06-27 13:52:53 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.webrtc.org/2955083002/1
3 years, 5 months ago (2017-06-27 13:54:09 UTC) #7
commit-bot: I haz the power
3 years, 5 months ago (2017-06-27 14:21:18 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/267041c47086fc0da9ce3247a...

Powered by Google App Engine
This is Rietveld 408576698