panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x932cc6] goroutine 788244 [running]: panic(0x10ad9e0, 0x1bbdc30) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc089503ea8 sp=0xc089503de0 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc089503ec8 sp=0xc089503ea8 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc089503f00 sp=0xc089503ec8 pc=0x44f993 gvisor.dev/gvisor/pkg/tcpip/stack.(*PacketBuffer).headerView(0x0, 0x2, 0x0, 0x0, 0x0) pkg/tcpip/stack/packet_buffer.go:274 +0x26 fp=0xc089503f48 sp=0xc089503f00 pc=0x932cc6 gvisor.dev/gvisor/pkg/tcpip/stack.PacketHeader.View(...) pkg/tcpip/stack/packet_buffer.go:364 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*protocol).HandleUnknownDestinationPacket(0xc002c8b928, 0x0, 0x0, 0x0, 0x652c, 0xc00725f2d0, 0x0, 0x0, 0x4) pkg/tcpip/transport/udp/protocol.go:82 +0x65 fp=0xc089505300 sp=0xc089503f48 pc=0xae7865 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc0001f3c00, 0x11, 0xc0076b2800, 0x0) pkg/tcpip/stack/nic.go:834 +0x351 fp=0xc089505408 sp=0xc089505300 pc=0x9308d1 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000313100, 0xc008de2936, 0x14, 0x1c, 0xc0076b2800, 0xc00013a8a4, 0x7) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc089505bd0 sp=0xc089505408 pc=0xafb60c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleLocalPacket(0xc000313100, 0xc0076b2700, 0xc00003cd01) pkg/tcpip/network/ipv4/ipv4.go:855 +0x19f fp=0xc089505df0 sp=0xc089505bd0 pc=0xafacbf gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc000313100, 0xc0001e9860, 0xc0076b2700, 0xc0001e9800, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:453 +0x51a fp=0xc089506028 sp=0xc089505df0 pc=0xaf87da gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc000313100, 0xc0001e9860, 0x4000000011, 0xc0076b2700, 0xc0001e9860, 0x1) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc089506098 sp=0xc089506028 pc=0xaf8159 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0001e9860, 0x4000000011, 0xc0076b2700, 0xc0025652b8, 0x8) pkg/tcpip/stack/route.go:462 +0xad fp=0xc0895060d8 sp=0xc089506098 pc=0x937bad gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*udpPacketInfo).send(0xc0895075c8, 0x13bd380, 0xc008ddec80, 0xc005f97100) pkg/tcpip/transport/udp/endpoint.go:874 +0x3f9 fp=0xc089507550 sp=0xc0895060d8 pc=0xae3bd9 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc001b31b80, 0x13bd380, 0xc008ddec80, 0xc005f97100, 0x0, 0x1127ee0, 0xc008ce8701, 0xc0076becc0) pkg/tcpip/transport/udp/endpoint.go:581 +0x176 fp=0xc089507658 sp=0xc089507550 pc=0xae2496 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write(0xc001b31b80, 0x13bd380, 0xc008ddec80, 0xc005f97100, 0x0, 0x0, 0x874e20, 0xc008ce0002) pkg/tcpip/transport/udp/endpoint.go:431 +0x68 fp=0xc0895076a8 sp=0xc089507658 pc=0xae1768 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc00476e2e0, 0xc00948e000, 0x13d57d0, 0xc008ce8000, 0x0, 0x1, 0x0, 0x0, 0x100, 0xc005fc0400, ...) pkg/sentry/socket/netstack/netstack.go:2897 +0x20c fp=0xc089507830 sp=0xc0895076a8 pc=0xb333ec gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendTo(0xc00948e000, 0x3, 0x0, 0x0, 0x4010, 0x20000180, 0xc000000080, 0x0, 0x0, 0x0) pkg/sentry/syscalls/linux/vfs2/socket.go:1128 +0x495 fp=0xc089507aa0 sp=0xc089507830 pc=0xdf39f5 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendTo(0xc00948e000, 0x3, 0x0, 0x0, 0x4010, 0x20000180, 0x80, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:1141 +0x71 fp=0xc089507b00 sp=0xc089507aa0 pc=0xdf3e31 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00948e000, 0x2c, 0x3, 0x0, 0x0, 0x4010, 0x20000180, 0x80, 0xe2de50, 0x124a400, ...) pkg/sentry/kernel/task_syscall.go:104 +0x13c fp=0xc089507c60 sp=0xc089507b00 pc=0x9bc5fc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00948e000, 0x2c, 0x3, 0x0, 0x0, 0x4010, 0x20000180, 0x80, 0x20000180, 0x80) pkg/sentry/kernel/task_syscall.go:239 +0x66 fp=0xc089507ce8 sp=0xc089507c60 pc=0x9bd786 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00948e000, 0x2c, 0x3, 0x0, 0x0, 0x4010, 0x20000180, 0x80, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:199 +0x98 fp=0xc089507d48 sp=0xc089507ce8 pc=0x9bd378 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00948e000, 0x2, 0xc00948e000) pkg/sentry/kernel/task_syscall.go:174 +0x15c fp=0xc089507e18 sp=0xc089507d48 pc=0x9bcd1c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00948e000, 0x13b01e0, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc089507f60 sp=0xc089507e18 pc=0x9b18e5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00948e000, 0x427b) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc089507fd0 sp=0xc089507f60 pc=0x9b054f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc089507fd8 sp=0xc089507fd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:328 +0xfe