panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x44 pc=0xb94f5a] goroutine 267398 [running]: panic(0x10f9500, 0x1cd9e70) GOROOT/src/runtime/panic.go:1064 +0x470 fp=0xc0873773f8 sp=0xc087377340 pc=0x437110 runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:720 +0x413 fp=0xc087377428 sp=0xc0873773f8 pc=0x44def3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc00003a600, 0x0, 0x0, 0xc0065ceb40, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:393 +0x5a fp=0xc087379e90 sp=0xc087377428 pc=0xb94f5a gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc00003a600, 0xc000656820, 0x0, 0x4000000011, 0xc0065ceb40, 0xc0007d29c8) pkg/tcpip/network/ipv4/ipv4.go:388 +0x296 fp=0xc08737a340 sp=0xc087379e90 pc=0xb94d36 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc000656820, 0x0, 0x4000000011, 0xc0065ceb40, 0x8) pkg/tcpip/stack/route.go:505 +0xd7 fp=0xc08737a380 sp=0xc08737a340 pc=0x99a517 gvisor.dev/gvisor/pkg/tcpip/transport/udp.sendUDP(0xc000656820, 0x0, 0x0, 0x0, 0x0, 0x1004e23ffc9, 0x13f3d80, 0xc0061ae000, 0xc000000000, 0x0) pkg/tcpip/transport/udp/endpoint.go:1107 +0x496 fp=0xc08737b520 sp=0xc08737a380 pc=0xb80a16 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc001334500, 0x13f6980, 0xc001a2b2c0, 0xc0064b5c40, 0x1000000, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:684 +0x752 fp=0xc08737b6a8 sp=0xc08737b520 pc=0xb7e412 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write(0xc001334500, 0x13f6980, 0xc001a2b2c0, 0xc0064b5c40, 0xc006000000, 0x10, 0xc000674e23) pkg/tcpip/transport/udp/endpoint.go:494 +0x72 fp=0xc08737b6f0 sp=0xc08737b6a8 pc=0xb7dad2 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc006569db0, 0xc0061ae000, 0x14113a0, 0xc005696000, 0x0, 0x0, 0x0, 0x0, 0x100, 0xc005ea9c20, ...) pkg/sentry/socket/netstack/netstack.go:3660 +0x1c4 fp=0xc08737b880 sp=0xc08737b6f0 pc=0xbca484 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendSingleMsg(0xc0061ae000, 0x3f6fb21523d8, 0xc006569d40, 0xc006569d40, 0x20004740, 0x0, 0x576f10, 0x3f6fe6326000, 0xc0001475d0) pkg/sentry/syscalls/linux/vfs2/socket.go:1361 +0x45e fp=0xc08737bac0 sp=0xc08737b880 pc=0xe6a1fe gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendMMsg(0xc0061ae000, 0x3, 0x20004740, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:1253 +0x368 fp=0xc08737bb90 sp=0xc08737bac0 pc=0xe69908 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0061ae000, 0x133, 0x3, 0x20004740, 0x1, 0x0, 0x0, 0x0, 0xea9557, 0x127d7c0, ...) pkg/sentry/kernel/task_syscall.go:116 +0x1b9 fp=0xc08737bc50 sp=0xc08737bb90 pc=0xa45b99 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0061ae000, 0x133, 0x3, 0x20004740, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:291 +0x70 fp=0xc08737bcd8 sp=0xc08737bc50 pc=0xa46e50 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0061ae000, 0x133, 0x3, 0x20004740, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0xb4 fp=0xc08737bd38 sp=0xc08737bcd8 pc=0xa46954 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0061ae000, 0x2, 0xc0061ae000) pkg/sentry/kernel/task_syscall.go:205 +0x198 fp=0xc08737be08 sp=0xc08737bd38 pc=0xa46238 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0061ae000, 0x13e8e20, 0x0) pkg/sentry/kernel/task_run.go:327 +0xd95 fp=0xc08737bf60 sp=0xc08737be08 pc=0xa38cf5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0061ae000, 0x1562) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc08737bfd0 sp=0xc08737bf60 pc=0xa37802 runtime.goexit() src/runtime/asm_amd64.s:1374 +0x1 fp=0xc08737bfd8 sp=0xc08737bfd0 pc=0x470681 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:374 +0x116