LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 25417 - ChromeOS built with Clang times out on Octane telemetry test
Summary: ChromeOS built with Clang times out on Octane telemetry test
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: unspecified
Hardware: PC Linux
: P normal
Assignee: Caroline Tice
URL:
Keywords:
Depends on:
Blocks: 24345
  Show dependency tree
 
Reported: 2015-11-05 13:26 PST by Caroline Tice
Modified: 2015-11-13 11:38 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Tice 2015-11-05 13:26:24 PST
If you build a ChromeOS image for daisy using the LLVM compiler, load the image onto a daisy Chromebook and try to run the Octane telemetry test on that Chromebook, it times out.  GCC-built images do not have this problem.

python /var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/perf/run_benchmark --browser=cros-chrome --remote=chromeos2-row5-rack4-host6.cros  octane
[ RUN      ] http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1
Traceback (most recent call last):
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/story_runner.py", line 83, in _RunStoryAndProcessErrorIfNeeded
    state.RunStory(results)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/page/shared_page_state.py", line 298, in RunStory
    self._current_page.Run(self)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/page/__init__.py", line 84, in Run
    shared_state.page_test.RunNavigateSteps(self, current_tab)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/page/page_test.py", line 181, in RunNavigateSteps
    page.RunNavigateSteps(action_runner)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/page/__init__.py", line 93, in RunNavigateSteps
    url, script_to_evaluate_on_commit=self.script_to_evaluate_on_commit)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/page/action_runner.py", line 121, in Navigate
    timeout_in_seconds=timeout_in_seconds))
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/page/action_runner.py", line 44, in _RunAction
    action.RunAction(self._tab)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/actions/navigate.py", line 23, in RunAction
    self._timeout_in_seconds)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/browser/web_contents.py", line 245, in Navigate
    self._inspector_backend.Navigate(url, script_to_evaluate_on_commit, timeout)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py", line 38, in inner
    inspector_backend._ConvertExceptionFromInspectorWebsocket(e)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py", line 35, in inner
    return func(inspector_backend, *args, **kwargs)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py", line 183, in Navigate
    self._page.Navigate(url, script_to_evaluate_on_commit, timeout)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_page.py", line 104, in Navigate
    self._SetScriptToEvaluateOnCommit(script_to_evaluate_on_commit)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_page.py", line 70, in _SetScriptToEvaluateOnCommit
    res = self._inspector_websocket.SyncRequest(request)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_websocket.py", line 110, in SyncRequest
    res = self._Receive(timeout)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_websocket.py", line 149, in _Receive
    data = self._socket.recv()
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/third_party/websocket-client/websocket.py", line 596, in recv
    opcode, data = self.recv_data()
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/third_party/websocket-client/websocket.py", line 606, in recv_data
    frame = self.recv_frame()
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/third_party/websocket-client/websocket.py", line 637, in recv_frame
    self._frame_header = self._recv_strict(2)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/third_party/websocket-client/websocket.py", line 746, in _recv_strict
    bytes = self._recv(shortage)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/third_party/websocket-client/websocket.py", line 732, in _recv
    raise WebSocketTimeoutException(e.message)
TimeoutException: 
********************************************************************************
(/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py:351 _ConvertExceptionFromInspectorWebsocket) Original exception:
timed out
********************************************************************************
(/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py:372 _AddDebuggingInformation) Received a socket error in the browser connection and the tab still exists. The operation probably timed out.
********************************************************************************
(/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_backend.py:373 _AddDebuggingInformation) Debugger url: ws://127.0.0.1:43225/devtools/page/A6FDCAF4-AF9D-4710-98C2-819B6346D6CB

[  FAILED  ] http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1 (26401 ms)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ]  http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1

1 FAILED TEST

Pages: []
RESULT telemetry_page_measurement_results: num_failed= 1 count
RESULT telemetry_page_measurement_results: num_errored= 0 count

View result at file:///var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/perf/results.html
(WARNING) 2015-10-24 12:41:25,756 webpagereplay.StopServer:226  Attempting to stop WPR server that is not running.
Comment 1 Caroline Tice 2015-11-05 13:32:52 PST
f you build a ChromeOS image for daisy using the LLVM compiler, load the image onto a daisy Chromebook and try to run the Kraken telemetry test on that Chromebook, it times out.  GCC-built images do not have this problem.

python /var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/perf/run_benchmark --browser=cros-chrome --remote=chromeos2-row5-rack4-host6.cros  kraken
[ RUN      ] http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html
Traceback (most recent call last):
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/story_runner.py", line 83, in _RunStoryAndProcessErrorIfNeeded
    state.RunStory(results)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/page/shared_page_state.py", line 300, in RunStory
    self._current_page, self._current_tab, results)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/perf/benchmarks/kraken.py", line 88, in ValidateAndMeasurePage
    'document.title.indexOf("Results") != -1', 700)
  File "/var/cache/chromeos-cache/distfiles/target/chrome-src-internal/src/tools/telemetry/telemetry/internal/browser/web_contents.py", line 129, in WaitForJavaScriptExpression
    """))
TimeoutException: Timed out while waiting 700s for IsJavaScriptExpressionTrue.

JavaScript |this|:
	external: [object Object]
	chrome: [object Object]
	document: [object HTMLDocument]
	tests: ai-astar,audio-beat-detection,audio-dft,audio-fft,audio-oscillator,imaging-gaussian-blur,imaging-darkroom,imaging-desaturate,json-parse-financial,json-stringify-tinderbox,stanford-crypto-aes,stanford-crypto-ccm,stanford-crypto-pbkdf2,stanford-crypto-sha256-iterative
	categories: ai,audio,imaging,json,stanford
	testContents: <!DOCTYPE html>
<head>

<meta charset=utf8>

...
Then comes a bunch of screen dumps of source files: 

Captured full dump in a file, which is too big to attach to this bug.  Email me for a copy of it.
Comment 2 Caroline Tice 2015-11-05 13:36:35 PST
The "second" comment, about Kraken, was a failed attempt to create a new bug. ignore it.
Comment 3 James Molloy 2015-11-13 10:17:44 PST
Hi Caroline,

I'm afraid this bug report doesn't have enough detail to investigate. From the description it could either be a compiler malfunction or undefined/implementation defined behaviour being relied upon by the program.

I'm afraid compiling up a ChromeOS image and obtaining hardware is beyond the expectataion for a bug investigation on our side. Unfortunately you'll have to investigate further before we can help.

Cheers,

James
Comment 4 Caroline Tice 2015-11-13 11:38:33 PST
Will do.