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

Issue 114603009: posix LaunchProcess: Don't use STL iterators after fork. (Closed)

Created:
6 years, 11 months ago by mattm
Modified:
6 years, 11 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

posix LaunchProcess: Don't use STL iterators after fork. Fixes some deadlocks on linux debug caused by STL debug iterators using locks. BUG=331459 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243401

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -20 lines) Patch
M base/posix/file_descriptor_shuffle.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M base/process/launch_posix.cc View 6 chunks +19 lines, -16 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
mattm
6 years, 11 months ago (2014-01-06 22:35:41 UTC) #1
willchan no longer on Chromium
This is the right overall thing to do, but I don't have time to do ...
6 years, 11 months ago (2014-01-07 00:55:50 UTC) #2
Paweł Hajdan Jr.
LGTM, thanks!
6 years, 11 months ago (2014-01-07 10:51:09 UTC) #3
willchan no longer on Chromium
LGTM rubberstamp then, thanks! On Tue, Jan 7, 2014 at 2:51 AM, <phajdan.jr@chromium.org> wrote: > ...
6 years, 11 months ago (2014-01-07 15:43:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/114603009/1
6 years, 11 months ago (2014-01-07 18:37:44 UTC) #5
commit-bot: I haz the power
Change committed as 243401
6 years, 11 months ago (2014-01-07 22:06:02 UTC) #6
Elliot Glaysher
https://codereview.chromium.org/114603009/diff/1/base/process/launch_posix.cc File base/process/launch_posix.cc (right): https://codereview.chromium.org/114603009/diff/1/base/process/launch_posix.cc#newcode550 base/process/launch_posix.cc:550: std::copy(fd_shuffle1.begin(), fd_shuffle1.end(), So maybe I'm wrong here, but isn't ...
6 years, 11 months ago (2014-01-07 22:33:13 UTC) #7
mattm
6 years, 11 months ago (2014-01-07 22:43:40 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/114603009/diff/1/base/process/launch_posix.cc
File base/process/launch_posix.cc (right):

https://codereview.chromium.org/114603009/diff/1/base/process/launch_posix.cc...
base/process/launch_posix.cc:550: std::copy(fd_shuffle1.begin(),
fd_shuffle1.end(),
On 2014/01/07 22:33:14, Elliot Glaysher wrote:
> So maybe I'm wrong here, but isn't this using stl iterators in a block that
says
> above that it can't use STL iterators?

Oh, yeah. I missed this one and I must not have been using a test that hits
this. Good catch, I'll make a followup cl, thanks!

Powered by Google App Engine
This is Rietveld 408576698