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

Issue 512323002: NaCl: Detect plugin crashes via EOF on Chromium IPC. (Closed)

Created:
6 years, 3 months ago by teravest
Modified:
6 years, 3 months ago
Reviewers:
Mark Seaborn
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, native-client-reviews_googlegroups.com, noelallen1, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

NaCl: Detect plugin crashes via EOF on Chromium IPC. This change uses the OnChannelError() callback in TrustedPluginChannel to detect that the channel between the renderer and NaCl processes has closed. Previously, closure of the SRPC channel between those two processes was used to indicate a plugin crash. I wasn't sure at first that OnChannelError() would be called, but it appears to be called reliably in the testing that I've done. This change removes a call to ReportCrash() in ServiceRuntime::ReapLogs() since ReportCrash() has become a no-op. This change reenables the NaClBrowserTest*.Crash tests on Linux to ensure that there's good coverage-- they seem to pass. TEST=NaClBrowserTest*.Crash BUG=366334, 401105 R=mseaborn@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/f3e9e0cb8d6dc6f0a6f5cec9180c0e538e76c184

Patch Set 1 #

Total comments: 10

Patch Set 2 : fixes for mseaborn #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -90 lines) Patch
M chrome/test/nacl/nacl_browsertest.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 2 chunks +0 lines, -7 lines 0 comments Download
M components/nacl/renderer/trusted_plugin_channel.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/renderer/trusted_plugin_channel.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 2 chunks +1 line, -14 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 6 chunks +4 lines, -14 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 2 chunks +2 lines, -7 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 5 chunks +16 lines, -33 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
teravest
teravest@chromium.org changed reviewers: + mseaborn@chromium.org
6 years, 3 months ago (2014-08-28 18:52:40 UTC) #1
teravest
6 years, 3 months ago (2014-08-28 18:52:40 UTC) #2
Mark Seaborn
Nit on commit message: Maybe say "Detect plugin crashes via EOF on Chromium IPC" rather ...
6 years, 3 months ago (2014-08-28 20:58:40 UTC) #3
teravest
Hopefully this change is a bit easier to understand now, thanks. https://codereview.chromium.org/512323002/diff/1/chrome/test/nacl/nacl_browsertest.cc File chrome/test/nacl/nacl_browsertest.cc (left): ...
6 years, 3 months ago (2014-09-03 15:18:22 UTC) #4
teravest
I didn't see an email go out for my last set of comments, so I'm ...
6 years, 3 months ago (2014-09-03 17:58:01 UTC) #5
Mark Seaborn
LGTM
6 years, 3 months ago (2014-09-03 23:28:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/512323002/20001
6 years, 3 months ago (2014-09-04 00:30:00 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/11984) win8_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/8222) win_chromium_rel_swarming ...
6 years, 3 months ago (2014-09-04 01:18:49 UTC) #10
teravest
Committed patchset #3 (id:40001) manually as f3e9e0c (presubmit successful).
6 years, 3 months ago (2014-09-04 14:44:35 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:31:23 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f3e9e0cb8d6dc6f0a6f5cec9180c0e538e76c184
Cr-Commit-Position: refs/heads/master@{#293297}

Powered by Google App Engine
This is Rietveld 408576698