panic: runtime error: index out of range [0] with length 0 goroutine 501479 [running]: panic(0x1bacee0, 0xc000af00d8) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000886968 sp=0xc0008868a0 pc=0x43a6c5 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc0008869b0 sp=0xc000886968 pc=0x437a25 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc005d4c5a8, 0x33b8d18, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/link/tun/device.go:261 +0x9fc fp=0xc000886af0 sp=0xc0008869b0 pc=0x10fb81c gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc005d4c540, 0x1ebfc70, 0xc00772cb80, 0x1eba080, 0xc006192000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:177 +0x1f2 fp=0xc000886ba0 sp=0xc000886af0 pc=0x170f792 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).PWrite(0xc005d4c540, 0x1ebfc70, 0xc00772cb80, 0x1eba080, 0xc006192000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/devices/tundev/tundev.go:165 +0x107 fp=0xc000886c70 sp=0xc000886ba0 pc=0x170f527 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).PWrite(0xc005d4c540, 0x1ebfc70, 0xc00772cb80, 0x1eba080, 0xc006192000, 0x0, 0x1, 0x0, 0x0, 0x0, ...) pkg/sentry/vfs/file_description.go:732 +0x1b3 fp=0xc000886d50 sp=0xc000886c70 pc=0x9b40f3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.getAIOCallback.func1(0x1ebfc70, 0xc00772cb80) pkg/sentry/syscalls/linux/vfs2/aio.go:227 +0x6dd fp=0xc000886f98 sp=0xc000886d50 pc=0x1626e3d gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO.func1(0xc00144c8c0, 0x1ebfc70, 0xc00772cb80, 0xc00019234c) pkg/sentry/kernel/aio.go:35 +0x62 fp=0xc000886fc0 sp=0xc000886f98 pc=0xe9f682 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000886fc8 sp=0xc000886fc0 pc=0x477541 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).QueueAIO pkg/sentry/kernel/aio.go:33 +0x195