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

Issue 1356383002: win: Implement CRASHPAD_SIMULATE_CRASH() (Closed)

Created:
5 years, 3 months ago by scottmg
Modified:
5 years, 2 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 CRASHPAD_SIMULATE_CRASH() Windows requires the connection to the handler to do anything, so it can't really be implemented or tested without CrashpadClient and the connection machinery. R=mark@chromium.org BUG=crashpad:53 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/475ac81cce06e0ee0c9b327c8b4ee12aff17f788

Patch Set 1 #

Patch Set 2 : no-find-copies #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 25

Patch Set 5 : different approach #

Patch Set 6 : . #

Patch Set 7 : mac #

Total comments: 6

Patch Set 8 : don't include exception if Exception() == 0 #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Total comments: 8

Patch Set 13 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -102 lines) Patch
M client/client.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M client/crashpad_client.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M client/crashpad_client_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +92 lines, -10 lines 0 comments Download
M client/simulate_crash.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
A client/simulate_crash_win.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M snapshot/snapshot_test.gyp View 1 2 chunks +14 lines, -0 lines 0 comments Download
A snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M snapshot/win/exception_snapshot_win_test.cc View 1 2 3 4 5 5 chunks +140 lines, -56 lines 0 comments Download
M util/win/exception_handler_server.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M util/win/exception_handler_server.cc View 1 2 3 4 5 5 chunks +96 lines, -32 lines 0 comments Download
M util/win/registration_protocol_win.h View 1 2 3 4 2 chunks +19 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
scottmg
5 years, 3 months ago (2015-09-22 20:56:43 UTC) #5
Mark Mentovai
https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc#newcode54 client/crashpad_client_win.cc:54: if (base::subtle::Barrier_AtomicIncrement(&g_capturing_dump, 1) > 1) { Maybe it’d be ...
5 years, 3 months ago (2015-09-23 20:00:53 UTC) #6
scottmg
(I'll defer the rest of the changes until we figure out what the best approach ...
5 years, 3 months ago (2015-09-23 22:03:40 UTC) #7
Mark Mentovai
Three events sounds OK. Not amazing, but OK. This definitely shouldn’t move in-process. We’ve already ...
5 years, 3 months ago (2015-09-23 22:18:12 UTC) #8
Mark Mentovai
https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc#newcode162 client/crashpad_client_win.cc:162: EXCEPTION_POINTERS exception_pointers = {0}; P.S. On Mac, we have ...
5 years, 3 months ago (2015-09-23 22:20:39 UTC) #9
scottmg
On 2015/09/23 22:18:12, Mark Mentovai - August is over wrote: > Three events sounds OK. ...
5 years, 3 months ago (2015-09-23 22:56:53 UTC) #10
cpu_(ooo_6.6-7.5)
The current version is near stackless :) Ok, a better answer is that you need ...
5 years, 3 months ago (2015-09-23 23:22:54 UTC) #12
scottmg
On 2015/09/23 23:22:54, cpu wrote: > The current version is near stackless :) Yeah, it's ...
5 years, 3 months ago (2015-09-23 23:46:33 UTC) #13
Mark Mentovai
Sounds like we’ve got a way forward, then. SetThreadStackGuarantee() also provides an answer to my ...
5 years, 3 months ago (2015-09-24 01:42:59 UTC) #14
scottmg
https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc#newcode54 client/crashpad_client_win.cc:54: if (base::subtle::Barrier_AtomicIncrement(&g_capturing_dump, 1) > 1) { Restructured. https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc#newcode55 client/crashpad_client_win.cc:55: ...
5 years, 3 months ago (2015-09-24 19:16:53 UTC) #15
Mark Mentovai
Not yet re-reviewed, just responding to comments. https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc#newcode161 client/crashpad_client_win.cc:161: RtlCaptureContext(&context); On ...
5 years, 3 months ago (2015-09-24 19:26:05 UTC) #16
scottmg
https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1356383002/diff/110001/client/crashpad_client_win.cc#newcode161 client/crashpad_client_win.cc:161: RtlCaptureContext(&context); On 2015/09/24 19:26:05, Mark Mentovai - August is ...
5 years, 3 months ago (2015-09-24 20:15:22 UTC) #17
Mark Mentovai
On 2015/09/24 20:15:22, scottmg wrote: > Oh, you're right. I had only run the (in-memory) ...
5 years, 3 months ago (2015-09-24 20:37:10 UTC) #18
Mark Mentovai
https://codereview.chromium.org/1356383002/diff/170001/client/crashpad_client.h File client/crashpad_client.h (right): https://codereview.chromium.org/1356383002/diff/170001/client/crashpad_client.h#newcode99 client/crashpad_client.h:99: //! \return `true` on success, `false` on failure with ...
5 years, 3 months ago (2015-09-24 20:37:29 UTC) #19
scottmg
On 2015/09/24 20:37:10, Mark Mentovai - August is over wrote: > On 2015/09/24 20:15:22, scottmg ...
5 years, 3 months ago (2015-09-24 21:16:50 UTC) #20
scottmg
https://codereview.chromium.org/1356383002/diff/170001/client/crashpad_client.h File client/crashpad_client.h (right): https://codereview.chromium.org/1356383002/diff/170001/client/crashpad_client.h#newcode99 client/crashpad_client.h:99: //! \return `true` on success, `false` on failure with ...
5 years, 3 months ago (2015-09-24 21:16:59 UTC) #21
Mark Mentovai
scottmg wrote: > On 2015/09/24 20:37:10, Mark Mentovai - August is over wrote: > > ...
5 years, 3 months ago (2015-09-24 22:43:32 UTC) #22
Mark Mentovai
LGTM https://codereview.chromium.org/1356383002/diff/260001/client/client.gyp File client/client.gyp (right): https://codereview.chromium.org/1356383002/diff/260001/client/client.gyp#newcode1 client/client.gyp:1: # Copyright 2014 The Crashpad Authors. All rights ...
5 years, 2 months ago (2015-09-25 17:21:01 UTC) #23
scottmg
https://codereview.chromium.org/1356383002/diff/260001/client/client.gyp File client/client.gyp (right): https://codereview.chromium.org/1356383002/diff/260001/client/client.gyp#newcode1 client/client.gyp:1: # Copyright 2014 The Crashpad Authors. All rights reserved. ...
5 years, 2 months ago (2015-09-25 19:41:05 UTC) #24
Mark Mentovai
LGTM https://codereview.chromium.org/1356383002/diff/260001/util/win/exception_handler_server.cc File util/win/exception_handler_server.cc (right): https://codereview.chromium.org/1356383002/diff/260001/util/win/exception_handler_server.cc#newcode121 util/win/exception_handler_server.cc:121: non_crash_dump_completed_event_( scottmg wrote: > Sorry? Do you mean ...
5 years, 2 months ago (2015-09-25 20:32:06 UTC) #25
scottmg
Committed patchset #13 (id:280001) manually as 475ac81cce06e0ee0c9b327c8b4ee12aff17f788 (presubmit successful).
5 years, 2 months ago (2015-09-25 20:45:37 UTC) #26
scottmg
https://codereview.chromium.org/1356383002/diff/260001/util/win/exception_handler_server.cc File util/win/exception_handler_server.cc (right): https://codereview.chromium.org/1356383002/diff/260001/util/win/exception_handler_server.cc#newcode121 util/win/exception_handler_server.cc:121: non_crash_dump_completed_event_( On 2015/09/25 20:32:05, Mark Mentovai - August is ...
5 years, 2 months ago (2015-09-25 20:46:48 UTC) #27
scottmg
As expected, the bots went red on the x86 dump-without-crashing. So we need to add ...
5 years, 2 months ago (2015-09-25 20:53:11 UTC) #28
Mark Mentovai
5 years, 2 months ago (2015-09-25 20:57:58 UTC) #29
Message was sent while issue was closed.
I should be able to get it landed, at least for x86, on Monday.

Powered by Google App Engine
This is Rietveld 408576698