panic: runtime error: index out of range goroutine 1852682 [running]: unicode/utf8.EncodeRune(0xc0012889e0, 0x1, 0x8, 0xc0000000c0, 0x1) GOROOT/src/unicode/utf8/utf8.go:346 +0x29f gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*inputQueueTransformer).transform(0x23e9c70, 0xc000472f20, 0xc000472f30, 0xc001090921, 0x10, 0x10, 0xc00010eec0) pkg/sentry/fs/tty/line_discipline.go:403 +0x4a3 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).pushWaitBufLocked(0xc000472f30, 0xc000472f20, 0xc0037a0000) pkg/sentry/fs/tty/queue.go:227 +0x193 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).write(0xc000472f30, 0x12d1200, 0xc0037a0000, 0x12d0300, 0xc00185cd80, 0x0, 0x1, 0x200000c0, 0x11, 0x100, ...) pkg/sentry/fs/tty/queue.go:187 +0x1d3 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*lineDiscipline).inputQueueWrite(0xc000472f20, 0x12d1200, 0xc0037a0000, 0x12d0300, 0xc00185cd80, 0x0, 0x1, 0x200000c0, 0x11, 0x100, ...) pkg/sentry/fs/tty/line_discipline.go:205 +0x148 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*masterFileOperations).Write(0xc0008266f0, 0x12d1200, 0xc0037a0000, 0xc0011da360, 0x12d0300, 0xc00185cd80, 0x0, 0x1, 0x200000c0, 0x11, ...) pkg/sentry/fs/tty/master.go:141 +0x11d gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Writev(0xc0011da360, 0x12d1200, 0xc0037a0000, 0x12d0300, 0xc00185cd80, 0x0, 0x1, 0x200000c0, 0x11, 0x100, ...) pkg/sentry/fs/file.go:314 +0x1fd gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.writev(0xc0037a0000, 0xc0011da360, 0x12d0300, 0xc00185cd80, 0x0, 0x1, 0x200000c0, 0x11, 0x100, 0x11, ...) pkg/sentry/syscalls/linux/sys_write.go:261 +0xe1 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Write(0xc0037a0000, 0x3, 0x200000c0, 0x11, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_write.go:71 +0x294 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0037a0000, 0x1, 0x3, 0x200000c0, 0x11, 0x0, 0x0, 0x0, 0x465c01, 0xc0037a07d8, ...) pkg/sentry/kernel/task_syscall.go:165 +0x408 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0037a0000, 0x1, 0x3, 0x200000c0, 0x11, 0x0, 0x0, 0x0, 0x1, 0xc000175770) pkg/sentry/kernel/task_syscall.go:283 +0xb5 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0037a0000, 0x1, 0x3, 0x200000c0, 0x11, 0x0, 0x0, 0x0, 0xc0014a7d40, 0xd27595) pkg/sentry/kernel/task_syscall.go:244 +0x10a gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0037a0000, 0x2, 0xc0008b6180) pkg/sentry/kernel/task_syscall.go:219 +0x1b7 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0037a0000, 0x12b8720, 0x0) pkg/sentry/kernel/task_run.go:215 +0x1853 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc0037a0000, 0xaf2a) pkg/sentry/kernel/task_run.go:91 +0x2e6 created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:279 +0x19e