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

Issue 1303173011: win: Implement and use ScopedProcessSuspend (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : --no-find-copies #

Total comments: 14

Patch Set 3 : fixes #

Patch Set 4 : . #

Total comments: 4

Patch Set 5 : dword -1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -3 lines) Patch
M handler/win/crash_report_exception_handler.cc View 2 chunks +2 lines, -1 line 0 comments Download
M tools/generate_dump.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M util/util.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M util/util_test.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A util/win/scoped_process_suspend.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A util/win/scoped_process_suspend.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A util/win/scoped_process_suspend_test.cc View 1 2 3 4 1 chunk +106 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scottmg
5 years, 3 months ago (2015-09-03 21:48:57 UTC) #1
Mark Mentovai
https://codereview.chromium.org/1303173011/diff/20001/util/win/scoped_process_suspend.cc File util/win/scoped_process_suspend.cc (right): https://codereview.chromium.org/1303173011/diff/20001/util/win/scoped_process_suspend.cc#newcode26 util/win/scoped_process_suspend.cc:26: GetProcAddress(GetModuleHandle(L"ntdll.dll"), "NtSuspendProcess")); What happens if this process suspends a ...
5 years, 3 months ago (2015-09-04 15:57:51 UTC) #2
scottmg
https://codereview.chromium.org/1303173011/diff/20001/util/win/scoped_process_suspend.cc File util/win/scoped_process_suspend.cc (right): https://codereview.chromium.org/1303173011/diff/20001/util/win/scoped_process_suspend.cc#newcode26 util/win/scoped_process_suspend.cc:26: GetProcAddress(GetModuleHandle(L"ntdll.dll"), "NtSuspendProcess")); On 2015/09/04 15:57:50, Mark Mentovai - August ...
5 years, 3 months ago (2015-09-04 22:05:39 UTC) #3
Mark Mentovai
https://codereview.chromium.org/1303173011/diff/60001/util/win/scoped_process_suspend.cc File util/win/scoped_process_suspend.cc (right): https://codereview.chromium.org/1303173011/diff/60001/util/win/scoped_process_suspend.cc#newcode29 util/win/scoped_process_suspend.cc:29: LOG(ERROR) << "NtSuspendProcess, ntstatus=" << status; I’ve probably said ...
5 years, 3 months ago (2015-09-05 00:15:44 UTC) #4
scottmg
https://codereview.chromium.org/1303173011/diff/60001/util/win/scoped_process_suspend.cc File util/win/scoped_process_suspend.cc (right): https://codereview.chromium.org/1303173011/diff/60001/util/win/scoped_process_suspend.cc#newcode29 util/win/scoped_process_suspend.cc:29: LOG(ERROR) << "NtSuspendProcess, ntstatus=" << status; On 2015/09/05 00:15:43, ...
5 years, 3 months ago (2015-09-08 16:06:43 UTC) #5
Mark Mentovai
LGTM
5 years, 3 months ago (2015-09-08 16:10:40 UTC) #6
scottmg
Committed patchset #5 (id:80001) manually as 5111a1823f7e464de8a83f5a96eedfb637cf8ade (presubmit successful).
5 years, 3 months ago (2015-09-08 17:09:36 UTC) #7
Mark Mentovai
Hmm, one thing… process_reader_win.cc’s FillThreadContextAndSuspendCount() gets the suspend count, and with this giant ScopedProcessSuspend around ...
5 years, 3 months ago (2015-09-08 20:42:38 UTC) #8
scottmg
5 years, 3 months ago (2015-09-09 00:13:46 UTC) #9
Message was sent while issue was closed.
On 2015/09/08 20:42:38, Mark Mentovai - August is over wrote:
> Hmm, one thing…
> 
> process_reader_win.cc’s FillThreadContextAndSuspendCount() gets the suspend
> count, and with this giant ScopedProcessSuspend around everything, those
suspend
> counts are now going to show up off-by-one.
> 
> We should fix this.

Ah, that's true. https://codereview.chromium.org/1326443007/

Powered by Google App Engine
This is Rietveld 408576698