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

Issue 2264343002: Fixing segfault caused by TurnServer. (Closed)

Created:
4 years, 4 months ago by Taylor Brandstetter
Modified:
4 years, 4 months ago
Reviewers:
pthatcher1, skvlad
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fixing segfault caused by TurnServer. TURN server sockets were being destroyed asynchronously, which could happen after the TurnServer itself (and even the VirtualSocketServer used by the sockets) were destroyed. This is fixed easily by using an AsyncInvoker (to ensure the async operation doesn't occur after its initiator is destroyed), and keeping the objects waiting for deletion in a unique_ptr vector. Committed: https://crrev.com/824f58621315a8b39193e06f960d8ff15f84fc13 Cr-Commit-Position: refs/heads/master@{#13907}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rename "pending_delete_sockets_" to "sockets_to_delete_". #

Patch Set 3 : Using rtc::Bind with method as opposed to lambda. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M webrtc/p2p/base/turnserver.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M webrtc/p2p/base/turnserver.cc View 1 2 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
pthatcher1
https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc File webrtc/p2p/base/turnserver.cc (right): https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc#newcode535 webrtc/p2p/base/turnserver.cc:535: [this] { pending_delete_sockets_.clear(); }); I think the style guide ...
4 years, 4 months ago (2016-08-23 00:36:56 UTC) #2
Taylor Brandstetter
https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc File webrtc/p2p/base/turnserver.cc (right): https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc#newcode535 webrtc/p2p/base/turnserver.cc:535: [this] { pending_delete_sockets_.clear(); }); On 2016/08/23 00:36:55, pthatcher1 wrote: ...
4 years, 4 months ago (2016-08-23 01:11:20 UTC) #3
pthatcher1
https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc File webrtc/p2p/base/turnserver.cc (right): https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc#newcode535 webrtc/p2p/base/turnserver.cc:535: [this] { pending_delete_sockets_.clear(); }); On 2016/08/23 01:11:20, Taylor Brandstetter ...
4 years, 4 months ago (2016-08-23 01:15:32 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc File webrtc/p2p/base/turnserver.cc (right): https://codereview.webrtc.org/2264343002/diff/1/webrtc/p2p/base/turnserver.cc#newcode535 webrtc/p2p/base/turnserver.cc:535: [this] { pending_delete_sockets_.clear(); }); On 2016/08/23 01:15:32, pthatcher1 wrote: ...
4 years, 4 months ago (2016-08-23 23:31:12 UTC) #5
skvlad
lgtm
4 years, 4 months ago (2016-08-24 17:18:49 UTC) #7
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/2264343002/40001
4 years, 4 months ago (2016-08-24 18:20:15 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 4 months ago (2016-08-24 20:20:44 UTC) #11
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/2264343002/40001
4 years, 4 months ago (2016-08-24 22:05:17 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-24 22:06:58 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 22:07:07 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/824f58621315a8b39193e06f960d8ff15f84fc13
Cr-Commit-Position: refs/heads/master@{#13907}

Powered by Google App Engine
This is Rietveld 408576698