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

Issue 383063002: NaCl: Fix NaClBrowserTestPnaclNonSfi.IrtManifestFile (Closed)

Created:
6 years, 5 months ago by hamaji
Modified:
6 years, 5 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, Nico
Project:
chromium
Visibility:
Public.

Description

NaCl: Fix NaClBrowserTestPnaclNonSfi.IrtManifestFile We have switched from fgets to read, but the change did not modify code which converts CRLF to LF. https://codereview.chromium.org/133033002 Due to this reason, we were running strlen for the buffer filled by read, which is not always NULL terminated. This change simply removes the CRLF-to-LF conversion. This is safe because we do not have any newlines in the test file. BUG=392768 TEST=./out/Debug/browser_tests --gtest_filter='*NonSfi*IrtMani*' TEST=trybots Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282838

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -93 lines) Patch
M chrome/test/data/nacl/manifest_file/irt_manifest_file_test.cc View 1 chunk +1 line, -29 lines 1 comment Download
M chrome/test/data/nacl/manifest_file/pm_manifest_file_test.cc View 1 chunk +1 line, -28 lines 0 comments Download
M chrome/test/data/nacl/manifest_file/pm_pre_init_manifest_file_test.cc View 1 chunk +1 line, -29 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest.cc View 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
hamaji
6 years, 5 months ago (2014-07-11 06:10:24 UTC) #1
Mark Seaborn
So the reason got disabled when switching to Clang wasn't anything to do with Clang? ...
6 years, 5 months ago (2014-07-11 16:55:19 UTC) #2
hamaji
> So the reason got disabled when switching to Clang wasn't anything to do > ...
6 years, 5 months ago (2014-07-12 16:52:44 UTC) #3
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 5 months ago (2014-07-12 16:52:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/383063002/1
6 years, 5 months ago (2014-07-12 16:53:10 UTC) #5
commit-bot: I haz the power
Change committed as 282838
6 years, 5 months ago (2014-07-12 18:31:27 UTC) #6
Mark Seaborn
On 12 July 2014 09:52, <hamaji@chromium.org> wrote: > So the reason got disabled when switching ...
6 years, 5 months ago (2014-07-18 00:42:36 UTC) #7
Mark Seaborn
On 12 July 2014 09:52, <hamaji@chromium.org> wrote: > So the reason got disabled when switching ...
6 years, 5 months ago (2014-07-18 00:42:36 UTC) #8
hamaji
6 years, 5 months ago (2014-07-23 06:56:12 UTC) #9
Message was sent while issue was closed.
On 2014/07/18 00:42:36, Mark Seaborn wrote:
> On 12 July 2014 09:52, <mailto:hamaji@chromium.org> wrote:
> 
> >  So the reason got disabled when switching to Clang wasn't anything to do
> >> with Clang?  Switching to Clang (for trusted code) shouldn't even affect
> >> the untrusted code that was buggy here.
> >>
> >
> > The test was failing on non-SFI mode, where we switch to clang even for
> > untrusted code. Did you mean we should always use host gcc?
> 
> 
> I meant that Nico's change (
> https://code.google.com/p/chromium/issues/detail?id=360311, "Switch linux
> to use clang by default") only affects trusted code.  It doesn't affect
> NaCl untrusted code, which is built with the NaCl toolchains.
> 
> So I don't understand why Nico's change would have affected this test, if
> the change to fix the test involves changing only untrusted code.  These
> manifest tests *aren't* built with the host GCC or Clang.

Ah, I didn't realize we are using build_nexe even for non-SFI untrusted code
(except libc_free.c). The manifest tests started failing when libc_free.c
tests started failing.

http://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%29...

So, the clang switch is still likely the cause of this. One theory is that
the clang switch has changed the usage of stack in nacl_helper. As nacl_helper
and untrusted code share the stack on non-SFI, the stack usage in trusted
code could affect the behavior of untrusted code, I think.

Powered by Google App Engine
This is Rietveld 408576698