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

Issue 6798008: Add an assertion to check that Chrome/Breakpad does not install a signal handler (Closed)

Created:
9 years, 8 months ago by Mark Seaborn
Modified:
9 years, 5 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Add an assertion to check that Chrome/Breakpad does not install a signal handler Breakpad's signal handler is typically not designed to handle faults that occur in NaCl sandboxed code, especially on x86-32 Linux where the handler must restore %gs in order to be safe. Breakpad's signal handler is being turned off for NaCl in a Chrome-side change, http://codereview.chromium.org/6677168/. This change is intended to prevent Chrome from accidentally regressing. BUG=http://code.google.com/p/nativeclient/issues/detail?id=1607 TEST=build Chrome with this using "-D target_arch=ia32 -D linux_breakpad=1"; run with CHROME_HEADLESS=1 --enable-nacl --enable-crash-reporter Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=5004

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use %d; amend Windows comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M src/native_client/src/trusted/service_runtime/nacl_signal.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/native_client/src/trusted/service_runtime/posix/nacl_signal.c View 1 1 chunk +26 lines, -0 lines 0 comments Download
M src/native_client/src/trusted/service_runtime/sel_main.c View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/native_client/src/trusted/service_runtime/sel_main_chrome.c View 1 1 chunk +5 lines, -3 lines 0 comments Download
M src/native_client/src/trusted/service_runtime/win/nacl_signal.c View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mark Seaborn
9 years, 8 months ago (2011-04-06 00:36:49 UTC) #1
Cliff L. Biffle
LGTM modulo the comment in the Windows file, below. http://codereview.chromium.org/6798008/diff/1/src/native_client/src/trusted/service_runtime/win/nacl_signal.c File src/native_client/src/trusted/service_runtime/win/nacl_signal.c (right): http://codereview.chromium.org/6798008/diff/1/src/native_client/src/trusted/service_runtime/win/nacl_signal.c#newcode137 src/native_client/src/trusted/service_runtime/win/nacl_signal.c:137: ...
9 years, 8 months ago (2011-04-06 20:50:10 UTC) #2
bsy
a nit. o/w lgtm modulo cbiffle's windows comment. http://codereview.chromium.org/6798008/diff/1/src/native_client/src/trusted/service_runtime/posix/nacl_signal.c File src/native_client/src/trusted/service_runtime/posix/nacl_signal.c (right): http://codereview.chromium.org/6798008/diff/1/src/native_client/src/trusted/service_runtime/posix/nacl_signal.c#newcode312 src/native_client/src/trusted/service_runtime/posix/nacl_signal.c:312: "A ...
9 years, 8 months ago (2011-04-06 20:59:44 UTC) #3
noelallen_use_chromium
Please make sure we have a bug to track both the interaction of VEH and ...
9 years, 8 months ago (2011-04-06 23:34:58 UTC) #4
noelallen_use_chromium
Actually, since you haven't checked this in yet... It's true that Windows does not have ...
9 years, 8 months ago (2011-04-08 19:56:05 UTC) #5
Mark Seaborn
On 6 April 2011 13:59, <bsy@google.com> wrote: > > http://codereview.chromium.org/6798008/diff/1/src/native_client/src/trusted/service_runtime/posix/nacl_signal.c#newcode312 > src/native_client/src/trusted/service_runtime/posix/nacl_signal.c:312: > > "A ...
9 years, 8 months ago (2011-04-21 15:36:15 UTC) #6
Mark Seaborn
On 6 April 2011 13:50, <cbiffle@google.com> wrote: > LGTM modulo the comment in the Windows ...
9 years, 8 months ago (2011-04-21 15:38:27 UTC) #7
Mark Seaborn
On 6 April 2011 16:34, <noelallen@google.com> wrote: > Please make sure we have a bug ...
9 years, 8 months ago (2011-04-21 15:41:11 UTC) #8
bsy
9 years, 8 months ago (2011-04-22 17:15:44 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698