panic: runtime error: index out of range [0] with length 0 goroutine 175 [running]: panic(0x11eb960, 0xc0000f74d0) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000174820 sp=0xc000174758 pc=0x437c65 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc000174868 sp=0xc000174820 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(0xc0004be700, 0x14574f8, 0xc0005b9c92, 0xc0002ab0e0, 0x0, 0x0) pkg/tcpip/network/ipv4/icmp.go:575 +0xca5 fp=0xc000174ad8 sp=0xc000174868 pc=0xb14905 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc0004bca00, 0xc0004ca5fe, 0x18, 0x34, 0xc0002ab0e0, 0xc0005b9470, 0x7) pkg/tcpip/network/ipv4/ipv4.go:963 +0xd8c fp=0xc0001752a0 sp=0xc000174ad8 pc=0xb1b64c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0004bca00, 0xc0002ab0e0) pkg/tcpip/network/ipv4/ipv4.go:851 +0x166 fp=0xc000175500 sp=0xc0001752a0 pc=0xb1a326 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc0001fdc00, 0xc0005b9c50, 0x6, 0x0, 0x0, 0x800, 0xc0002ab0e0) pkg/tcpip/stack/nic.go:781 +0x2b0 fp=0xc0001755a8 sp=0xc000175500 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(0xc00030e7e8, 0xc0004ca5fe, 0x42, 0x34, 0x0, 0x1, 0x20000000) pkg/tcpip/link/tun/device.go:235 +0x2d3 fp=0xc000175678 sp=0xc0001755a8 pc=0xb4a3b3 gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc00030e780, 0x1476ce0, 0xc00026aa80, 0x14719b0, 0xc000577000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:146 +0x1f0 fp=0xc000175780 sp=0xc000175678 pc=0xef83b0 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc00030e780, 0x1476ce0, 0xc00026aa80, 0x14719b0, 0xc000577000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/vfs/file_description.go:657 +0xb4 fp=0xc000175818 sp=0xc000175780 pc=0x747bb4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0xc00026aa80, 0xc00030e780, 0x14719b0, 0xc000577000, 0x0, 0x1, 0x20000000, 0x42, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:345 +0x9b fp=0xc0001759d0 sp=0xc000175818 pc=0xe4213b gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc00026aa80, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:314 +0x245 fp=0xc000175b00 sp=0xc0001759d0 pc=0xe41a25 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00026aa80, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0xc000001fa0, 0x12d7840, ...) pkg/sentry/kernel/task_syscall.go:103 +0x13c fp=0xc000175c60 sp=0xc000175b00 pc=0x9d7cfc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00026aa80, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc000175ce8 sp=0xc000175c60 pc=0x9d8e86 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00026aa80, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:198 +0x98 fp=0xc000175d48 sp=0xc000175ce8 pc=0x9d8a78 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00026aa80, 0x2, 0xc00026aa80) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc000175e18 sp=0xc000175d48 pc=0x9d841c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00026aa80, 0x144a900, 0x0) pkg/sentry/kernel/task_run.go:282 +0xc8c fp=0xc000175f60 sp=0xc000175e18 pc=0x9cd0ac gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00026aa80, 0xf) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc000175fd0 sp=0xc000175f60 pc=0x9cbd2f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000175fd8 sp=0xc000175fd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe