panic: runtime error: index out of range [0] with length 0 goroutine 430 [running]: panic(0x12f1c60, 0xc0005c0120) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000c2a910 sp=0xc000c2a848 pc=0x437c65 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc000c2a958 sp=0xc000c2a910 pc=0x434fc5 gvisor.dev/gvisor/pkg/tcpip/header.ICMPv4.Type(...) pkg/tcpip/header/icmpv4.go:121 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*protocol).returnError(0xc0004645b0, 0x158b098, 0xc0006a2682, 0xc0006267e0, 0x0, 0x0) pkg/tcpip/network/ipv4/icmp.go:680 +0xede fp=0xc000c2abc8 sp=0xc000c2a958 pc=0xbcc25e gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000488300, 0xc00053823e, 0x18, 0x34, 0xc0006267e0, 0xc00003eca8, 0x7) pkg/tcpip/network/ipv4/ipv4.go:1176 +0x112a fp=0xc000c2b390 sp=0xc000c2abc8 pc=0xbd432a gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000488300, 0xc0006267e0) pkg/tcpip/network/ipv4/ipv4.go:1028 +0x19d fp=0xc000c2b5f0 sp=0xc000c2b390 pc=0xbd2bfd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000233c00, 0xc0006a2640, 0x6, 0x0, 0x0, 0x800, 0xc0006267e0) pkg/tcpip/stack/nic.go:948 +0x370 fp=0xc000c2b698 sp=0xc000c2b5f0 pc=0x9c8eb0 gvisor.dev/gvisor/pkg/tcpip/link/channel.(*Endpoint).InjectLinkAddr(...) pkg/tcpip/link/channel/channel.go:227 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc00052e068, 0xc00053823e, 0x42, 0x34, 0x20000000, 0x42, 0x100) pkg/tcpip/link/tun/device.go:290 +0x3aa fp=0xc000c2b770 sp=0xc000c2b698 pc=0xc0988a gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc00052e000, 0x15aa460, 0xc0006db500, 0x15a51f0, 0xc000849000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:175 +0x1ac fp=0xc000c2b840 sp=0xc000c2b770 pc=0xff726c gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc00052e000, 0x15aa460, 0xc0006db500, 0x15a51f0, 0xc000849000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/vfs/file_description.go:747 +0xc3 fp=0xc000c2b8d8 sp=0xc000c2b840 pc=0x7789c3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0xc0006db500, 0xc00052e000, 0x15a51f0, 0xc000849000, 0x0, 0x1, 0x20000000, 0x42, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:423 +0xa5 fp=0xc000c2ba78 sp=0xc000c2b8d8 pc=0xf35ec5 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc0006db500, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:386 +0x293 fp=0xc000c2bba8 sp=0xc000c2ba78 pc=0xf356d3 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0006db500, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0xc000001fa0, 0x13ddd80, ...) pkg/sentry/kernel/task_syscall.go:115 +0x1b9 fp=0xc000c2bc68 sp=0xc000c2bba8 pc=0xa66619 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0006db500, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:290 +0x70 fp=0xc000c2bcf0 sp=0xc000c2bc68 pc=0xa678f0 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0006db500, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:237 +0xb4 fp=0xc000c2bd50 sp=0xc000c2bcf0 pc=0xa673d4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0006db500, 0x2, 0xc0006db500) pkg/sentry/kernel/task_syscall.go:204 +0x198 fp=0xc000c2be20 sp=0xc000c2bd50 pc=0xa66cb8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0006db500, 0x157e4a0, 0x0) pkg/sentry/kernel/task_run.go:327 +0xe15 fp=0xc000c2bf60 sp=0xc000c2be20 pc=0xa59b75 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0006db500, 0x19) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc000c2bfd0 sp=0xc000c2bf60 pc=0xa58602 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000c2bfd8 sp=0xc000c2bfd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:380 +0x116