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

Issue 2846593005: Relanding #2: Fixing crash that can occur if signal is modified while firing. (Closed)

Created:
3 years, 8 months ago by Taylor Brandstetter
Modified:
3 years, 7 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Relanding #2: Fixing crash that can occur if signal is modified while firing. The crash occurs if a slot causes the very next slot in iteration order to be disconnected. Relanding after fixing a race condition that this CL revealed. Previously the race resulted in an invalidated iterator, but now it will result in the iterator being modified, so TSan catches it. BUG=webrtc:7527 Review-Url: https://codereview.webrtc.org/2846593005 Cr-Commit-Position: refs/heads/master@{#18124} Committed: https://chromium.googlesource.com/external/webrtc/+/4483af35e91e811042b5fd13a1b94aed8c835930

Patch Set 1 #

Patch Set 2 : Fixing silly mistakes #

Patch Set 3 : Merge with master, and improve test slightly. #

Patch Set 4 : Removing a signal that was being accessed unsafely from two threads, and wasn't needed in the first… #

Patch Set 5 : Fixing issue with disconnect_all, adding test, simplifying code a bit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -22 lines) Patch
M webrtc/base/asyncinvoker.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/base/asyncinvoker.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/base/sigslot.h View 1 2 3 4 7 chunks +37 lines, -16 lines 0 comments Download
M webrtc/base/sigslot_unittest.cc View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
Taylor Brandstetter
PTAL. Another sigslot issue Noah found for us.
3 years, 8 months ago (2017-04-27 04:16:07 UTC) #2
pthatcher1
lgtm
3 years, 7 months ago (2017-04-29 00:14:31 UTC) #3
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/2846593005/40001
3 years, 7 months ago (2017-04-29 08:03:43 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_msan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_msan/builds/20057)
3 years, 7 months ago (2017-04-29 08:26:33 UTC) #8
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/2846593005/40001
3 years, 7 months ago (2017-04-29 08:32:02 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/external/webrtc/+/961c2adf1ea25bcc40ad64cae1ac2ea258e26de2
3 years, 7 months ago (2017-04-29 08:39:58 UTC) #13
Taylor Brandstetter
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.webrtc.org/2847243006/ by deadbeef@webrtc.org. ...
3 years, 7 months ago (2017-04-29 19:00:07 UTC) #14
Taylor Brandstetter
Can you take another look? This revealed a TSan race for a signal that ended ...
3 years, 7 months ago (2017-05-01 22:44:00 UTC) #20
pthatcher1
lgtm
3 years, 7 months ago (2017-05-01 23:44:16 UTC) #21
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/2846593005/60001
3 years, 7 months ago (2017-05-02 04:57:06 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/external/webrtc/+/fc1af0155718d029a97fddfd64422e9e6e509809
3 years, 7 months ago (2017-05-02 05:24:28 UTC) #26
perkj_webrtc
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.webrtc.org/2859443002/ by perkj@webrtc.org. ...
3 years, 7 months ago (2017-05-02 13:14:44 UTC) #27
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/2846593005/80001
3 years, 7 months ago (2017-05-12 15:42:07 UTC) #35
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 15:44:44 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/external/webrtc/+/4483af35e91e811042b5fd13a...

Powered by Google App Engine
This is Rietveld 408576698