panic: runtime error: index out of range goroutine 1024248 [running]: unicode/utf8.EncodeRune(0xc0010b45c0, 0x1, 0x140, 0xc000000080, 0x1) GOROOT/src/unicode/utf8/utf8.go:346 +0x29f gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*inputQueueTransformer).transform(0x23e9c70, 0xc0005129a0, 0xc0005129b0, 0xc0018c45c1, 0xf96d, 0xf96d, 0xc000928b40) pkg/sentry/fs/tty/line_discipline.go:403 +0x4a3 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).pushWaitBufLocked(0xc0005129b0, 0xc0005129a0, 0xc000da9500) pkg/sentry/fs/tty/queue.go:227 +0x193 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).write(0xc0005129b0, 0x12d1200, 0xc000da9500, 0x12d0300, 0xc000bb4d80, 0x0, 0x1, 0x200000c0, 0xff2e, 0x100, ...) pkg/sentry/fs/tty/queue.go:187 +0x1d3 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*lineDiscipline).inputQueueWrite(0xc0005129a0, 0x12d1200, 0xc000da9500, 0x12d0300, 0xc000bb4d80, 0x0, 0x1, 0x200000c0, 0xff2e, 0x100, ...) pkg/sentry/fs/tty/line_discipline.go:205 +0x148 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*masterFileOperations).Write(0xc0000f1470, 0x12d1200, 0xc000da9500, 0xc000a12510, 0x12d0300, 0xc000bb4d80, 0x0, 0x1, 0x200000c0, 0xff2e, ...) pkg/sentry/fs/tty/master.go:141 +0x11d gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Writev(0xc000a12510, 0x12d1200, 0xc000da9500, 0x12d0300, 0xc000bb4d80, 0x0, 0x1, 0x200000c0, 0xff2e, 0x100, ...) pkg/sentry/fs/file.go:314 +0x1fd gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.writev(0xc000da9500, 0xc000a12510, 0x12d0300, 0xc000bb4d80, 0x0, 0x1, 0x200000c0, 0xff2e, 0x100, 0xff2e, ...) pkg/sentry/syscalls/linux/sys_write.go:261 +0xe1 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Write(0xc000da9500, 0x4, 0x200000c0, 0xff2e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_write.go:71 +0x294 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000da9500, 0x1, 0x4, 0x200000c0, 0xff2e, 0x0, 0x0, 0x0, 0x465c01, 0xc000da9cd8, ...) pkg/sentry/kernel/task_syscall.go:165 +0x408 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000da9500, 0x1, 0x4, 0x200000c0, 0xff2e, 0x0, 0x0, 0x0, 0x1, 0xc0008042d0) pkg/sentry/kernel/task_syscall.go:283 +0xb5 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000da9500, 0x1, 0x4, 0x200000c0, 0xff2e, 0x0, 0x0, 0x0, 0xc000f27d40, 0xd27595) pkg/sentry/kernel/task_syscall.go:244 +0x10a gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000da9500, 0x2, 0xc0008514c0) pkg/sentry/kernel/task_syscall.go:219 +0x1b7 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000da9500, 0x12b8720, 0x0) pkg/sentry/kernel/task_run.go:215 +0x1853 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc000da9500, 0x709c) 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