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

Issue 544003002: NonSFI mode: Enable compiling exception_test for NonSFI NaCl on ARM (Closed)

Created:
6 years, 3 months ago by Junichi Uekawa
Modified:
6 years, 2 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Project:
nacl
Visibility:
Public.

Description

NonSFI mode: Enable compiling exception_test for NonSFI NaCl on ARM NonSFI newlib uses pnacl-clang toolchain for x86-32 and ARM architectures. Try enabling inline assembly for those architectures with appropriate flags for tests. Test will run if forced but will not pass. TESTED= ./scons -j20 --mode=dbg-host,nacl \ bitcode=1 nonsfi_nacl=1 pnacl_generate_pexe=0 \ platform=arm run_exception_test ./scons -j20 --mode=dbg-host,nacl_irt_test \ bitcode=1 nonsfi_nacl=1 pnacl_generate_pexe=0 \ use_newlib_nonsfi_loader=0 platform=arm run_exception_test # now fails with SIGSEGV in first test instead of not being able to build. BUG= https://code.google.com/p/chromium/issues/detail?id=408879 Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=13806

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : make them less scary. #

Patch Set 5 : re-merge #

Patch Set 6 : comments #

Total comments: 4

Patch Set 7 : less side effects #

Patch Set 8 : Make pnacl_generate_pexe=0 nonsfi_nacl=1 bitcode=1 work. #

Patch Set 9 : rebase/fix #

Patch Set 10 : rebase / resync with working pnacl_generate_pexe=0 nonsfi_nacl=1 bitcode=1 run_exception_test pass #

Patch Set 11 : rebase #

Total comments: 1

Patch Set 12 : remove dependency to IRT implementation for now. #

Total comments: 4

Patch Set 13 : revert changes related to making the test pass #

Patch Set 14 : disable test for submit. #

Patch Set 15 : first with arm only changes, x86-32 needs more work. #

Patch Set 16 : remove the parts about x86-32, try 2 #

Total comments: 2

Patch Set 17 : remove space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M SConstruct View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -1 line 0 comments Download
M site_scons/site_tools/naclsdk.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (2 generated)
Junichi Uekawa
https://codereview.chromium.org/544003002/diff/20001/tests/exception_test/nacl.scons File tests/exception_test/nacl.scons (right): https://codereview.chromium.org/544003002/diff/20001/tests/exception_test/nacl.scons#newcode9 tests/exception_test/nacl.scons:9: if not env.AllowNonStableBitcode(): Now this goes a bit further. ...
6 years, 3 months ago (2014-09-05 08:37:18 UTC) #1
Junichi Uekawa
ptal https://codereview.chromium.org/544003002/diff/100001/SConstruct File SConstruct (right): https://codereview.chromium.org/544003002/diff/100001/SConstruct#newcode3027 SConstruct:3027: if env.Bit('bitcode'): I am a little bit confused ...
6 years, 3 months ago (2014-09-09 12:23:58 UTC) #3
Junichi Uekawa
https://codereview.chromium.org/544003002/diff/100001/tests/common/register_set.h File tests/common/register_set.h (right): https://codereview.chromium.org/544003002/diff/100001/tests/common/register_set.h#newcode243 tests/common/register_set.h:243: "push $" #def_func "@got\n" /* Fill out prog_ctr with ...
6 years, 3 months ago (2014-09-09 15:28:03 UTC) #4
Mark Seaborn
I had a go at building exception_test for Non-SFI mode myself to debug this. For ...
6 years, 3 months ago (2014-09-10 02:45:22 UTC) #5
Mark Seaborn
On 9 September 2014 08:28, <uekawa@chromium.org> wrote: > > https://codereview.chromium.org/544003002/diff/100001/ > tests/common/register_set.h > File tests/common/register_set.h ...
6 years, 3 months ago (2014-09-10 03:24:39 UTC) #6
native-client-reviews_googlegroups.com
Now that I had toolchain synced I tried looking at using pnacl_generate_pexe, it seems like ...
6 years, 3 months ago (2014-09-10 06:40:15 UTC) #7
Mark Seaborn
On 9 September 2014 23:39, Junichi Uekawa (上川純一) <uekawa@google.com> wrote: > Now that I had ...
6 years, 3 months ago (2014-09-10 19:59:49 UTC) #8
Mark Seaborn
On 9 September 2014 20:24, Mark Seaborn <mseaborn@chromium.org> wrote: > On 9 September 2014 08:28, ...
6 years, 3 months ago (2014-09-10 20:01:42 UTC) #9
native-client-reviews_googlegroups.com
sounds good to me, ley me try doing that. 2014-09-11 5:01 GMT+09:00 Mark Seaborn <mseaborn@chromium.org>: ...
6 years, 3 months ago (2014-09-11 01:04:42 UTC) #10
native-client-reviews_googlegroups.com
So I fixed (1) to get -arch arm-nonsfi, and the remaining issue seems to be ...
6 years, 3 months ago (2014-09-12 16:39:19 UTC) #11
Mark Seaborn
On 12 September 2014 09:38, Junichi Uekawa (上川純一) <uekawa@google.com> wrote: > So I fixed (1) ...
6 years, 3 months ago (2014-09-13 01:06:03 UTC) #12
Junichi Uekawa
On 2014/09/13 01:06:03, Mark Seaborn wrote: > On 12 September 2014 09:38, Junichi Uekawa (上川純一) ...
6 years, 3 months ago (2014-09-16 11:00:19 UTC) #13
Junichi Uekawa
I've split out some changes and sent them out as: https://codereview.chromium.org/546043004/ https://codereview.chromium.org/581463004/ This change is ...
6 years, 3 months ago (2014-09-17 09:19:36 UTC) #14
Junichi Uekawa
On 2014/09/17 09:19:36, Junichi Uekawa wrote: > I've split out some changes and sent them ...
6 years, 3 months ago (2014-09-19 03:50:48 UTC) #15
Junichi Uekawa
On 2014/09/19 03:50:48, Junichi Uekawa wrote: > On 2014/09/17 09:19:36, Junichi Uekawa wrote: > > ...
6 years, 3 months ago (2014-09-19 07:20:08 UTC) #16
Mark Seaborn
On 19 September 2014 00:20, <uekawa@chromium.org> wrote: > > There's bunch of TLS-related symbols on ...
6 years, 3 months ago (2014-09-24 03:00:10 UTC) #17
native-client-reviews_googlegroups.com
Hmm... run_exception_test also fails, so I've tried to understand what's going on. I took a ...
6 years, 3 months ago (2014-09-24 05:37:45 UTC) #18
native-client-reviews_googlegroups.com
https://src.chromium.org/viewvc/native_client/trunk/src/native_client/pnacl/driver/pnacl-translate.py SetUpLinkOptions 278 if env.getbool('NONSFI_NACL'): 279 # "_begin" allows a PIE to find its load ...
6 years, 3 months ago (2014-09-24 06:21:56 UTC) #19
Mark Seaborn
On 23 September 2014 23:21, Junichi Uekawa (上川純一) <uekawa@google.com> wrote: > > https://src.chromium.org/viewvc/native_client/trunk/src/native_client/pnacl/driver/pnacl-translate.py > SetUpLinkOptions ...
6 years, 3 months ago (2014-09-24 21:53:07 UTC) #20
native-client-reviews_googlegroups.com
To reduce the number of things that are broken in the tree, I've sent out ...
6 years, 2 months ago (2014-09-25 05:38:45 UTC) #21
Junichi Uekawa
updated and now it passes for run_exception_test on x86-32. https://codereview.chromium.org/544003002/diff/200001/tests/exception_test/exception_test.c File tests/exception_test/exception_test.c (right): https://codereview.chromium.org/544003002/diff/200001/tests/exception_test/exception_test.c#newcode443 tests/exception_test/exception_test.c:443: ...
6 years, 2 months ago (2014-09-29 07:32:30 UTC) #22
Mark Seaborn
I tried applying the patch locally. I get: $ ./scons run_exception_test nonsfi_nacl=1 bitcode=1 -j4 naclsdk_validate=0 ...
6 years, 2 months ago (2014-09-30 00:12:48 UTC) #23
Junichi Uekawa
On 2014/09/30 00:12:48, Mark Seaborn wrote: > I tried applying the patch locally. I get: ...
6 years, 2 months ago (2014-09-30 00:35:16 UTC) #24
Junichi Uekawa
https://codereview.chromium.org/544003002/diff/220001/SConstruct File SConstruct (right): https://codereview.chromium.org/544003002/diff/220001/SConstruct#newcode698 SConstruct:698: 'run_exception_test', # TODO(uekawa): disable before submitting because it fails. ...
6 years, 2 months ago (2014-09-30 00:35:30 UTC) #25
Mark Seaborn
https://codereview.chromium.org/544003002/diff/220001/SConstruct File SConstruct (right): https://codereview.chromium.org/544003002/diff/220001/SConstruct#newcode698 SConstruct:698: 'run_exception_test', # TODO(uekawa): disable before submitting because it fails. ...
6 years, 2 months ago (2014-09-30 01:12:01 UTC) #26
Junichi Uekawa
ptal https://codereview.chromium.org/544003002/diff/220001/tests/exception_test/exception_test.c File tests/exception_test/exception_test.c (right): https://codereview.chromium.org/544003002/diff/220001/tests/exception_test/exception_test.c#newcode185 tests/exception_test/exception_test.c:185: if (NONSFI_MODE) { On 2014/09/30 01:12:01, Mark Seaborn ...
6 years, 2 months ago (2014-09-30 01:19:07 UTC) #27
Junichi Uekawa
On 2014/09/30 01:19:07, Junichi Uekawa wrote: > ptal > > https://codereview.chromium.org/544003002/diff/220001/tests/exception_test/exception_test.c > File tests/exception_test/exception_test.c (right): ...
6 years, 2 months ago (2014-09-30 01:46:58 UTC) #28
Mark Seaborn
LGTM, thanks. Can you add a TEST= line, please, to say what Scons invocation now ...
6 years, 2 months ago (2014-09-30 04:59:13 UTC) #29
Junichi Uekawa
https://codereview.chromium.org/544003002/diff/300001/SConstruct File SConstruct (right): https://codereview.chromium.org/544003002/diff/300001/SConstruct#newcode3031 SConstruct:3031: return False On 2014/09/30 04:59:13, Mark Seaborn wrote: > ...
6 years, 2 months ago (2014-09-30 06:55:56 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/544003002/320001
6 years, 2 months ago (2014-09-30 07:04:41 UTC) #32
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 08:22:59 UTC) #33
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as 13806

Powered by Google App Engine
This is Rietveld 408576698