panic: runtime error: index out of range goroutine 1315 [running]: unicode/utf8.EncodeRune(0xc0002f40c8, 0x1, 0x8, 0xd5, 0x1) GOROOT/src/unicode/utf8/utf8.go:346 +0x148 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*outputQueueTransformer).transform(0x14385f8, 0xc0006a6a80, 0xc0006a6ae8, 0xc0002f40c0, 0x0, 0x0, 0x8) pkg/sentry/fs/tty/line_discipline.go:325 +0x2ee gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).pushWaitBufLocked(0xc0006a6ae8, 0xc0006a6a80, 0xc00065f500) pkg/sentry/fs/tty/queue.go:227 +0xa2 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).write(0xc0006a6ae8, 0xdd9e20, 0xc00065f500, 0xdd8e60, 0xc00079a000, 0x0, 0x1, 0x200000c0, 0x1, 0x100, ...) pkg/sentry/fs/tty/queue.go:187 +0x1b2 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*lineDiscipline).outputQueueWrite(0xc0006a6a80, 0xdd9e20, 0xc00065f500, 0xdd8e60, 0xc00079a000, 0x0, 0x1, 0x200000c0, 0x1, 0x100, ...) pkg/sentry/fs/tty/line_discipline.go:240 +0xef gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*slaveFileOperations).Write(0xc0003e8068, 0xdd9e20, 0xc00065f500, 0xc00029b320, 0xdd8e60, 0xc00079a000, 0x0, 0x1, 0x200000c0, 0x1, ...) pkg/sentry/fs/tty/slave.go:125 +0x88 gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Writev(0xc00029b320, 0xdd9e20, 0xc00065f500, 0xdd8e60, 0xc00079a000, 0x0, 0x1, 0x200000c0, 0x1, 0x100, ...) pkg/sentry/fs/file.go:314 +0x172 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.writev(0xc00065f500, 0xc00029b320, 0xdd8e60, 0xc00079a000, 0x0, 0x1, 0x200000c0, 0x1, 0x100, 0x1, ...) pkg/sentry/syscalls/linux/sys_write.go:261 +0x90 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.Write(0xc00065f500, 0x4, 0x200000c0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_write.go:71 +0x1d1 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00065f500, 0x1, 0x4, 0x200000c0, 0x1, 0x0, 0x0, 0x0, 0xc00051cd08, 0xc00051cdc0, ...) pkg/sentry/kernel/task_syscall.go:165 +0x10a gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00065f500, 0x1, 0x4, 0x200000c0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:283 +0x69 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00065f500, 0x1, 0x4, 0x200000c0, 0x1, 0x0, 0x0, 0x0, 0xc0005f23c0, 0xde9740) pkg/sentry/kernel/task_syscall.go:244 +0x96 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00065f500, 0x2, 0xc00021c480) pkg/sentry/kernel/task_syscall.go:219 +0x13d gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00065f500, 0xdc1bc0, 0x0) pkg/sentry/kernel/task_run.go:215 +0x109b gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc00065f500, 0x48) pkg/sentry/kernel/task_run.go:91 +0x194 created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:279 +0xfe