panic: runtime error: index out of range [0] with length 0 goroutine 262921 [running]: panic(0x1bacee0, 0xc004842210) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc00162f048 sp=0xc00162ef80 pc=0x43a6c5 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc00162f090 sp=0xc00162f048 pc=0x437a25 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc0021388a8, 0x33b8d18, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/link/tun/device.go:261 +0x9fc fp=0xc00162f1d0 sp=0xc00162f090 pc=0x10fb81c gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc002138840, 0x1ebfad8, 0xc001d55500, 0x1eba080, 0xc004152000, 0x0, 0x1, 0x0, 0x0, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:177 +0x1f2 fp=0xc00162f280 sp=0xc00162f1d0 pc=0x170f792 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).PWrite(0xc002138840, 0x1ebfad8, 0xc001d55500, 0x1eba080, 0xc004152000, 0x0, 0x1, 0x0, 0x0, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:165 +0x107 fp=0xc00162f350 sp=0xc00162f280 pc=0x170f527 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).PWrite(0xc002138840, 0x1ebfad8, 0xc001d55500, 0x1eba080, 0xc004152000, 0x0, 0x1, 0x0, 0x0, 0x100, ...) pkg/sentry/vfs/file_description.go:732 +0x1b3 fp=0xc00162f430 sp=0xc00162f350 pc=0x9b40f3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.pwrite(0xc001d55500, 0xc002138840, 0x1eba080, 0xc004152000, 0x0, 0x1, 0x0, 0x0, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:631 +0x113 fp=0xc00162f608 sp=0xc00162f430 pc=0x15e60b3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Pwrite64(0xc001d55500, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:528 +0x4c9 fp=0xc00162f7d8 sp=0xc00162f608 pc=0x15e4ea9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001d55500, 0x12, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc00162fa40, 0xc0031cba90, ...) pkg/sentry/kernel/task_syscall.go:116 +0x595 fp=0xc00162f9b8 sp=0xc00162f7d8 pc=0xe70835 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001d55500, 0x12, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc001d55ddf, 0xc001d55500) pkg/sentry/kernel/task_syscall.go:291 +0xd2 fp=0xc00162faa0 sp=0xc00162f9b8 pc=0xe72352 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc001d55500, 0x12, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000000000, 0xc00162fbb8) pkg/sentry/kernel/task_syscall.go:238 +0x157 fp=0xc00162fb48 sp=0xc00162faa0 pc=0xe71a17 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001d55500, 0x1, 0xc000000007) pkg/sentry/kernel/task_syscall.go:205 +0x2b1 fp=0xc00162fcc0 sp=0xc00162fb48 pc=0xe70f91 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc001d55500, 0x5, 0x0) pkg/sentry/kernel/task_run.go:296 +0x150b fp=0xc00162fee0 sp=0xc00162fcc0 pc=0xe5a80b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001d55500, 0x1864) pkg/sentry/kernel/task_run.go:100 +0x2f2 fp=0xc00162ffd0 sp=0xc00162fee0 pc=0xe58b12 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc00162ffd8 sp=0xc00162ffd0 pc=0x477541 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:400 +0x1da