panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x44 pc=0xaf8970] goroutine 168363 [running]: panic(0x101bea0, 0x1a7a090) GOROOT/src/runtime/panic.go:1064 +0x470 fp=0xc088d038e0 sp=0xc088d03828 pc=0x437030 runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:720 +0x413 fp=0xc088d03910 sp=0xc088d038e0 pc=0x44de13 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc000fc8200, 0x0, 0x0, 0x0, 0xc005143300, 0x0) pkg/tcpip/network/ipv4/ipv4.go:319 +0x50 fp=0xc088d05f60 sp=0xc088d03910 pc=0xaf8970 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc000fc8200, 0xc005143340, 0x0, 0x4000000011, 0xc0081f8000, 0x56) pkg/tcpip/network/ipv4/ipv4.go:315 +0x225 fp=0xc088d063a0 sp=0xc088d05f60 pc=0xaf8785 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc005143340, 0x0, 0x4000000011, 0xc0081f8000, 0x8) pkg/tcpip/stack/route.go:389 +0xb7 fp=0xc088d063e0 sp=0xc088d063a0 pc=0x934457 gvisor.dev/gvisor/pkg/tcpip/transport/udp.sendUDP(0xc005143340, 0x0, 0x0, 0x0, 0x0, 0x1004e206b8d, 0x12f9ee0, 0xc006d3ea80, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:888 +0x43b fp=0xc088d073e8 sp=0xc088d063e0 pc=0xae72db gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc0078626c0, 0x12fcae0, 0xc005572690, 0xc0081f20e0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:543 +0x44c fp=0xc088d07548 sp=0xc088d073e8 pc=0xae522c gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).Write(0xc0078626c0, 0x12fcae0, 0xc005572690, 0xc0081f20e0, 0xc007000000, 0x10, 0x874e20, 0xc0074f000a) pkg/tcpip/transport/udp/endpoint.go:401 +0x68 fp=0xc088d07598 sp=0xc088d07548 pc=0xae4c88 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc006092e30, 0xc006d3ea80, 0x1317d00, 0xc00877e000, 0x0, 0x1, 0x0, 0x0, 0x100, 0xc0074fb9e0, ...) pkg/sentry/socket/netstack/netstack.go:2895 +0x19d fp=0xc088d07888 sp=0xc088d07598 pc=0xb293dd gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendTo(0xc006d3ea80, 0xc000000009, 0x0, 0x0, 0x10, 0x20000400, 0x1c, 0x0, 0x0, 0x0) pkg/sentry/syscalls/linux/vfs2/socket.go:1118 +0x417 fp=0xc088d07a98 sp=0xc088d07888 pc=0xd9e377 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendTo(0xc006d3ea80, 0x9, 0x0, 0x0, 0x10, 0x20000400, 0x1c, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:1131 +0x71 fp=0xc088d07af8 sp=0xc088d07a98 pc=0xd9e7b1 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc006d3ea80, 0x2c, 0x9, 0x0, 0x0, 0x10, 0x20000400, 0x1c, 0xdd6f37, 0x119f480, ...) pkg/sentry/kernel/task_syscall.go:104 +0x13c fp=0xc088d07c58 sp=0xc088d07af8 pc=0x9d011c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc006d3ea80, 0x2c, 0x9, 0x0, 0x0, 0x10, 0x20000400, 0x1c, 0x20000400, 0x1c) pkg/sentry/kernel/task_syscall.go:239 +0x66 fp=0xc088d07ce0 sp=0xc088d07c58 pc=0x9d12e6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc006d3ea80, 0x2c, 0x9, 0x0, 0x0, 0x10, 0x20000400, 0x1c, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:199 +0x98 fp=0xc088d07d40 sp=0xc088d07ce0 pc=0x9d0e98 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc006d3ea80, 0x2, 0xc006d3ea80) pkg/sentry/kernel/task_syscall.go:174 +0x15c fp=0xc088d07e10 sp=0xc088d07d40 pc=0x9d083c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc006d3ea80, 0x12eee40, 0x0) pkg/sentry/kernel/task_run.go:282 +0xc45 fp=0xc088d07f60 sp=0xc088d07e10 pc=0x9c4c45 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc006d3ea80, 0x1411) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc088d07fd0 sp=0xc088d07f60 pc=0x9c390f runtime.goexit() src/runtime/asm_amd64.s:1374 +0x1 fp=0xc088d07fd8 sp=0xc088d07fd0 pc=0x4705a1 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:323 +0xfe