New issue
Advanced search Search tips

Issue 899944 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Nov 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

vsh fails to connect to VM from crosh

Project Member Reported by jkardatzke@chromium.org, Oct 29

Issue description

On Chrome OS 11203.0.0 on a kevin I can start Crostini from the terminal app in Chrome and get a terminal that way. But if I go to crosh and do 'vsh termina' then it fails.  

In crosh it says: "Failed to read message size from socket: Resource temporarily unavailable", "Failed to receive response from vshd"


In /var/log/messages it says 'Failed to accept connection from client: Invalid argument'.
 
Components: OS>Systems>Containers
Labels: -Type-Bug -Pri-2 M-72 Pri-1 Type-Bug-Regression
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 31

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/4a70efb99739508a87797603b2bfc8b4aa2caf14

commit 4a70efb99739508a87797603b2bfc8b4aa2caf14
Author: Stephen Barber <smbarber@chromium.org>
Date: Wed Oct 31 15:17:28 2018

vm_tools: vsh: set addrlen for accept4

accept4(2) says that addrlen must be initialized by the caller.

BUG= chromium:899944 
TEST=`vsh termina` from crosh

Change-Id: I50845e287ffa7dca3beccdec2ddf70ef243275f5
Reviewed-on: https://chromium-review.googlesource.com/1308688
Commit-Ready: Stephen Barber <smbarber@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>

[modify] https://crrev.com/4a70efb99739508a87797603b2bfc8b4aa2caf14/vm_tools/vsh/vshd.cc

Status: Verified (was: Assigned)
Verified on component 11220.0.0

Sign in to add a comment