panic: runtime error: index out of range goroutine 791390 [running]: unicode/utf8.EncodeRune(0xc0002e6948, 0x1, 0x8, 0xcc, 0x1) GOROOT/src/unicode/utf8/utf8.go:346 +0x148 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*inputQueueTransformer).transform(0x146a610, 0xc000137600, 0xc000137610, 0xc00021ec01, 0x386, 0x387, 0xc000000008) pkg/sentry/fs/tty/line_discipline.go:403 +0x3f5 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).pushWaitBufLocked(0xc000137610, 0xc000137600, 0xc001210a80) pkg/sentry/fs/tty/queue.go:227 +0xa2 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*queue).write(0xc000137610, 0xdf9be0, 0xc001210a80, 0xdf8c20, 0xc000b37b00, 0x0, 0x1, 0x20000080, 0x387, 0x100, ...) pkg/sentry/fs/tty/queue.go:187 +0x1b2 gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*lineDiscipline).inputQueueWrite(0xc000137600, 0xdf9be0, 0xc001210a80, 0xdf8c20, 0xc000b37b00, 0x0, 0x1, 0x20000080, 0x387, 0x100, ...) pkg/sentry/fs/tty/line_discipline.go:205 +0xef gvisor.googlesource.com/gvisor/pkg/sentry/fs/tty.(*masterFileOperations).Write(0xc000648040, 0xdf9be0, 0xc001210a80, 0xc000b9b3b0, 0xdf8c20, 0xc000b37b00, 0x0, 0x1, 0x20000080, 0x387, ...) pkg/sentry/fs/tty/master.go:141 +0x85 gvisor.googlesource.com/gvisor/pkg/sentry/fs.(*File).Writev(0xc000b9b3b0, 0xdf9be0, 0xc001210a80, 0xdf8c20, 0xc000b37b00, 0x0, 0x1, 0x20000080, 0x387, 0x100, ...) pkg/sentry/fs/file.go:314 +0x172 gvisor.googlesource.com/gvisor/pkg/sentry/syscalls/linux.writev(0xc001210a80, 0xc000b9b3b0, 0xdf8c20, 0xc000b37b00, 0x0, 0x1, 0x20000080, 0x387, 0x100, 0x387, ...) pkg/sentry/syscalls/linux/sys_write.go:261 +0x90 DIAGNOSIS: I0403 16:28:34.017249 13394 x:0] *************************** I0403 16:28:34.017328 13394 x:0] Args: [/syzkaller/managers/ptrace-direct-overlay-host/current/image -root /syzkaller/managers/ptrace-direct-overlay-host/workdir/gvisor_root -watchdog-action=panic -network=none -debug -platform=ptrace -file-access=shared -network=host debug -stacks ci-gvisor-ptrace-direct-overlay-host-2] I0403 16:28:34.017339 13394 x:0] Version release-20190304.1-78-gc4caccd54042 I0403 16:28:34.017343 13394 x:0] PID: 13394 I0403 16:28:34.017348 13394 x:0] UID: 0, GID: 0 I0403 16:28:34.017363 13394 x:0] Configuration: I0403 16:28:34.017366 13394 x:0] RootDir: /syzkaller/managers/ptrace-direct-overlay-host/workdir/gvisor_root I0403 16:28:34.017369 13394 x:0] Platform: ptrace I0403 16:28:34.017375 13394 x:0] FileAccess: shared, overlay: false I0403 16:28:34.017380 13394 x:0] Network: host, logging: false I0403 16:28:34.017385 13394 x:0] Strace: false, max size: 1024, syscalls: [] I0403 16:28:34.017388 13394 x:0] *************************** D0403 16:28:34.017405 13394 x:0] Load container "/syzkaller/managers/ptrace-direct-overlay-host/workdir/gvisor_root" "ci-gvisor-ptrace-direct-overlay-host-2" D0403 16:28:34.018700 13394 x:0] Signal container "ci-gvisor-ptrace-direct-overlay-host-2": signal 0 D0403 16:28:34.018724 13394 x:0] Signal sandbox "ci-gvisor-ptrace-direct-overlay-host-2" D0403 16:28:34.018728 13394 x:0] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-2" D0403 16:28:34.018864 13394 x:0] urpc: successfully marshalled 118 bytes. I0403 16:28:34.295392 13394 x:0] Found sandbox "ci-gvisor-ptrace-direct-overlay-host-2", PID: 61144 I0403 16:28:34.295406 13394 x:0] Retrieving sandbox stacks D0403 16:28:34.295410 13394 x:0] Stacks sandbox "ci-gvisor-ptrace-direct-overlay-host-2" D0403 16:28:34.295415 13394 x:0] Connecting to sandbox "ci-gvisor-ptrace-direct-overlay-host-2" W0403 16:28:34.295457 13394 x:0] FATAL ERROR: retrieving stacks: connecting to control server at PID 61144: connection refused retrieving stacks: connecting to control server at PID 61144: connection refused