panic: runtime error: index out of range [0] with length 0 goroutine 486 [running]: panic(0x11eb960, 0xc000642210) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000414820 sp=0xc000414758 pc=0x437c65 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc000414868 sp=0xc000414820 pc=0x434fc5 gvisor.dev/gvisor/pkg/tcpip/header.ICMPv4.Type(...) pkg/tcpip/header/icmpv4.go:118 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*protocol).returnError(0xc0004582a0, 0x14574f8, 0xc000596962, 0xc000238fc0, 0x0, 0x0) pkg/tcpip/network/ipv4/icmp.go:575 +0xca5 fp=0xc000414ad8 sp=0xc000414868 pc=0xb14905 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000469c00, 0xc00037491e, 0x18, 0x34, 0xc000238fc0, 0xc000212778, 0x7) pkg/tcpip/network/ipv4/ipv4.go:963 +0xd8c fp=0xc0004152a0 sp=0xc000414ad8 pc=0xb1b64c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000469c00, 0xc000238fc0) pkg/tcpip/network/ipv4/ipv4.go:851 +0x166 fp=0xc000415500 sp=0xc0004152a0 pc=0xb1a326 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00003a8c0, 0xc000596910, 0x6, 0x0, 0x0, 0x800, 0xc000238fc0) pkg/tcpip/stack/nic.go:781 +0x2b0 fp=0xc0004155a8 sp=0xc000415500 pc=0x94f3b0 gvisor.dev/gvisor/pkg/tcpip/link/channel.(*Endpoint).InjectLinkAddr(...) pkg/tcpip/link/channel/channel.go:195 gvisor.dev/gvisor/pkg/tcpip/link/tun.(*Device).Write(0xc0001fc1e8, 0xc00037491e, 0x42, 0x34, 0x0, 0x1, 0x20000000) pkg/tcpip/link/tun/device.go:235 +0x2d3 fp=0xc000415678 sp=0xc0004155a8 pc=0xb4a3b3 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc0001fc180, 0x1476ce0, 0xc0003cd500, 0x14719b0, 0xc00055e000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:146 +0x1f0 fp=0xc000415780 sp=0xc000415678 pc=0xef83b0 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc0001fc180, 0x1476ce0, 0xc0003cd500, 0x14719b0, 0xc00055e000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/vfs/file_description.go:657 +0xb4 fp=0xc000415818 sp=0xc000415780 pc=0x747bb4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0xc0003cd500, 0xc0001fc180, 0x14719b0, 0xc00055e000, 0x0, 0x1, 0x20000000, 0x42, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:345 +0x9b fp=0xc0004159d0 sp=0xc000415818 pc=0xe4213b gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc0003cd500, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:314 +0x245 fp=0xc000415b00 sp=0xc0004159d0 pc=0xe41a25 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0003cd500, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x12d7840, ...) pkg/sentry/kernel/task_syscall.go:103 +0x13c fp=0xc000415c60 sp=0xc000415b00 pc=0x9d7cfc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0003cd500, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc000415ce8 sp=0xc000415c60 pc=0x9d8e86 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0003cd500, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0xc000690648, 0xc0001e4360) pkg/sentry/kernel/task_syscall.go:198 +0x98 fp=0xc000415d48 sp=0xc000415ce8 pc=0x9d8a78 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0003cd500, 0x2, 0xc0003cd500) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc000415e18 sp=0xc000415d48 pc=0x9d841c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0003cd500, 0x144a900, 0x0) pkg/sentry/kernel/task_run.go:282 +0xc8c fp=0xc000415f60 sp=0xc000415e18 pc=0x9cd0ac gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0003cd500, 0xe) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc000415fd0 sp=0xc000415f60 pc=0x9cbd2f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000415fd8 sp=0xc000415fd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe