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

Issue 1432563003: win: crashpad_handler should create its own pipe name in ephemeral mode (Closed)

Created:
5 years, 1 month ago by Mark Mentovai
Modified:
5 years, 1 month ago
Reviewers:
scottmg
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: crashpad_handler should create its own pipe name in ephemeral mode Allowing the client to create its own pipe name string caused a race between client and server. Instead, in this mode, the server now creates the pipe name along with a pipe, and returns it to its client via a --handshake-handle. This guarantees that by the time the client gets the pipe name, the server has already created it. Ephemeral mode is now implied by --handshake-handle. The --persistent option is gone. --persistent mode is enabled when using --pipe-name. BUG=crashpad:69 R=scottmg@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/3e988865adb034df4b61aabd6e3683f68ef0a981

Patch Set 1 #

Patch Set 2 : Self-review #

Patch Set 3 : It's futile to pick and choose errors, retry on all #

Total comments: 6

Patch Set 4 : Less troublesome truncation #

Patch Set 5 : Address review feedback #

Patch Set 6 : Rebase #

Patch Set 7 : --help #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -108 lines) Patch
M client/crashpad_client_win.cc View 1 2 3 4 5 5 chunks +46 lines, -18 lines 0 comments Download
M handler/crashpad_handler.ad View 1 2 3 4 5 2 chunks +24 lines, -14 lines 0 comments Download
M handler/main.cc View 1 2 3 4 5 6 8 chunks +52 lines, -12 lines 0 comments Download
M handler/win/crashy_test_program.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M snapshot/win/exception_snapshot_win_test.cc View 6 chunks +7 lines, -10 lines 0 comments Download
M util/win/command_line_test.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M util/win/exception_handler_server.h View 3 chunks +22 lines, -4 lines 0 comments Download
M util/win/exception_handler_server.cc View 1 2 3 4 4 chunks +77 lines, -18 lines 0 comments Download
M util/win/exception_handler_server_test.cc View 6 chunks +24 lines, -22 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Mark Mentovai
5 years, 1 month ago (2015-11-03 20:19:36 UTC) #2
scottmg
lgtm https://codereview.chromium.org/1432563003/diff/40001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1432563003/diff/40001/client/crashpad_client_win.cc#newcode141 client/crashpad_client_win.cc:141: ScopedFileHandle pipe_read_owner(pipe_read); SetHandleInformation(pipe_read, HANDLE_FLAG_INHERIT, 0) so the read ...
5 years, 1 month ago (2015-11-03 20:52:07 UTC) #3
Mark Mentovai
https://codereview.chromium.org/1432563003/diff/40001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1432563003/diff/40001/client/crashpad_client_win.cc#newcode141 client/crashpad_client_win.cc:141: ScopedFileHandle pipe_read_owner(pipe_read); scottmg wrote: > SetHandleInformation(pipe_read, HANDLE_FLAG_INHERIT, 0) so ...
5 years, 1 month ago (2015-11-03 23:58:48 UTC) #4
scottmg
lgtm
5 years, 1 month ago (2015-11-04 00:03:12 UTC) #5
Mark Mentovai
5 years, 1 month ago (2015-11-04 00:26:25 UTC) #6
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
3e988865adb034df4b61aabd6e3683f68ef0a981 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698