panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0xabbabb] goroutine 35174 [running]: panic(0x10b65a0, 0x1bd2d90) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc081a08328 sp=0xc081a08260 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc081a08348 sp=0xc081a08328 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc081a08380 sp=0xc081a08348 pc=0x44f993 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).MaxHeaderLength(...) pkg/tcpip/stack/route.go:278 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc001660280, 0x4e20, 0xc000558600, 0x4, 0x7db9, 0xc0005585fc, 0x4, 0x140040, 0xf5612a10, 0x0, ...) pkg/tcpip/transport/tcp/connect.go:831 +0xdb fp=0xc081a0a1d0 sp=0xc081a08380 pc=0xabbabb gvisor.dev/gvisor/pkg/tcpip/transport/tcp.replyWithReset(0xc00012c700, 0xc001740400, 0x0, 0x0, 0x0) pkg/tcpip/transport/tcp/protocol.go:195 +0x1e5 fp=0xc081a0a328 sp=0xc081a0a1d0 pc=0xacd1c5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).HandleUnknownDestinationPacket(0xc0003920f0, 0x4e20, 0xc000558600, 0x4, 0x7db9, 0xc0005585fc, 0x4, 0xc001720100, 0x0) pkg/tcpip/transport/tcp/protocol.go:153 +0x13b fp=0xc081a0a3a8 sp=0xc081a0a328 pc=0xaccf9b gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc000245180, 0x6, 0xc001720100, 0x0) pkg/tcpip/stack/nic.go:834 +0x351 fp=0xc081a0a4b0 sp=0xc081a0a3a8 pc=0x932cd1 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc00012e300, 0xc0000b6028, 0x14, 0x3c, 0xc001720100, 0x1255dd8, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1046 +0x8ec fp=0xc081a0ac78 sp=0xc081a0a4b0 pc=0xaff34c gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc00012e300, 0xc001720100) pkg/tcpip/network/ipv4/ipv4.go:836 +0x166 fp=0xc081a0af10 sp=0xc081a0ac78 pc=0xafe426 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000245180, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc001720100) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc081a0afa0 sp=0xc081a0af10 pc=0x9326a8 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc00059e690, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc001720100) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc081a0aff8 sp=0xc081a0afa0 pc=0xb9a47e gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc00059e690, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc001720100) pkg/tcpip/link/sniffer/sniffer.go:140 +0x94 fp=0xc081a0b040 sp=0xc081a0aff8 pc=0xb9b254 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc0008ee050, 0xc00055859c, 0x4, 0xc00055859c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc081a0b098 sp=0xc081a0b040 pc=0xe1e58a gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePacket(...) pkg/tcpip/link/nested/nested.go:117 gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).WritePacket(0xc00059e690, 0xc00055859c, 0x4, 0xc00055859c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:174 +0x10d fp=0xc081a0b180 sp=0xc081a0b098 pc=0xb9b5cd gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc000245180, 0xc00055859c, 0x4, 0xc00055859c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc081a0b218 sp=0xc081a0b180 pc=0x93069e gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc000245180, 0xc00055859c, 0x4, 0xc00055859c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc081a0b2c8 sp=0xc081a0b218 pc=0x92ffd0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc000245180, 0xc0016601e0, 0x800, 0x13bcb80, 0xc001720000, 0xc0000b603c, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc081a0b418 sp=0xc081a0b2c8 pc=0x93041d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc000245180, 0xc0016601e0, 0xc000000800, 0xc001720000, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc081a0b468 sp=0xc081a0b418 pc=0x92fed3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc00012e300, 0xc0016601e0, 0xc001720000, 0xc001660100, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc081a0b6a0 sp=0xc081a0b468 pc=0xafc375 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc00012e300, 0xc0016601e0, 0x4e20004000000006, 0xc001720000, 0xff800228, 0xc0000b603c) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc081a0b710 sp=0xc081a0b6a0 pc=0xafbe99 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0016601e0, 0x4000000006, 0xc001720000, 0xc0006cc9c8, 0x4e20) pkg/tcpip/stack/route.go:462 +0xad fp=0xc081a0b750 sp=0xc081a0b710 pc=0x939fad gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0016601e0, 0x7db9, 0xc00055859c, 0x4, 0x4e20, 0xc00055859c, 0x4, 0xf5612a0f00020040, 0xff8000000000, 0xc001350420, ...) pkg/tcpip/transport/tcp/connect.go:842 +0x285 fp=0xc081a0d5a0 sp=0xc081a0b750 pc=0xabbc65 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc00170a600, 0xc0016601e0, 0x7db9, 0xc00055859c, 0x4, 0x4e20, 0xc00055859c, 0x4, 0xf5612a0f00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:734 +0xea fp=0xc081a0d670 sp=0xc081a0d5a0 pc=0xabb02a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc00170a600, 0xc0016601e0, 0x7db9, 0xc00055859c, 0x4, 0x4e20, 0xc00055859c, 0x4, 0xf5612a0f00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:725 +0xdc fp=0xc081a0d750 sp=0xc081a0d670 pc=0xabae7c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc000622d80) pkg/tcpip/transport/tcp/connect.go:502 +0x2da fp=0xc081a0d888 sp=0xc081a0d750 pc=0xab9eda gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc00170a600, 0x0, 0xc00055859c, 0x4, 0x204e20, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2338 +0x807 fp=0xc081a0ef30 sp=0xc081a0d888 pc=0xac6ea7 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc00170a600, 0xc000000000, 0xc00055859c, 0x4, 0xc000554e20, 0x4, 0xc001714e20) pkg/tcpip/transport/tcp/endpoint.go:2074 +0x7c fp=0xc081a0f950 sp=0xc081a0ef30 pc=0xac659c gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc00170c070, 0xc00132ea80, 0xc0005585a0, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:607 +0x364 fp=0xc081a0fa50 sp=0xc081a0f950 pc=0xb29f24 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc00132ea80, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:277 +0x1c8 fp=0xc081a0fb00 sp=0xc081a0fa50 pc=0xdf6828 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00132ea80, 0x2a, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0xe37930, 0x1254960, ...) pkg/sentry/kernel/task_syscall.go:104 +0x13c fp=0xc081a0fc60 sp=0xc081a0fb00 pc=0x9bf83c gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00132ea80, 0x2a, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:239 +0x66 fp=0xc081a0fce8 sp=0xc081a0fc60 pc=0x9c09c6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00132ea80, 0x2a, 0x3, 0x20000000, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:199 +0x98 fp=0xc081a0fd48 sp=0xc081a0fce8 pc=0x9c05b8 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00132ea80, 0x2, 0xc00132ea80) pkg/sentry/kernel/task_syscall.go:174 +0x15c fp=0xc081a0fe18 sp=0xc081a0fd48 pc=0x9bff5c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00132ea80, 0x13bba60, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc081a0ff60 sp=0xc081a0fe18 pc=0x9b4b25 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00132ea80, 0xb7) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc081a0ffd0 sp=0xc081a0ff60 pc=0x9b378f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc081a0ffd8 sp=0xc081a0ffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:328 +0xfe