Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Wash fails with "send on closed channel" #562

Closed
MikaelSmith opened this issue Oct 24, 2019 · 0 comments · Fixed by #569
Closed

Wash fails with "send on closed channel" #562

MikaelSmith opened this issue Oct 24, 2019 · 0 comments · Fixed by #569
Assignees
Labels
bug Something isn't working

Comments

@MikaelSmith
Copy link
Contributor

I was exploring Wash in a GCP instance. I tabbed to auto-complete ls fs/, then hit Ctrl-C almost immediately. Wash panicked with

wash gcp/Wash/compute/michael-test-instance ❯ ls fs/WARN FUSE: List /gcp/Wash/compute/michael-test-instance/fs errored: exec errored: [context canceled context canceled]
                                              ls fs/panic: send on closed channel
Killed by signal in _path_files after 0s
goroutine 1782 [running]:
github.com/puppetlabs/wash/plugin.(*OutputStream).sendError(...)
	/Users/michaelsmith/puppetlabs/wash/plugin/outputStream.go:25
github.com/puppetlabs/wash/plugin.(*OutputStream).WriteWithTimestamp(0xc00181b4f0, 0xbf64a8c844c85d80, 0x60a7c2213f, 0x7189480, 0xc001998000, 0x32, 0x8000, 0x0, 0x0)
	/Users/michaelsmith/puppetlabs/wash/plugin/outputStream.go:32 +0xf7
github.com/puppetlabs/wash/plugin.(*OutputStream).Write(0xc00181b4f0, 0xc001998000, 0x32, 0x8000, 0x32, 0x0, 0x0)
	/Users/michaelsmith/puppetlabs/wash/plugin/outputStream.go:42 +0x6f
io.copyBuffer(0x613b4a0, 0xc00181b4f0, 0x7f93318, 0xc001734cc0, 0xc001998000, 0x8000, 0x8000, 0x616d3c0, 0xc0017d4540, 0x8)
	/usr/local/Cellar/go/1.13.3/libexec/src/io/io.go:404 +0x1fb
io.Copy(...)
	/usr/local/Cellar/go/1.13.3/libexec/src/io/io.go:364
golang.org/x/crypto/ssh.(*Session).stdout.func1(0x0, 0x0)
	/Users/michaelsmith/.go/pkg/mod/golang.org/x/[email protected]/ssh/session.go:511 +0x8c
golang.org/x/crypto/ssh.(*Session).start.func1(0xc010820870, 0xc0108b1890)
	/Users/michaelsmith/.go/pkg/mod/golang.org/x/[email protected]/ssh/session.go:383 +0x27
created by golang.org/x/crypto/ssh.(*Session).start
	/Users/michaelsmith/.go/pkg/mod/golang.org/x/[email protected]/ssh/session.go:382 +0xfe

zsh: error on TTY read: Input/output error
@MikaelSmith MikaelSmith added the bug Something isn't working label Oct 24, 2019
@ekinanp ekinanp self-assigned this Nov 5, 2019
ekinanp added a commit to ekinanp/wash that referenced this issue Nov 5, 2019
ekinanp added a commit to ekinanp/wash that referenced this issue Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants