panic: runtime error: index out of range [0] with length 0 goroutine 363 [running]: panic(0x12f1c60, 0xc0005f9260) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc000cc8910 sp=0xc000cc8848 pc=0x437c65 runtime.goPanicIndex(0x0, 0x0) GOROOT/src/runtime/panic.go:88 +0xa5 fp=0xc000cc8958 sp=0xc000cc8910 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(0xc000346d20, 0x158b098, 0xc0003228da, 0xc000458120, 0x0, 0x0) pkg/tcpip/network/ipv4/icmp.go:680 +0xede fp=0xc000cc8bc8 sp=0xc000cc8958 pc=0xbcc25e gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc0001a2300, 0xc00025a9be, 0x18, 0x34, 0xc000458120, 0xc0002c8150, 0x7) pkg/tcpip/network/ipv4/ipv4.go:1176 +0x112a fp=0xc000cc9390 sp=0xc000cc8bc8 pc=0xbd432a gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0001a2300, 0xc000458120) pkg/tcpip/network/ipv4/ipv4.go:1028 +0x19d fp=0xc000cc95f0 sp=0xc000cc9390 pc=0xbd2bfd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000354e00, 0xc00032284a, 0x6, 0x0, 0x0, 0x800, 0xc000458120) pkg/tcpip/stack/nic.go:948 +0x370 fp=0xc000cc9698 sp=0xc000cc95f0 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(0xc0004d8428, 0xc00025a9be, 0x42, 0x34, 0x20000000, 0x42, 0x100) pkg/tcpip/link/tun/device.go:290 +0x3aa fp=0xc000cc9770 sp=0xc000cc9698 pc=0xc0988a gvisor.dev/gvisor/pkg/sentry/devices/tundev.(*tunFD).Write(0xc0004d83c0, 0x15aa460, 0xc000cbc000, 0x15a51f0, 0xc000c9a000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/devices/tundev/tundev.go:175 +0x1ac fp=0xc000cc9840 sp=0xc000cc9770 pc=0xff726c gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc0004d83c0, 0x15aa460, 0xc000cbc000, 0x15a51f0, 0xc000c9a000, 0x0, 0x1, 0x20000000, 0x42, 0x100, ...) pkg/sentry/vfs/file_description.go:747 +0xc3 fp=0xc000cc98d8 sp=0xc000cc9840 pc=0x7789c3 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0xc000cbc000, 0xc0004d83c0, 0x15a51f0, 0xc000c9a000, 0x0, 0x1, 0x20000000, 0x42, 0x100, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:423 +0xa5 fp=0xc000cc9a78 sp=0xc000cc98d8 pc=0xf35ec5 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc000cbc000, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:386 +0x293 fp=0xc000cc9ba8 sp=0xc000cc9a78 pc=0xf356d3 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000cbc000, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x1, 0x13ddd80, ...) pkg/sentry/kernel/task_syscall.go:115 +0x1b9 fp=0xc000cc9c68 sp=0xc000cc9ba8 pc=0xa66619 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000cbc000, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:290 +0x70 fp=0xc000cc9cf0 sp=0xc000cc9c68 pc=0xa678f0 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000cbc000, 0x1, 0xf0, 0x20000000, 0x42, 0x0, 0x0, 0x0, 0xf9416c, 0xc0007b1428) pkg/sentry/kernel/task_syscall.go:237 +0xb4 fp=0xc000cc9d50 sp=0xc000cc9cf0 pc=0xa673d4 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000cbc000, 0x2, 0xc000cbc000) pkg/sentry/kernel/task_syscall.go:204 +0x198 fp=0xc000cc9e20 sp=0xc000cc9d50 pc=0xa66cb8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000cbc000, 0x157e4a0, 0x0) pkg/sentry/kernel/task_run.go:327 +0xe15 fp=0xc000cc9f60 sp=0xc000cc9e20 pc=0xa59b75 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000cbc000, 0xd) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc000cc9fd0 sp=0xc000cc9f60 pc=0xa58602 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000cc9fd8 sp=0xc000cc9fd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:380 +0x116