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

Issue 1009583004: Add UMA histograms and logging for bad IPC message handling (Closed)

Created:
5 years, 9 months ago by James Cook
Modified:
5 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, nasko+codewatch_chromium.org, sievers+watch_chromium.org, yukishiino+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, creis+watch_chromium.org, extensions-reviews_chromium.org, penghuang+watch_chromium.org, nhiroki, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, piman+watch_chromium.org, michaeln, serviceworker-reviews, kinuko+serviceworker, horo+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA histograms and logging for bad IPC message handling Many different places in the Chrome codebase handle unexpected IPC data by killing the renderer. This can result in hard-to-debug sad tab pages. Some, but not all, of these locations log an error; others record UMA user actions. This CL fixes most sites to both log and record metrics. It also switches the metrics to be histograms instead of user actions because we don't need the extra timestamp data from user actions and most of these sorts of metrics live in histograms. BUG=462687 TEST=unit_tests Committed: https://crrev.com/da2505817c8cac8331a0fcab1902e71f3c2b7daf Cr-Commit-Position: refs/heads/master@{#321598}

Patch Set 1 #

Total comments: 1

Patch Set 2 : one histogram per module #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : fix mac #

Total comments: 15

Patch Set 5 : really fix mac #

Patch Set 6 : review 1 #

Total comments: 6

Patch Set 7 : review 2 #

Patch Set 8 : actions.xml claims to be pretty printed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -50 lines) Patch
A content/browser/bad_message.h View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A content/browser/bad_message.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 5 chunks +9 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 6 chunks +8 lines, -11 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A extensions/browser/bad_message.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A extensions/browser/bad_message.cc View 1 1 chunk +24 lines, -0 lines 0 comments Download
M extensions/browser/blob_holder.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M extensions/browser/extension_host.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M extensions/browser/guest_view/extension_options/extension_options_guest.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download
M extensions/browser/guest_view/extension_view/extension_view_guest.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M extensions/extensions.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 9 chunks +56 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
James Cook
add file
5 years, 9 months ago (2015-03-13 23:38:25 UTC) #1
Charlie Reis
Interesting. John, can you think of a way to handle the enum for the histogram? ...
5 years, 9 months ago (2015-03-13 23:41:49 UTC) #3
James Cook
Charlie, please take a look. This splits the histogram into two, which allows the content ...
5 years, 9 months ago (2015-03-18 20:31:08 UTC) #5
Charlie Reis
I like it. A few comments on things to clarify, but I think this should ...
5 years, 9 months ago (2015-03-18 21:37:51 UTC) #7
James Cook
Charlie, PTAL. https://codereview.chromium.org/1009583004/diff/100001/content/browser/bad_message.h File content/browser/bad_message.h (right): https://codereview.chromium.org/1009583004/diff/100001/content/browser/bad_message.h#newcode16 content/browser/bad_message.h:16: // Content embedders should implement their own ...
5 years, 9 months ago (2015-03-18 22:19:44 UTC) #8
Charlie Reis
Thanks! LGTM with nits. You might ping John for his opinion before adding him as ...
5 years, 9 months ago (2015-03-19 04:01:50 UTC) #9
James Cook
Ilya, can I get OWNERS for tools/metrics? John, are you OK being an owner of ...
5 years, 9 months ago (2015-03-19 16:19:12 UTC) #11
Ilya Sherman
LGTM. Thanks, James.
5 years, 9 months ago (2015-03-19 21:34:46 UTC) #12
Ilya Sherman
LGTM. Thanks, James.
5 years, 9 months ago (2015-03-19 21:35:45 UTC) #13
James Cook
John, I see you're OOO. I'm going to land this -- let me know if ...
5 years, 9 months ago (2015-03-19 22:17:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1009583004/160001
5 years, 9 months ago (2015-03-19 22:19:23 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/50891)
5 years, 9 months ago (2015-03-19 22:29:52 UTC) #19
James Cook
Ken, can I get OWNERS for //extensions? CQ it if you're OK with it.
5 years, 9 months ago (2015-03-19 22:44:48 UTC) #21
Ken Rockot(use gerrit already)
Nice. LGTM!
5 years, 9 months ago (2015-03-19 23:23:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1009583004/160001
5 years, 9 months ago (2015-03-19 23:24:15 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/50915)
5 years, 9 months ago (2015-03-19 23:34:30 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1009583004/180001
5 years, 9 months ago (2015-03-20 16:32:05 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:180001)
5 years, 9 months ago (2015-03-20 18:01:31 UTC) #30
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 18:02:18 UTC) #31
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/da2505817c8cac8331a0fcab1902e71f3c2b7daf
Cr-Commit-Position: refs/heads/master@{#321598}

Powered by Google App Engine
This is Rietveld 408576698