New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 848214 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit 15 days ago
Closed: May 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

ArcBridgeService doesn't start due to 'Invalid initial handshake' error.

Project Member Reported by yhanada@chromium.org, May 31 2018

Issue description

I found the following error message in logcat:
'ArcBridgeService: Invalid initial handshake.'

The culprit seems to be crrev.com/c/1070882. It changes the first byte of the message from 32 to |base::NumberToString(base::RandUint64()).length()|
 
rewriting |base::NumberToString(base::RandUint64()| at L183 in arc_session_impl.cc to |mojo::edk::GenerateRandomToken()| fixes the issue on my local machine. I don't know whether it's a proper fix or not though.
Cc: phshah@chromium.org lhchavez@chromium.org hirono@chromium.org agicsaki@chromium.org cmtm@chromium.org hidehiko@chromium.org coconutruben@chromium.org henryhsu@chromium.org
Owner: roc...@chromium.org
Thank you for finding it.

Assigned to rockot@, the CL's owner.
CC+=Luis, ChromeOS sheriffs and ARC constables.

This looks blocking Chrome PFQ. Shall we revert as a first step?

+1 to revert. It also blocks developers.
Owner: lhchavez@chromium.org
Created https://chromium-review.googlesource.com/c/chromium/src/+/1080006 as roll-forward. This might reduce the total amount of churn.
Status: Started (was: Assigned)
Project Member

Comment 6 by bugdroid1@chromium.org, May 31 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/289fe393b405bbfd5669a4bb67167ebe14e33ca3

commit 289fe393b405bbfd5669a4bb67167ebe14e33ca3
Author: Luis Hector Chavez <lhchavez@google.com>
Date: Thu May 31 13:46:27 2018

arc: Use a 32-byte handshake

This change uses mojo::edk::GenerateRandomToken() to generate the token,
since it produces a 32-byte string.

BUG= 848214 
TEST=ARC starts again

Change-Id: Ie468718edc1b8f43b66dc8edd1863a71a1c5597b
Reviewed-on: https://chromium-review.googlesource.com/1080006
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Ken Rockot <rockot@chromium.org>
Commit-Queue: Luis Hector Chavez <lhchavez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563212}
[modify] https://crrev.com/289fe393b405bbfd5669a4bb67167ebe14e33ca3/components/arc/arc_session_impl.cc

Status: Fixed (was: Started)

Sign in to add a comment