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

Issue 10408004: [Mac] Log stack trace for CHECK in bug 97285. (Closed)

Created:
8 years, 7 months ago by Scott Hess - ex-Googler
Modified:
8 years, 7 months ago
Reviewers:
brettw, Nico, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, erikwright (departed), darin-cc_chromium.org, jam, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[Mac] Log stack trace for CHECK in bug 97285. The hypothesis in comment #55 on the bug is that while setting up a new channel to an already-connected plugin, NPChannelBase::RemoveRoute() can be called on the earlier channel, so the renderer and plugin channel mappings get out of sync. This will add a Breakpad key encoding the top stack frames when RemoveRoute() is called within the scoped of WebPluginDelegateProxy::Initialize(). objc_zombies.mm already implemented the stackframe-encoding code, so I pulled that to a central location. That code can be left in place when the other code is removed after some traces are generated. BUG=97285 TEST=crash server. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137896

Patch Set 1 #

Total comments: 6

Patch Set 2 : review suggestions. #

Patch Set 3 : Forgot an OS_MACOSX check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -14 lines) Patch
M base/mac/crash_logging.h View 1 chunk +7 lines, -0 lines 0 comments Download
M base/mac/crash_logging.mm View 1 2 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/common/mac/objc_zombie.mm View 1 chunk +4 lines, -14 lines 0 comments Download
M content/renderer/plugin_channel_host.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/plugin_channel_host.cc View 3 chunks +47 lines, -0 lines 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 1 2 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Scott Hess - ex-Googler
Brett, sorry for roping you in, but you look like optimal OWNER.
8 years, 7 months ago (2012-05-16 22:55:43 UTC) #1
Scott Hess - ex-Googler
OK, adding a couple, that was unfair: thakis: moving the stack thing from objc_zombies and ...
8 years, 7 months ago (2012-05-16 22:59:52 UTC) #2
Nico
mac bits lgtm https://chromiumcodereview.appspot.com/10408004/diff/1/base/mac/crash_logging.mm File base/mac/crash_logging.mm (right): https://chromiumcodereview.appspot.com/10408004/diff/1/base/mac/crash_logging.mm#newcode40 base/mac/crash_logging.mm:40: static const size_t kBreakpadValueMax = 255; ...
8 years, 7 months ago (2012-05-16 23:04:56 UTC) #3
piman
https://chromiumcodereview.appspot.com/10408004/diff/1/content/renderer/webplugin_delegate_proxy.cc File content/renderer/webplugin_delegate_proxy.cc (right): https://chromiumcodereview.appspot.com/10408004/diff/1/content/renderer/webplugin_delegate_proxy.cc#newcode316 content/renderer/webplugin_delegate_proxy.cc:316: } Is it ok not to reset here? You ...
8 years, 7 months ago (2012-05-16 23:19:27 UTC) #4
Scott Hess - ex-Googler
PTAL? https://chromiumcodereview.appspot.com/10408004/diff/1/base/mac/crash_logging.mm File base/mac/crash_logging.mm (right): https://chromiumcodereview.appspot.com/10408004/diff/1/base/mac/crash_logging.mm#newcode40 base/mac/crash_logging.mm:40: static const size_t kBreakpadValueMax = 255; On 2012/05/16 ...
8 years, 7 months ago (2012-05-17 22:08:11 UTC) #5
piman
lgtm
8 years, 7 months ago (2012-05-17 22:10:54 UTC) #6
brettw
lgtm
8 years, 7 months ago (2012-05-18 05:51:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/10408004/6003
8 years, 7 months ago (2012-05-18 16:39:14 UTC) #8
commit-bot: I haz the power
8 years, 7 months ago (2012-05-18 18:07:15 UTC) #9
Change committed as 137896

Powered by Google App Engine
This is Rietveld 408576698