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

Issue 10909241: Generate dumps for relevant renderers when users kill a hung pepper plugin. (Closed)

Created:
8 years, 3 months ago by yzshen1
Modified:
8 years, 3 months ago
Reviewers:
brettw, eroman
CC:
chromium-reviews, cpu_(ooo_6.6-7.5)
Visibility:
Public.

Description

Generate dumps for relevant renderers when users kill a hung pepper plugin. This CL collects information in order to diagnose inter-process pepper deadlocks. We don't crash those renderers. And we only do this on the Windows Canary channel, for 20% of pepper plugin hangs. BUG=147593 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157643

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : changes in response to Brett's suggestions #

Patch Set 4 : Fix the separate-PpapiMessageTracker-singletons issue. #

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : Dump&kill in blocking pool instead of on IO thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -3 lines) Patch
M chrome/browser/DEPS View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/hang_monitor/hang_crash_dump_win.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/hang_monitor/hang_crash_dump_win.cc View 1 2 3 4 5 3 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/ui/hung_plugin_tab_helper.cc View 1 2 3 4 5 5 chunks +87 lines, -1 line 0 comments Download
M ppapi/host/ppapi_host.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/host_dispatcher.cc View 4 chunks +5 lines, -2 lines 0 comments Download
A ppapi/shared_impl/ppapi_message_tracker.h View 1 chunk +50 lines, -0 lines 0 comments Download
A ppapi/shared_impl/ppapi_message_tracker.cc View 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
yzshen1
Hi, Brett and Eric. Would you please take a look? Thanks!
8 years, 3 months ago (2012-09-14 18:47:42 UTC) #1
brettw
lgtm http://codereview.chromium.org/10909241/diff/7001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/10909241/diff/7001/chrome/app/breakpad_win.cc#newcode134 chrome/app/breakpad_win.cc:134: DWORD WINAPI DumpProcessHandlingPepper(void*) { It would make more ...
8 years, 3 months ago (2012-09-14 19:44:37 UTC) #2
yzshen1
Thanks Brett! http://codereview.chromium.org/10909241/diff/7001/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/10909241/diff/7001/chrome/app/breakpad_win.cc#newcode134 chrome/app/breakpad_win.cc:134: DWORD WINAPI DumpProcessHandlingPepper(void*) { On 2012/09/14 19:44:37, ...
8 years, 3 months ago (2012-09-14 20:07:19 UTC) #3
eroman
+cpu for breakpad_win.cc I don't think this will work as intended: AFAICT InjectDumpIfHandlingPepper() will run ...
8 years, 3 months ago (2012-09-14 21:02:26 UTC) #4
yzshen1
On 2012/09/14 21:02:26, eroman wrote: > +cpu for breakpad_win.cc > > I don't think this ...
8 years, 3 months ago (2012-09-14 21:07:43 UTC) #5
eroman
My guess is you are testing with the component build, which means the singletons are ...
8 years, 3 months ago (2012-09-14 22:38:27 UTC) #6
yzshen1
On 2012/09/14 22:38:27, eroman wrote: > My guess is you are testing with the component ...
8 years, 3 months ago (2012-09-16 01:14:24 UTC) #7
eroman
LGTM after answering my comment (http://codereview.chromium.org/10909241/diff/9003/chrome/browser/ui/hung_plugin_tab_helper.cc#newcode299) http://codereview.chromium.org/10909241/diff/9003/chrome/browser/hang_monitor/hang_crash_dump_win.cc File chrome/browser/hang_monitor/hang_crash_dump_win.cc (right): http://codereview.chromium.org/10909241/diff/9003/chrome/browser/hang_monitor/hang_crash_dump_win.cc#newcode65 chrome/browser/hang_monitor/hang_crash_dump_win.cc:65: // thread using ...
8 years, 3 months ago (2012-09-17 19:23:48 UTC) #8
yzshen1
http://codereview.chromium.org/10909241/diff/9003/chrome/browser/hang_monitor/hang_crash_dump_win.cc File chrome/browser/hang_monitor/hang_crash_dump_win.cc (right): http://codereview.chromium.org/10909241/diff/9003/chrome/browser/hang_monitor/hang_crash_dump_win.cc#newcode65 chrome/browser/hang_monitor/hang_crash_dump_win.cc:65: // thread using function pointer relative to chrome.exe, here ...
8 years, 3 months ago (2012-09-17 20:11:03 UTC) #9
eroman
i agree that you should do the dumping of child processes before killing the plugin ...
8 years, 3 months ago (2012-09-17 20:54:31 UTC) #10
yzshen1
On 2012/09/17 20:54:31, eroman wrote: > i agree that you should do the dumping of ...
8 years, 3 months ago (2012-09-17 23:00:50 UTC) #11
eroman
lgtm
8 years, 3 months ago (2012-09-18 19:36:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/10909241/9006
8 years, 3 months ago (2012-09-19 21:05:42 UTC) #13
commit-bot: I haz the power
8 years, 3 months ago (2012-09-19 23:04:04 UTC) #14
Change committed as 157643

Powered by Google App Engine
This is Rietveld 408576698