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

Issue 1126413008: win: Implement exception snapshot (Closed)

Created:
5 years, 7 months ago by scottmg
Modified:
5 years, 4 months ago
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: Implement exception snapshot Refactor some of the NT internals helpers and cpu_context to share between the thread and exception snapshot code. Add test that runs crashing child and validates the exception in the snapshot. R=mark@chromium.org, cpu@chromium.org, rsesek@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/a691448ffbb8db8576f01b424b2139a6ff21d240

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : separate nt_internals #

Patch Set 4 : thread id\ #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 8

Patch Set 8 : rebase #

Patch Set 9 : cpucontexttest #

Patch Set 10 : test file #

Patch Set 11 : . #

Patch Set 12 : start adding test #

Patch Set 13 : . #

Patch Set 14 : wip #

Patch Set 15 : . #

Patch Set 16 : rebase #

Patch Set 17 : . #

Patch Set 18 : test #

Patch Set 19 : tidy #

Total comments: 41

Patch Set 20 : fixes #

Total comments: 13

Patch Set 21 : fixes2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+875 lines, -101 lines) Patch
M client/crashpad_client_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -2 lines 0 comments Download
M client/crashpad_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +7 lines, -1 line 0 comments Download
M client/crashpad_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +7 lines, -1 line 0 comments Download
M compat/non_win/dbghelp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +10 lines, -0 lines 0 comments Download
M snapshot/exception_snapshot.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +10 lines, -0 lines 0 comments Download
M snapshot/mac/process_snapshot_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M snapshot/snapshot.gyp View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M snapshot/snapshot_test.gyp View 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 2 chunks +3 lines, -0 lines 0 comments Download
A snapshot/win/cpu_context_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +47 lines, -0 lines 0 comments Download
A snapshot/win/cpu_context_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +77 lines, -0 lines 0 comments Download
A snapshot/win/cpu_context_win_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +54 lines, -0 lines 0 comments Download
A snapshot/win/exception_snapshot_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +84 lines, -0 lines 0 comments Download
A snapshot/win/exception_snapshot_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +144 lines, -0 lines 0 comments Download
A snapshot/win/exception_snapshot_win_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +243 lines, -0 lines 0 comments Download
M snapshot/win/process_reader_win.cc View 1 2 2 chunks +1 line, -43 lines 0 comments Download
M snapshot/win/process_snapshot_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +17 lines, -1 line 0 comments Download
M snapshot/win/process_snapshot_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +19 lines, -3 lines 0 comments Download
M snapshot/win/thread_snapshot_win.cc View 1 2 1 chunk +1 line, -49 lines 0 comments Download
M util/util.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A util/win/nt_internals.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A util/win/nt_internals.cc View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
scottmg
5 years, 7 months ago (2015-05-14 00:23:39 UTC) #3
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/1126413008/diff/140001/snapshot/win/exception_snapshot_win.cc File snapshot/win/exception_snapshot_win.cc (right): https://codereview.chromium.org/1126413008/diff/140001/snapshot/win/exception_snapshot_win.cc#newcode26 snapshot/win/exception_snapshot_win.cc:26: I must mention this somewhere but unrelated to this ...
5 years, 7 months ago (2015-05-15 01:24:13 UTC) #4
scottmg
Sorry for the ridiculously long delay on this patch. (With this we should just about ...
5 years, 4 months ago (2015-08-18 05:08:40 UTC) #5
Mark Mentovai
https://codereview.chromium.org/1126413008/diff/370001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1126413008/diff/370001/client/crashpad_client_win.cc#newcode59 client/crashpad_client_win.cc:59: SleepEx(false, INFINITE); I should have caught this last week. ...
5 years, 4 months ago (2015-08-18 16:17:20 UTC) #6
scottmg
Thanks! https://codereview.chromium.org/1126413008/diff/370001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1126413008/diff/370001/client/crashpad_client_win.cc#newcode59 client/crashpad_client_win.cc:59: SleepEx(false, INFINITE); On 2015/08/18 16:17:19, Mark Mentovai - ...
5 years, 4 months ago (2015-08-18 16:56:00 UTC) #7
Mark Mentovai
LGTM https://codereview.chromium.org/1126413008/diff/370001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1126413008/diff/370001/snapshot/win/process_snapshot_win.cc#newcode60 snapshot/win/process_snapshot_win.cc:60: DCHECK(!exception_); scottmg wrote: > On 2015/08/18 16:17:20, Mark ...
5 years, 4 months ago (2015-08-18 17:52:13 UTC) #8
scottmg
https://codereview.chromium.org/1126413008/diff/370001/snapshot/win/process_snapshot_win.cc File snapshot/win/process_snapshot_win.cc (right): https://codereview.chromium.org/1126413008/diff/370001/snapshot/win/process_snapshot_win.cc#newcode60 snapshot/win/process_snapshot_win.cc:60: DCHECK(!exception_); On 2015/08/18 17:52:13, Mark Mentovai - out til ...
5 years, 4 months ago (2015-08-18 18:18:21 UTC) #9
Mark Mentovai
LGTM still stands. This is a big step forward for the Windows client.
5 years, 4 months ago (2015-08-18 19:23:49 UTC) #10
scottmg
5 years, 4 months ago (2015-08-18 19:25:31 UTC) #11
Message was sent while issue was closed.
Committed patchset #21 (id:410001) manually as
a691448ffbb8db8576f01b424b2139a6ff21d240 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698