panic: runtime error: index out of range [0] with length 0 goroutine 534 [running]: panic(0x12f1c60, 0xc0007341f8) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc0007b8910 sp=0xc0007b8848 pc=0x437c65 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc0007b8958 sp=0xc0007b8910 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(0xc000b9e2a0, 0x158b098, 0xc000b1266a, 0xc00001a900, 0x0, 0x0) pkg/tcpip/network/ipv4/icmp.go:680 +0xede fp=0xc0007b8bc8 sp=0xc0007b8958 pc=0xbcc25e gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000014e00, 0xc00073828e, 0x18, 0x34, 0xc00001a900, 0xc00003fe38, 0x7) pkg/tcpip/network/ipv4/ipv4.go:1176 +0x112a fp=0xc0007b9390 sp=0xc0007b8bc8 pc=0xbd432a gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000014e00, 0xc00001a900) pkg/tcpip/network/ipv4/ipv4.go:1028 +0x19d fp=0xc0007b95f0 sp=0xc0007b9390 pc=0xbd2bfd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000626700, 0xc000b125da, 0x6, 0x0, 0x0, 0x800, 0xc00001a900) pkg/tcpip/stack/nic.go:948 +0x370 fp=0xc0007b9698 sp=0xc0007b95f0 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(0xc000578428, 0xc00073828e, 0x42, 0x34, 0x20000000, 0x42, 0x100) pkg/tcpip/link/tun/device.go:290 +0x3aa fp=0xc0007b9770 sp=0xc0007b9698 pc=0xc0988a gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc0005783c0, 0x15aa460, 0xc000728a80, 0x15a51f0, 0xc000864000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:175 +0x1ac fp=0xc0007b9840 sp=0xc0007b9770 pc=0xff726c gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc0005783c0, 0x15aa460, 0xc000728a80, 0x15a51f0, 0xc000864000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/vfs/file_description.go:747 +0xc3 fp=0xc0007b98d8 sp=0xc0007b9840 pc=0x7789c3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0xc000728a80, 0xc0005783c0, 0x15a51f0, 0xc000864000, 0x0, 0x1, 0x20000000, 0x42, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:423 +0xa5 fp=0xc0007b9a78 sp=0xc0007b98d8 pc=0xf35ec5 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc000728a80, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:386 +0x293 fp=0xc0007b9ba8 sp=0xc0007b9a78 pc=0xf356d3 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000728a80, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x1, 0x13ddd80, ...) pkg/sentry/kernel/task_syscall.go:115 +0x1b9 fp=0xc0007b9c68 sp=0xc0007b9ba8 pc=0xa66619 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000728a80, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:290 +0x70 fp=0xc0007b9cf0 sp=0xc0007b9c68 pc=0xa678f0 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000728a80, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0xf9416c, 0xc000a06468) pkg/sentry/kernel/task_syscall.go:237 +0xb4 fp=0xc0007b9d50 sp=0xc0007b9cf0 pc=0xa673d4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000728a80, 0x2, 0xc000728a80) pkg/sentry/kernel/task_syscall.go:204 +0x198 fp=0xc0007b9e20 sp=0xc0007b9d50 pc=0xa66cb8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000728a80, 0x157e4a0, 0x0) pkg/sentry/kernel/task_run.go:327 +0xe15 fp=0xc0007b9f60 sp=0xc0007b9e20 pc=0xa59b75 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000728a80, 0xd) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc0007b9fd0 sp=0xc0007b9f60 pc=0xa58602 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0007b9fd8 sp=0xc0007b9fd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:380 +0x116