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

Issue 2387113004: Better bad message reporting from IO thread (Closed)

Created:
4 years, 2 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 11 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, gcasto+watchlist_chromium.org, jam, nasko+codewatch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, ncarter (slow)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Better bad message reporting from IO thread This makes crash dumping optional for RPH::ShutdownForBadMessage, and changes the thread-safe bad_message::ReceivedBadMessage to generate its own crash dump immediately, before potentially posting a UI thread task. All other call sites have been updated to opt into crash dumping, preserving previous behavior. This ensures that bad message reports from the IO thread have a useful crash stack. BUG=652755 R=jam@chromium.org Committed: https://crrev.com/f050c89a2ba1799844b3615884000d5fa7a03e11 Cr-Commit-Position: refs/heads/master@{#423040}

Patch Set 1 #

Patch Set 2 : fix missed call site #

Patch Set 3 : cleanup #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -34 lines) Patch
M chrome/browser/bad_message.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/password_manager/content/browser/bad_message.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/bad_message.cc View 2 chunks +15 lines, -3 lines 1 comment Download
M content/browser/media/android/browser_media_session_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 4 chunks +10 lines, -19 lines 0 comments Download
M content/public/browser/render_process_host.h View 2 chunks +10 lines, -1 line 0 comments Download
M content/public/test/mock_render_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/bad_message.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (14 generated)
Ken Rockot(use gerrit already)
4 years, 2 months ago (2016-10-04 20:07:25 UTC) #3
jam
lgtm
4 years, 2 months ago (2016-10-04 23:57:22 UTC) #6
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/2387113004/20001
4 years, 2 months ago (2016-10-05 00:30:37 UTC) #12
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/2387113004/40001
4 years, 2 months ago (2016-10-05 00:33:13 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-05 01:28:53 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f050c89a2ba1799844b3615884000d5fa7a03e11 Cr-Commit-Position: refs/heads/master@{#423040}
4 years, 2 months ago (2016-10-05 01:31:28 UTC) #19
Charlie Reis
I know this has already landed, but it looks like it regressed some of the ...
3 years, 11 months ago (2017-01-12 00:39:30 UTC) #21
Ken Rockot(use gerrit already)
3 years, 11 months ago (2017-01-12 16:50:45 UTC) #22
Message was sent while issue was closed.
Hmm. Yes, I'll take a look.

On Wed, Jan 11, 2017 at 4:39 PM, <creis@chromium.org> wrote:

> I know this has already landed, but it looks like it regressed some of the
> renderer kill logic. Can you take a look?
>
>
> https://codereview.chromium.org/2387113004/diff/40001/
> content/browser/bad_message.cc
> File content/browser/bad_message.cc (right):
>
> https://codereview.chromium.org/2387113004/diff/40001/
> content/browser/bad_message.cc#newcode54
> content/browser/bad_message.cc:54: base::debug::DumpWithoutCrashing();
> I just looked at a crash report that hit this (9fa49da580000000), and
> it's missing the "bad_message_reason" crash key that gets set in
> LogBadMessage. Can you take a look at how to restore that key for IO
> thread crashes?
>
> The key helps disambiguate when there are multiple renderer kills in a
> given method, and it puts the reason code in the magic signature itself.
>
> https://codereview.chromium.org/2387113004/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698