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

Issue 2596463002: A simple, practically zero cost fallback crash handler for Crashpad handler process. (Closed)

Created:
4 years ago by Sigurður Ásgeirsson
Modified:
3 years, 11 months ago
Reviewers:
scottmg
CC:
chromium-reviews, jam, darin-cc_chromium.org, sadrul, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

A simple, practically zero cost fallback crash handler for Crashpad handler process. This implements a fallback crash handler launcher. The launcher will be instantiated in the Crashpad handler process, where it pre-computes a command line to be launched on crash. This will be triggered off the UEF, under some form of single-instance locking. BUG=678959 Review-Url: https://codereview.chromium.org/2596463002 Cr-Original-Original-Commit-Position: refs/heads/master@{#442596} Committed: https://chromium.googlesource.com/chromium/src/+/d4e43bb5146c7a59123ff5f3b6e853d8e8c29130 Review-Url: https://codereview.chromium.org/2596463002 Cr-Original-Commit-Position: refs/heads/master@{#442698} Committed: https://chromium.googlesource.com/chromium/src/+/f87fdaa12b09ff286d873e7a3ea459507d7adb83 Review-Url: https://codereview.chromium.org/2596463002 Cr-Commit-Position: refs/heads/master@{#442974} Committed: https://chromium.googlesource.com/chromium/src/+/21b194219385cd209294216842e192978cc2b424

Patch Set 1 #

Patch Set 2 : Launcher works, test generates sane crash reports. #

Patch Set 3 : Fix build deps, start on the crash handler itself. #

Patch Set 4 : Minimal implementation and testing of the handler, still needs to write CrashpadInfo to the generat… #

Patch Set 5 : Write dump with MDWD, add CrashpadInfo and test that Crashpad can parse it. #

Patch Set 6 : Tweak comments for moar better confusion-less reading. #

Total comments: 38

Patch Set 7 : Pass (most) crash keys as args into GenerateCrashDump. #

Patch Set 8 : Address Scott's comments. #

Patch Set 9 : Winnow CL down per Scott's request. #

Patch Set 10 : Move dependency to Win-only as per The Truth Of The Matter(tm). #

Patch Set 11 : Fix Clank comparison nit. #

Total comments: 8

Patch Set 12 : Address Scott's comments. #

Patch Set 13 : Fix signedness comparison goof. #

Patch Set 14 : Fix test flakiness by spinning a process to dump with MDWD. #

Patch Set 15 : On 64 bit systems, pointers are large - doofus. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -1 line) Patch
M components/crash/content/app/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -1 line 0 comments Download
A components/crash/content/app/fallback_crash_handler_launcher_win.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +68 lines, -0 lines 0 comments Download
A components/crash/content/app/fallback_crash_handler_launcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +131 lines, -0 lines 0 comments Download
A components/crash/content/app/fallback_crash_handler_launcher_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +152 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 59 (33 generated)
Sigurður Ásgeirsson
Hey Scott, this is just an FYI, not ready for review yet. The idea is ...
4 years ago (2016-12-20 16:17:01 UTC) #2
Sigurður Ásgeirsson
Hey Scott, this is ready for initial review, please take a look. I still need ...
3 years, 11 months ago (2017-01-06 15:36:40 UTC) #5
scottmg
I'm going to be That Guy and ask you to break this CL up. fallback_crash_handler_launcher ...
3 years, 11 months ago (2017-01-06 18:29:04 UTC) #6
Sigurður Ásgeirsson
Thanks - comments addressed, and CL winnowed down to the launcher only. PTAL? https://codereview.chromium.org/2596463002/diff/100001/components/crash/content/app/fallback_crash_handler_launcher_win.cc File ...
3 years, 11 months ago (2017-01-06 20:59:11 UTC) #7
scottmg
lgtm https://codereview.chromium.org/2596463002/diff/200001/components/crash/content/app/fallback_crash_handler_launcher_win.cc File components/crash/content/app/fallback_crash_handler_launcher_win.cc (right): https://codereview.chromium.org/2596463002/diff/200001/components/crash/content/app/fallback_crash_handler_launcher_win.cc#newcode18 components/crash/content/app/fallback_crash_handler_launcher_win.cc:18: } nit; \n before } (or remove the ...
3 years, 11 months ago (2017-01-09 21:10:56 UTC) #17
Sigurður Ásgeirsson
Thanks - committing... https://codereview.chromium.org/2596463002/diff/200001/components/crash/content/app/fallback_crash_handler_launcher_win.cc File components/crash/content/app/fallback_crash_handler_launcher_win.cc (right): https://codereview.chromium.org/2596463002/diff/200001/components/crash/content/app/fallback_crash_handler_launcher_win.cc#newcode18 components/crash/content/app/fallback_crash_handler_launcher_win.cc:18: } On 2017/01/09 21:10:55, scottmg wrote: ...
3 years, 11 months ago (2017-01-09 21:30:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2596463002/220001
3 years, 11 months ago (2017-01-09 21:32:33 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/148644)
3 years, 11 months ago (2017-01-09 22:27:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2596463002/240001
3 years, 11 months ago (2017-01-10 13:53:21 UTC) #26
commit-bot: I haz the power
Committed patchset #13 (id:240001) as https://chromium.googlesource.com/chromium/src/+/d4e43bb5146c7a59123ff5f3b6e853d8e8c29130
3 years, 11 months ago (2017-01-10 16:08:06 UTC) #29
findit-for-me
FYI: Findit identified this CL at revision 442596 as the culprit for failures in the ...
3 years, 11 months ago (2017-01-10 18:24:13 UTC) #30
scottmg
On 2017/01/10 18:24:13, findit-for-me wrote: > FYI: Findit identified this CL at revision 442596 as ...
3 years, 11 months ago (2017-01-10 18:37:15 UTC) #31
scottmg
On 2017/01/10 18:37:15, scottmg wrote: > On 2017/01/10 18:24:13, findit-for-me wrote: > > FYI: Findit ...
3 years, 11 months ago (2017-01-10 18:39:02 UTC) #32
Sigurður Ásgeirsson
It's pretty interesting that MDWD is failing in this way :/. I'm guessing this is ...
3 years, 11 months ago (2017-01-10 18:47:41 UTC) #33
Sigurður Ásgeirsson
A revert of this CL (patchset #13 id:240001) has been created in https://codereview.chromium.org/2621113002/ by siggi@chromium.org. ...
3 years, 11 months ago (2017-01-10 18:52:39 UTC) #34
Sigurður Ásgeirsson
Hey Scott, here's how I propose to fix it. This way the process getting dumped ...
3 years, 11 months ago (2017-01-10 19:56:39 UTC) #35
scottmg
lgtm
3 years, 11 months ago (2017-01-10 19:59:36 UTC) #39
Mark Mentovai
On 2017/01/10 19:56:39, Sigurður Ásgeirsson wrote: > Hey Scott, > > here's how I propose ...
3 years, 11 months ago (2017-01-10 20:01:42 UTC) #40
Sigurður Ásgeirsson
I suspect that MDWD isn't suspending the threads in the target. This is of course ...
3 years, 11 months ago (2017-01-10 20:06:25 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2596463002/260001
3 years, 11 months ago (2017-01-10 20:07:32 UTC) #44
commit-bot: I haz the power
Committed patchset #14 (id:260001) as https://chromium.googlesource.com/chromium/src/+/f87fdaa12b09ff286d873e7a3ea459507d7adb83
3 years, 11 months ago (2017-01-10 21:42:24 UTC) #47
dschuyler
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/2620213002/ by dschuyler@chromium.org. ...
3 years, 11 months ago (2017-01-11 00:27:58 UTC) #48
Sigurður Ásgeirsson
Hey Scott, turns out the Win10 failures are because on the Win10 bot, the heap ...
3 years, 11 months ago (2017-01-11 17:47:07 UTC) #50
scottmg
On 2017/01/11 17:47:07, Sigurður Ásgeirsson wrote: > Hey Scott, > > turns out the Win10 ...
3 years, 11 months ago (2017-01-11 17:50:26 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2596463002/280001
3 years, 11 months ago (2017-01-11 17:53:47 UTC) #56
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 19:15:35 UTC) #59
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/21b194219385cd209294216842e1...

Powered by Google App Engine
This is Rietveld 408576698