panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x9a197f] goroutine 194750 [running]: panic(0x11c5b20, 0x1eb0890) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc095f082b0 sp=0xc095f081e8 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc095f082d0 sp=0xc095f082b0 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc095f08308 sp=0xc095f082d0 pc=0x44f993 gvisor.dev/gvisor/pkg/tcpip/stack.(*IPTables).Check(0xc01459d180, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc014606040, 0x7, ...) pkg/tcpip/stack/iptables.go:289 +0x5f fp=0xc095f08560 sp=0xc095f08308 pc=0x9a197f gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc014604800, 0x0, 0x0, 0xc0118cf200, 0x1414, 0xc0143cc306) pkg/tcpip/network/ipv6/ipv6.go:861 +0x157 fp=0xc095f085c8 sp=0xc095f08560 pc=0xbbecb7 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0070ddae0, 0x4000000006, 0xc0118cf200, 0x10, 0x6e19) pkg/tcpip/stack/route.go:569 +0xd7 fp=0xc095f08608 sp=0xc095f085c8 pc=0x9b7f77 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0070ddae0, 0x0, 0xc014ce9890, 0x10, 0x6e19, 0xc014ce9880, 0x10, 0x140040, 0xe649d29c, 0x0, ...) pkg/tcpip/transport/tcp/connect.go:1060 +0x28e fp=0xc095f0a458 sp=0xc095f08608 pc=0xb6a2ee gvisor.dev/gvisor/pkg/tcpip/transport/tcp.replyWithReset(0xc012c21800, 0xc015b3c200, 0x0, 0x0, 0x0) pkg/tcpip/transport/tcp/protocol.go:239 +0x225 fp=0xc095f0a5b0 sp=0xc095f0a458 pc=0xb7f4c5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).HandleUnknownDestinationPacket(0xc012e79000, 0x0, 0xc014ce9890, 0x10, 0x6e19, 0xc014ce9880, 0x10, 0xc0118cf100, 0x0) pkg/tcpip/transport/tcp/protocol.go:167 +0x17b fp=0xc095f0a630 sp=0xc095f0a5b0 pc=0xb7f0fb gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc0145fa380, 0x6, 0xc0118cf100, 0x28) pkg/tcpip/stack/nic.go:1062 +0x3f8 fp=0xc095f0a738 sp=0xc095f0a630 pc=0x9af078 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeaders(0xc014604800, 0xc015b2a72e, 0x28, 0x50, 0xc0118cf100, 0x0, 0xc014606040, 0x7) pkg/tcpip/network/ipv6/ipv6.go:1850 +0x1968 fp=0xc095f0b090 sp=0xc095f0a738 pc=0xbc3d48 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleValidatedPacket(0xc014604800, 0xc015b2a72e, 0x28, 0x50, 0xc0118cf100, 0xc014606040, 0x7) pkg/tcpip/network/ipv6/ipv6.go:1415 +0x391 fp=0xc095f0b308 sp=0xc095f0b090 pc=0xbc1fb1 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleLocalPacket(0xc014604800, 0xc0118cf100, 0x1) pkg/tcpip/network/ipv6/ipv6.go:1329 +0x168 fp=0xc095f0b518 sp=0xc095f0b308 pc=0xbc1bc8 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc014604800, 0xc0070dda40, 0xc0118cf000, 0x6, 0x0, 0x0) pkg/tcpip/network/ipv6/ipv6.go:899 +0x62c fp=0xc095f0b770 sp=0xc095f0b518 pc=0xbbf4ec gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc014604800, 0xc0070dda40, 0x4000000006, 0xc0118cf000, 0x86dd, 0xc015d48878) pkg/tcpip/network/ipv6/ipv6.go:889 +0x1b6 fp=0xc095f0b7d8 sp=0xc095f0b770 pc=0xbbed16 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc0070dda40, 0x4000000006, 0xc0118cf000, 0x10, 0x0) pkg/tcpip/stack/route.go:569 +0xd7 fp=0xc095f0b818 sp=0xc095f0b7d8 pc=0x9b7f77 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc0070dda40, 0x6e19, 0xc0146065d0, 0x10, 0x0, 0xc0146065d0, 0x10, 0xe649d29b00020040, 0x708000000000, 0xc01437fda0, ...) pkg/tcpip/transport/tcp/connect.go:1060 +0x28e fp=0xc095f0d668 sp=0xc095f0b818 pc=0xb6a2ee gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc01162b100, 0xc0070dda40, 0x6e19, 0xc0146065d0, 0x10, 0x0, 0xc0146065d0, 0x10, 0xe649d29b00020000, 0x708000000000, ...) pkg/tcpip/transport/tcp/connect.go:926 +0xff fp=0xc095f0d738 sp=0xc095f0d668 pc=0xb6959f gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc01162b100, 0xc0070dda40, 0x6e19, 0xc0146065d0, 0x10, 0x0, 0xc0146065d0, 0x10, 0xe649d29b00020000, 0x708000000000, ...) pkg/tcpip/transport/tcp/connect.go:914 +0xe5 fp=0xc095f0d800 sp=0xc095f0d738 pc=0xb693e5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc015b28900) pkg/tcpip/transport/tcp/connect.go:593 +0x325 fp=0xc095f0d938 sp=0xc095f0d800 pc=0xb67d85 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc01162b100, 0xc000000000, 0x0, 0x0, 0x480000, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2798 +0x98b fp=0xc095f0efe8 sp=0xc095f0d938 pc=0xb77bab gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc01162b100, 0xc000000000, 0x0, 0x0, 0x0, 0x0, 0xc011610000) pkg/tcpip/transport/tcp/endpoint.go:2468 +0x86 fp=0xc095f0fa08 sp=0xc095f0efe8 pc=0xb770c6 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc015b1b730, 0xc014cd4a80, 0xc00fdc7600, 0x1c, 0x1c, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:663 +0x3f5 fp=0xc095f0fb08 sp=0xc095f0fa08 pc=0xbf0315 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc014cd4a80, 0x4, 0x200002c0, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:326 +0x222 fp=0xc095f0fba8 sp=0xc095f0fb08 pc=0xeedca2 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc014cd4a80, 0x2a, 0x4, 0x200002c0, 0x1c, 0x0, 0x0, 0x0, 0xf36a93, 0x13674e0, ...) pkg/sentry/kernel/task_syscall.go:115 +0x1b9 fp=0xc095f0fc68 sp=0xc095f0fba8 pc=0xa511d9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc014cd4a80, 0x2a, 0x4, 0x200002c0, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:290 +0x70 fp=0xc095f0fcf0 sp=0xc095f0fc68 pc=0xa524b0 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc014cd4a80, 0x2a, 0x4, 0x200002c0, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:237 +0xb4 fp=0xc095f0fd50 sp=0xc095f0fcf0 pc=0xa51f94 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc014cd4a80, 0x2, 0xc014cd4a80) pkg/sentry/kernel/task_syscall.go:204 +0x198 fp=0xc095f0fe20 sp=0xc095f0fd50 pc=0xa51878 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc014cd4a80, 0x14fbba0, 0x0) pkg/sentry/kernel/task_run.go:327 +0xe15 fp=0xc095f0ff60 sp=0xc095f0fe20 pc=0xa44735 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc014cd4a80, 0x112e) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc095f0ffd0 sp=0xc095f0ff60 pc=0xa431c2 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc095f0ffd8 sp=0xc095f0ffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:380 +0x116