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

Issue 12207165: Mac x86_64: Mach exception support (Closed)

Created:
7 years, 10 months ago by Mark Mentovai
Modified:
7 years, 10 months ago
Reviewers:
Mark Seaborn
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Mac x86-64: Mach exception support. This extends Mach exception support to x86-64 on Mac. The Mach exception handler maps threads from their Mach port number in the local (task/process) port namespace to their Native Client thread index by consulting a new Mach thread map which is maintained on x86-64 as Native Client threads come in and out of existence. Additional changes: - Provides an x86-64 implementation of NaClMachThreadIsInUntrusted. - On x86-64 and x86-32 alike, it now bails out on trying to handle an exception if no untrusted exception handler is set before setting the flag that declares that an untrusted exception handler has been invoked. With this change, all tests now pass with platform=x86-64. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3087 TEST=scons platform=x86-64 exception_tests Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=10861

Patch Set 1 : #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Total comments: 15

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 11

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -89 lines) Patch
M buildbot/buildbot_standard.py View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
M src/trusted/service_runtime/build.scons View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/trusted/service_runtime/nacl_app_thread.c View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
D src/trusted/service_runtime/osx/crash_filter.h View 1 2 3 4 5 2 chunks +21 lines, -2 lines 0 comments Download
D src/trusted/service_runtime/osx/crash_filter.c View 1 2 3 4 5 2 chunks +61 lines, -18 lines 0 comments Download
M src/trusted/service_runtime/osx/mach_exception_handler.c View 1 2 3 4 5 8 chunks +101 lines, -56 lines 0 comments Download
A src/trusted/service_runtime/osx/mach_thread_map.h View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
A src/trusted/service_runtime/osx/mach_thread_map.c View 1 2 3 4 5 1 chunk +84 lines, -0 lines 1 comment Download
M src/trusted/service_runtime/service_runtime.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tests/trusted_crash/osx_crash_filter/nacl.scons View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M tests/trusted_crash/osx_crash_forwarding/mach_crash_forwarding_test.c View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M tests/trusted_crash/osx_crash_forwarding/nacl.scons View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Mark Mentovai
This is more of a checkpoint than something ready for checkin. Certain chunks are pretty ...
7 years, 10 months ago (2013-02-13 23:11:10 UTC) #1
Mark Seaborn
https://codereview.chromium.org/12207165/diff/12/src/trusted/service_runtime/nacl_app_thread.c File src/trusted/service_runtime/nacl_app_thread.c (right): https://codereview.chromium.org/12207165/diff/12/src/trusted/service_runtime/nacl_app_thread.c#newcode26 src/trusted/service_runtime/nacl_app_thread.c:26: #if NACL_OSX I'd be inclined to put this #if ...
7 years, 10 months ago (2013-02-14 00:37:53 UTC) #2
Mark Mentovai
I’ve made the changes you suggested, and a few more. I think this is approaching ...
7 years, 10 months ago (2013-02-14 19:35:40 UTC) #3
Mark Seaborn
On 14 February 2013 11:35, <mark@chromium.org> wrote: > https://codereview.chromium.**org/12207165/diff/12/src/** > trusted/service_runtime/osx/**mach_thread_map.c<https://codereview.chromium.org/12207165/diff/12/src/trusted/service_runtime/osx/mach_thread_map.c> > File src/trusted/service_runtime/**osx/mach_thread_map.c (right): ...
7 years, 10 months ago (2013-02-14 22:52:44 UTC) #4
Mark Seaborn
Can you add exception_tests to buildbot_standard.py in this change too, please? Also say in the ...
7 years, 10 months ago (2013-02-14 23:55:02 UTC) #5
Mark Mentovai
Most of your comments are uncontroversial and I’ll take care of them later. I do ...
7 years, 10 months ago (2013-02-15 17:36:42 UTC) #6
Mark Mentovai
I’ve updated this per the comments, except for the questions I had earlier. I did ...
7 years, 10 months ago (2013-02-15 22:30:30 UTC) #7
Mark Seaborn
https://codereview.chromium.org/12207165/diff/14011/src/trusted/service_runtime/osx/crash_filter.h File src/trusted/service_runtime/osx/crash_filter.h (left): https://codereview.chromium.org/12207165/diff/14011/src/trusted/service_runtime/osx/crash_filter.h#oldcode1 src/trusted/service_runtime/osx/crash_filter.h:1: /* On 2013/02/15 17:36:42, Mark Mentovai wrote: > Mark ...
7 years, 10 months ago (2013-02-15 22:48:08 UTC) #8
Mark Mentovai
Mark Seaborn wrote: > On 2013/02/15 17:36:42, Mark Mentovai wrote: > > As of Mac ...
7 years, 10 months ago (2013-02-15 23:16:31 UTC) #9
Mark Seaborn
On 15 February 2013 15:16, <mark@chromium.org> wrote: > Mark Seaborn wrote: > >> On 2013/02/15 ...
7 years, 10 months ago (2013-02-16 00:01:33 UTC) #10
Mark Mentovai
Ready for another look. All feedback incorporated.
7 years, 10 months ago (2013-02-19 17:09:42 UTC) #11
Mark Seaborn
https://codereview.chromium.org/12207165/diff/33001/src/trusted/service_runtime/osx/crash_filter.c File src/trusted/service_runtime/osx/crash_filter.c (right): https://codereview.chromium.org/12207165/diff/33001/src/trusted/service_runtime/osx/crash_filter.c#newcode33 src/trusted/service_runtime/osx/crash_filter.c:33: CHECK(kr == KERN_SUCCESS); Nit: The NaClLog() call you're replacing ...
7 years, 10 months ago (2013-02-20 18:33:17 UTC) #12
Mark Mentovai
Thanks for the feedback. This is ready again now. https://codereview.chromium.org/12207165/diff/33001/src/trusted/service_runtime/osx/crash_filter.c File src/trusted/service_runtime/osx/crash_filter.c (right): https://codereview.chromium.org/12207165/diff/33001/src/trusted/service_runtime/osx/crash_filter.c#newcode33 src/trusted/service_runtime/osx/crash_filter.c:33: ...
7 years, 10 months ago (2013-02-20 20:15:48 UTC) #13
Mark Seaborn
LGTM
7 years, 10 months ago (2013-02-20 20:24:27 UTC) #14
Mark Mentovai
7 years, 10 months ago (2013-02-20 21:45:30 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 manually as r10861 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698