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

Issue 2656013005: Better crash stacktraces for ExtensionFunction bad messages. (Closed)

Created:
3 years, 10 months ago by lazyboy
Modified:
3 years, 10 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Better crash stacktraces for ExtensionFunction bad messages. Record crash trace right where we set bad_message in ExtensionFunction This will give us clue about which particular extension functions are crashing. Previously, we used to record the trace from common response callback where we already lost track of which function actually set a bad_message. Turn ExtensionFunction::set_bad_message(bool) to EF::SetBadMessage(void) since one should only use this function to set bad_message state, not clear it. BUG=642794 Test=No visible change. Beware though, similar to https://codereview.chromium.org/2629783002, this might show up as a blame CL for extension function crashes. These will not really be new crashes, so file a (non-release-blocking) bug. Review-Url: https://codereview.chromium.org/2656013005 Cr-Commit-Position: refs/heads/master@{#446865} Committed: https://chromium.googlesource.com/chromium/src/+/5e465202abc260c9aa8319f8e77bf721e0453ed2

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments #

Patch Set 3 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -40 lines) Patch
M extensions/browser/extension_function.h View 1 6 chunks +6 lines, -4 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 6 chunks +50 lines, -1 line 0 comments Download
M extensions/browser/extension_function_dispatcher.cc View 5 chunks +7 lines, -35 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
lazyboy
3 years, 10 months ago (2017-01-27 03:52:59 UTC) #3
Devlin
lgtm https://codereview.chromium.org/2656013005/diff/1/extensions/browser/extension_function.cc File extensions/browser/extension_function.cc (right): https://codereview.chromium.org/2656013005/diff/1/extensions/browser/extension_function.cc#newcode345 extensions/browser/extension_function.cc:345: void ExtensionFunction::SetBadMessage() { Does this compile? ExtensionFunction::SetBadMessage() is ...
3 years, 10 months ago (2017-01-27 17:38:58 UTC) #4
lazyboy
https://codereview.chromium.org/2656013005/diff/1/extensions/browser/extension_function.cc File extensions/browser/extension_function.cc (right): https://codereview.chromium.org/2656013005/diff/1/extensions/browser/extension_function.cc#newcode345 extensions/browser/extension_function.cc:345: void ExtensionFunction::SetBadMessage() { On 2017/01/27 17:38:58, Devlin (catching up) ...
3 years, 10 months ago (2017-01-27 18:17:26 UTC) #5
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/2656013005/40001
3 years, 10 months ago (2017-01-28 01:08:23 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-01-28 01:15:40 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5e465202abc260c9aa8319f8e77b...

Powered by Google App Engine
This is Rietveld 408576698