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

Issue 1343783004: Work around race condition in subprocess. (Closed)

Created:
5 years, 3 months ago by Torne
Modified:
5 years, 3 months ago
Reviewers:
iannucci, M-A Ruel, pgervais
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Work around race condition in subprocess. There's a race condition in python's subprocess module, and gclient uses it heavily while multithreaded. Avoid the race by locking around calls to subprocess.Popen's constructor. Detailed explanation in the bug. BUG=531561 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=296685

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M subprocess2.py View 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
Torne
Here's a terrifying one! Hope you're a reasonable person to review? I tested this with ...
5 years, 3 months ago (2015-09-14 16:30:27 UTC) #2
iannucci
Oh wow! Maruel, pgervais, we probably have this bug in other places. I'll review on ...
5 years, 3 months ago (2015-09-14 17:03:03 UTC) #4
M-A Ruel
On 2015/09/14 17:03:03, iannucci wrote: > Oh wow! Maruel, pgervais, we probably have this bug ...
5 years, 3 months ago (2015-09-14 17:07:20 UTC) #5
iannucci
I sent a blurb to c-i-t. Hopefully we can stamp it out in other places. ...
5 years, 3 months ago (2015-09-14 17:08:36 UTC) #6
Torne
On 2015/09/14 17:07:20, M-A Ruel wrote: > On 2015/09/14 17:03:03, iannucci wrote: > > Oh ...
5 years, 3 months ago (2015-09-14 17:22:08 UTC) #7
M-A Ruel
This CL lgtm, the rest can be looked at later.
5 years, 3 months ago (2015-09-14 20:15:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1343783004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1343783004/1
5 years, 3 months ago (2015-09-15 09:54:47 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-09-15 09:57:03 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=296685

Powered by Google App Engine
This is Rietveld 408576698