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

Issue 2799013002: Monitor crashpad_handler for crashes [sometimes] (Closed)

Created:
3 years, 8 months ago by Mark Mentovai
Modified:
3 years, 8 months ago
CC:
chromium-reviews, sadrul, grt+watch_chromium.org, caitkp+watch_chromium.org, jam, pennymac+watch_chromium.org, darin-cc_chromium.org, wfh+watch_chromium.org, kalyank, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Monitor crashpad_handler for crashes [sometimes] When Crashpad self-monitoring is enabled, crashes in crashpad_handler will be written to the crash report database and uploaded according to the user's preference. Self-monitoring dedicates an additional crashpad_handler process to serve as the handler for the original instance. Having a dedicated process is somewhat expensive, so self-monitoring is not enabled at all times. An existing mechanism, the "fallback crash handler," is already in place on Windows. The fallback crash handler does not create any additional processes until a crashpad_handler crash occurs. The fallback handler remains effective in cases where Crashpad's own self-monitoring is disabled. The fallback handler and Crashpad self-monitoring have different attributes, so there are no plans to move Windows entirely onto Crashpad self-monitoring. For branded Chrome, the dev channel gets Crashpad self-monitoring in 25% of browser starts, and the beta channel gets it in 10% of browser starts. On macOS, the stable channel gets self-monitoring in 1% of browser starts, and the canary and Chromium builds get it all the time. On Windows, the Chrome stable channel never gets self-monitoring because the fallback crash handler is sufficient, and the canary and Chromium builds get it 50% of the time, allowing for some use of the fallback crash handler in those cases. While reports will be collected for crashes that occur while Crashpad is attempting to upload another report, it's unlikley that these reports will be uploaded automatically under the current one-attempt-per-hour, no-retry rate limiting strategy. See https://crashpad.chromium.org/bug/23. BUG=crashpad:143 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Review-Url: https://codereview.chromium.org/2799013002 Cr-Commit-Position: refs/heads/master@{#463352} Committed: https://chromium.googlesource.com/chromium/src/+/dde55ab75d6af6c19e99372ef7678c38915be7f6

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address review feedback (grt) #

Total comments: 5

Patch Set 3 : Address review feedback (scottmg) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -47 lines) Patch
M chrome/app/chrome_crash_reporter_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client_mac.mm View 1 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.cc View 1 3 chunks +34 lines, -6 lines 0 comments Download
M chrome/app/chrome_exe_main_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/channel_info_win.cc View 1 3 chunks +3 lines, -18 lines 0 comments Download
M chrome/install_static/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/install_static/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/install_static/install_util.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/install_static/install_util.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome_elf/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/crash/content/app/crash_reporter_client.h View 1 chunk +16 lines, -0 lines 0 comments Download
M components/crash/content/app/crash_reporter_client.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/crash/content/app/crashpad_mac.mm View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M components/crash/content/app/crashpad_win.cc View 1 2 2 chunks +28 lines, -4 lines 0 comments Download
M components/crash/content/app/run_as_crashpad_handler_win.h View 1 chunk +7 lines, -2 lines 0 comments Download
M components/crash/content/app/run_as_crashpad_handler_win.cc View 1 2 1 chunk +31 lines, -10 lines 0 comments Download
M components/version_info/BUILD.gn View 1 chunk +10 lines, -0 lines 0 comments Download
A components/version_info/channel.h View 1 chunk +15 lines, -0 lines 0 comments Download
M components/version_info/version_info.h View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
Mark Mentovai
Who’s who: grt: chrome/app, chrome/install_static scottmg: components/crash thestig: chrome/common, components/version_info robertshield: chrome_elf Much of this ...
3 years, 8 months ago (2017-04-05 18:47:39 UTC) #7
robertshield
chrome_elf/BUILD.gn rubber stamp lgtm
3 years, 8 months ago (2017-04-05 20:27:41 UTC) #8
grt (UTC plus 2)
lgtm, although i think moving GetChannel out of InstallDetails would be a good thing. https://codereview.chromium.org/2799013002/diff/1/chrome/install_static/install_details.cc ...
3 years, 8 months ago (2017-04-06 10:12:23 UTC) #9
Mark Mentovai
Thanks, Greg, I agree that this works out better too. I also switched other direct ...
3 years, 8 months ago (2017-04-06 15:53:19 UTC) #12
Lei Zhang
lgtm
3 years, 8 months ago (2017-04-06 20:42:09 UTC) #15
scottmg
components/crash lgtm, sorry for the delay. https://codereview.chromium.org/2799013002/diff/20001/components/crash/content/app/crashpad_win.cc File components/crash/content/app/crashpad_win.cc (right): https://codereview.chromium.org/2799013002/diff/20001/components/crash/content/app/crashpad_win.cc#newcode130 components/crash/content/app/crashpad_win.cc:130: // that minidumps ...
3 years, 8 months ago (2017-04-10 17:09:31 UTC) #16
Mark Mentovai
Thanks, welcome back! Updated. https://codereview.chromium.org/2799013002/diff/20001/components/crash/content/app/crashpad_win.cc File components/crash/content/app/crashpad_win.cc (right): https://codereview.chromium.org/2799013002/diff/20001/components/crash/content/app/crashpad_win.cc#newcode130 components/crash/content/app/crashpad_win.cc:130: // that minidumps produced by ...
3 years, 8 months ago (2017-04-10 17:19:02 UTC) #17
scottmg
https://codereview.chromium.org/2799013002/diff/20001/components/crash/content/app/crashpad_win.cc File components/crash/content/app/crashpad_win.cc (right): https://codereview.chromium.org/2799013002/diff/20001/components/crash/content/app/crashpad_win.cc#newcode130 components/crash/content/app/crashpad_win.cc:130: // that minidumps produced by generate_dump will contain these ...
3 years, 8 months ago (2017-04-10 18:05:45 UTC) #20
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/2799013002/40001
3 years, 8 months ago (2017-04-10 18:09:41 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/dde55ab75d6af6c19e99372ef7678c38915be7f6
3 years, 8 months ago (2017-04-10 19:15:59 UTC) #27
grt (UTC plus 2)
3 years, 8 months ago (2017-04-19 14:08:37 UTC) #28
Message was sent while issue was closed.
lgtm, thanks.

Powered by Google App Engine
This is Rietveld 408576698