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

Issue 18045007: Show more different NaCl loading errors. (Closed)

Created:
7 years, 5 months ago by halyavin
Modified:
7 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, raymes+watch_chromium.org, yzshen+watch_chromium.org, piman+watch_chromium.org, native-client-reviews_googlegroups.com, ihf+watch_chromium.org
Visibility:
Public.

Description

Show more different NaCl loading errors. Also refactor NaCl launch message to pass output parameters in a single structure. I changed nacl::FileDescriptor type on Windows from int to HANDLE to make it compatible with IPC::PlatformFileForTransit. The only ways nacl::FileDescriptor is currently used are its initialization, passing in IPC message and in nacl::ToNativeHandle function. The behaviour of nacl::ToNativeHandle haven't changed. IPC doesn't have special handling for integers and it only truncates HANDLEs to 32-bit (so that they can be passed between 32-bit and 64-bit processes) on Windows. So the change shouldn't affect any existing users of nacl::FileDescriptor type. TEST= bots + changing code to produce an error on normal code path BUG=259333 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212913

Patch Set 1 #

Patch Set 2 : #

Total comments: 17

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : #

Patch Set 6 : rebase #

Total comments: 12

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Patch Set 10 : #

Total comments: 13

Patch Set 11 : #

Total comments: 6

Patch Set 12 : #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -45 lines) Patch
M chrome/browser/nacl_host/nacl_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +35 lines, -18 lines 0 comments Download
M chrome/common/nacl_host_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/common/nacl_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +18 lines, -3 lines 0 comments Download
M chrome/common/nacl_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +15 lines, -6 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/nacl_entry_points.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin_error.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +20 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -3 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
halyavin
7 years, 5 months ago (2013-07-10 07:52:54 UTC) #1
halyavin
Justin Schuh: I need approval for nacl_host_messages.h changes. dmichael: I need approval for ppapi/* changes. ...
7 years, 5 months ago (2013-07-10 08:09:58 UTC) #2
dmichael (off chromium)
https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc#newcode542 chrome/browser/nacl_host/nacl_process_host.cc:542: SendErrorToRenderer("Failed to add NaCl process PID"); nit: let's make ...
7 years, 5 months ago (2013-07-10 17:07:19 UTC) #3
jschuh
ipc security rubberstamp lgtm. no attack surface change, just moving moving from function parameters to ...
7 years, 5 months ago (2013-07-10 19:45:45 UTC) #4
halyavin
https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc#newcode542 chrome/browser/nacl_host/nacl_process_host.cc:542: SendErrorToRenderer("Failed to add NaCl process PID"); On 2013/07/10 17:07:20, ...
7 years, 5 months ago (2013-07-11 09:03:35 UTC) #5
halyavin
https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc#newcode559 chrome/browser/nacl_host/nacl_process_host.cc:559: internal_->socket_for_renderer = NACL_INVALID_HANDLE; The handle leak fix is here: ...
7 years, 5 months ago (2013-07-11 12:49:44 UTC) #6
dmichael (off chromium)
https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/23001/chrome/browser/nacl_host/nacl_process_host.cc#newcode549 chrome/browser/nacl_host/nacl_process_host.cc:549: NaClHostMsg_LaunchNaCl::WriteReplyParams( On 2013/07/11 09:03:36, halyavin wrote: > On 2013/07/10 ...
7 years, 5 months ago (2013-07-11 16:12:59 UTC) #7
dmichael (off chromium)
lgtm, but I assume you'll need to wait on the LaunchSelLdr threading fix
7 years, 5 months ago (2013-07-12 18:28:34 UTC) #8
sky
nacl_types LGTM
7 years, 5 months ago (2013-07-15 18:28:31 UTC) #9
Mark Seaborn
https://codereview.chromium.org/18045007/diff/23003/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/23003/chrome/browser/nacl_host/nacl_process_host.cc#newcode292 chrome/browser/nacl_host/nacl_process_host.cc:292: SendErrorToRenderer("could not find all the resources needed" Are these ...
7 years, 5 months ago (2013-07-16 02:02:52 UTC) #10
halyavin
https://codereview.chromium.org/18045007/diff/23003/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/23003/chrome/browser/nacl_host/nacl_process_host.cc#newcode292 chrome/browser/nacl_host/nacl_process_host.cc:292: SendErrorToRenderer("could not find all the resources needed" On 2013/07/16 ...
7 years, 5 months ago (2013-07-16 08:04:35 UTC) #11
Nick Bray (chromium)
https://codereview.chromium.org/18045007/diff/144001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/144001/chrome/browser/nacl_host/nacl_process_host.cc#newcode310 chrome/browser/nacl_host/nacl_process_host.cc:310: SendErrorToRenderer("could not create a socket pair"); These error messages ...
7 years, 5 months ago (2013-07-16 19:29:55 UTC) #12
Mark Seaborn
https://codereview.chromium.org/18045007/diff/23003/chrome/common/nacl_types.cc File chrome/common/nacl_types.cc (right): https://codereview.chromium.org/18045007/diff/23003/chrome/common/nacl_types.cc#newcode57 chrome/common/nacl_types.cc:57: : imc_channel_handle(-1), On 2013/07/16 08:04:35, halyavin wrote: > On ...
7 years, 5 months ago (2013-07-17 05:29:57 UTC) #13
halyavin
PTAL https://codereview.chromium.org/18045007/diff/23003/chrome/common/nacl_types.cc File chrome/common/nacl_types.cc (right): https://codereview.chromium.org/18045007/diff/23003/chrome/common/nacl_types.cc#newcode57 chrome/common/nacl_types.cc:57: : imc_channel_handle(-1), On 2013/07/17 05:29:58, Mark Seaborn wrote: ...
7 years, 5 months ago (2013-07-17 13:12:16 UTC) #14
Mark Seaborn
https://codereview.chromium.org/18045007/diff/159001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/18045007/diff/159001/chrome/browser/nacl_host/nacl_process_host.cc#newcode310 chrome/browser/nacl_host/nacl_process_host.cc:310: SendErrorToRenderer("internal error: could not create a channel" This error ...
7 years, 5 months ago (2013-07-17 18:21:49 UTC) #15
halyavin
https://chromiumcodereview.appspot.com/18045007/diff/159001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://chromiumcodereview.appspot.com/18045007/diff/159001/chrome/browser/nacl_host/nacl_process_host.cc#newcode310 chrome/browser/nacl_host/nacl_process_host.cc:310: SendErrorToRenderer("internal error: could not create a channel" On 2013/07/17 ...
7 years, 5 months ago (2013-07-18 09:32:21 UTC) #16
Mark Seaborn
https://chromiumcodereview.appspot.com/18045007/diff/200001/chrome/common/nacl_types.h File chrome/common/nacl_types.h (right): https://chromiumcodereview.appspot.com/18045007/diff/200001/chrome/common/nacl_types.h#newcode28 chrome/common/nacl_types.h:28: // We assume that HANDLE always uses less than ...
7 years, 5 months ago (2013-07-18 22:15:48 UTC) #17
halyavin
https://chromiumcodereview.appspot.com/18045007/diff/200001/chrome/common/nacl_types.h File chrome/common/nacl_types.h (right): https://chromiumcodereview.appspot.com/18045007/diff/200001/chrome/common/nacl_types.h#newcode28 chrome/common/nacl_types.h:28: // We assume that HANDLE always uses less than ...
7 years, 5 months ago (2013-07-19 09:06:20 UTC) #18
Mark Seaborn
LGTM https://chromiumcodereview.appspot.com/18045007/diff/200001/ppapi/native_client/src/trusted/plugin/plugin_error.h File ppapi/native_client/src/trusted/plugin/plugin_error.h (right): https://chromiumcodereview.appspot.com/18045007/diff/200001/ppapi/native_client/src/trusted/plugin/plugin_error.h#newcode129 ppapi/native_client/src/trusted/plugin/plugin_error.h:129: console_message_ = message + console_message; On 2013/07/19 09:06:20, ...
7 years, 5 months ago (2013-07-19 15:25:30 UTC) #19
halyavin
https://codereview.chromium.org/18045007/diff/221001/ppapi/native_client/src/trusted/plugin/plugin_error.h File ppapi/native_client/src/trusted/plugin/plugin_error.h (right): https://codereview.chromium.org/18045007/diff/221001/ppapi/native_client/src/trusted/plugin/plugin_error.h#newcode121 ppapi/native_client/src/trusted/plugin/plugin_error.h:121: // console_message is a part of error that is ...
7 years, 5 months ago (2013-07-22 09:11:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halyavin@google.com/18045007/260001
7 years, 5 months ago (2013-07-22 15:45:33 UTC) #21
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-22 15:52:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halyavin@google.com/18045007/260001
7 years, 5 months ago (2013-07-22 16:56:12 UTC) #23
commit-bot: I haz the power
7 years, 5 months ago (2013-07-22 18:01:32 UTC) #24
Message was sent while issue was closed.
Change committed as 212913

Powered by Google App Engine
This is Rietveld 408576698