panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x9a197f] goroutine 243147 [running]: panic(0x11c4b00, 0x1eaf890) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc1129882b0 sp=0xc1129881e8 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc1129882d0 sp=0xc1129882b0 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc112988308 sp=0xc1129882d0 pc=0x44f993 gvisor.dev/gvisor/pkg/tcpip/stack.(*IPTables).Check(0xc0008da000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000d92b10, 0x7, ...) pkg/tcpip/stack/iptables.go:289 +0x5f fp=0xc112988560 sp=0xc112988308 pc=0x9a197f gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc0008e8800, 0x0, 0x0, 0xc00f015e00, 0x1414, 0xc0115e8a36) pkg/tcpip/network/ipv6/ipv6.go:861 +0x157 fp=0xc1129885c8 sp=0xc112988560 pc=0xbbed17 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc000f41a40, 0x4000000006, 0xc00f015e00, 0x10, 0xcd67) pkg/tcpip/stack/route.go:569 +0xd7 fp=0xc112988608 sp=0xc1129885c8 pc=0x9b7f77 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc000f41a40, 0x0, 0xc01083ac50, 0x10, 0xcd67, 0xc01083ac40, 0x10, 0x140040, 0x2e1114f0, 0x0, ...) pkg/tcpip/transport/tcp/connect.go:1060 +0x28e fp=0xc11298a458 sp=0xc112988608 pc=0xb6a2ee gvisor.dev/gvisor/pkg/tcpip/transport/tcp.replyWithReset(0xc000540700, 0xc00d24fc00, 0x0, 0x0, 0x0) pkg/tcpip/transport/tcp/protocol.go:239 +0x225 fp=0xc11298a5b0 sp=0xc11298a458 pc=0xb7f525 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).HandleUnknownDestinationPacket(0xc0008d4600, 0x0, 0xc01083ac50, 0x10, 0xcd67, 0xc01083ac40, 0x10, 0xc00f015d00, 0x0) pkg/tcpip/transport/tcp/protocol.go:167 +0x17b fp=0xc11298a630 sp=0xc11298a5b0 pc=0xb7f15b gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc000241a40, 0x6, 0xc00f015d00, 0x28) pkg/tcpip/stack/nic.go:1062 +0x3f8 fp=0xc11298a738 sp=0xc11298a630 pc=0x9af078 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).processExtensionHeaders(0xc0008e8800, 0xc091e7d14e, 0x28, 0x50, 0xc00f015d00, 0x0, 0xc000d92b10, 0x7) pkg/tcpip/network/ipv6/ipv6.go:1850 +0x1968 fp=0xc11298b090 sp=0xc11298a738 pc=0xbc3da8 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleValidatedPacket(0xc0008e8800, 0xc091e7d14e, 0x28, 0x50, 0xc00f015d00, 0xc000d92b10, 0x7) pkg/tcpip/network/ipv6/ipv6.go:1415 +0x391 fp=0xc11298b308 sp=0xc11298b090 pc=0xbc2011 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).handleLocalPacket(0xc0008e8800, 0xc00f015d00, 0x1) pkg/tcpip/network/ipv6/ipv6.go:1329 +0x168 fp=0xc11298b518 sp=0xc11298b308 pc=0xbc1c28 gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).writePacket(0xc0008e8800, 0xc000f419a0, 0xc00f015c00, 0x6, 0x0, 0x0) pkg/tcpip/network/ipv6/ipv6.go:899 +0x62c fp=0xc11298b770 sp=0xc11298b518 pc=0xbbf54c gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).WritePacket(0xc0008e8800, 0xc000f419a0, 0x4000000006, 0xc00f015c00, 0x86dd, 0xc0005e0928) pkg/tcpip/network/ipv6/ipv6.go:889 +0x1b6 fp=0xc11298b7d8 sp=0xc11298b770 pc=0xbbed76 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc000f419a0, 0x4000000006, 0xc00f015c00, 0x10, 0x0) pkg/tcpip/stack/route.go:569 +0xd7 fp=0xc11298b818 sp=0xc11298b7d8 pc=0x9b7f77 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc000f419a0, 0xcd67, 0xc000d930b0, 0x10, 0x0, 0xc000d930b0, 0x10, 0x2e1114ef00020040, 0x708000000000, 0xc003fcd3b0, ...) pkg/tcpip/transport/tcp/connect.go:1060 +0x28e fp=0xc11298d668 sp=0xc11298b818 pc=0xb6a2ee gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc091cd2300, 0xc000f419a0, 0xcd67, 0xc000d930b0, 0x10, 0x0, 0xc000d930b0, 0x10, 0x2e1114ef00020000, 0x708000000000, ...) pkg/tcpip/transport/tcp/connect.go:926 +0xff fp=0xc11298d738 sp=0xc11298d668 pc=0xb6959f gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc091cd2300, 0xc000f419a0, 0xcd67, 0xc000d930b0, 0x10, 0x0, 0xc000d930b0, 0x10, 0x2e1114ef00020000, 0x708000000000, ...) pkg/tcpip/transport/tcp/connect.go:914 +0xe5 fp=0xc11298d800 sp=0xc11298d738 pc=0xb693e5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc00e554800) pkg/tcpip/transport/tcp/connect.go:593 +0x325 fp=0xc11298d938 sp=0xc11298d800 pc=0xb67d85 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc091cd2300, 0xc000000000, 0x0, 0x0, 0xc091ac0000, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2798 +0x98b fp=0xc11298efe8 sp=0xc11298d938 pc=0xb77c0b gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc091cd2300, 0xc000000000, 0x0, 0x0, 0x0, 0x0, 0xc00af80000) pkg/tcpip/transport/tcp/endpoint.go:2468 +0x86 fp=0xc11298fa08 sp=0xc11298efe8 pc=0xb77126 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc092133e80, 0xc091e76a80, 0xc000114720, 0x1c, 0x1c, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:663 +0x3f5 fp=0xc11298fb08 sp=0xc11298fa08 pc=0xbf0375 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc091e76a80, 0x4, 0x20000080, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:326 +0x222 fp=0xc11298fba8 sp=0xc11298fb08 pc=0xeed7c2 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc091e76a80, 0x2a, 0x4, 0x20000080, 0x1c, 0x0, 0x0, 0x0, 0xc000045800, 0x13664a0, ...) pkg/sentry/kernel/task_syscall.go:115 +0x1b9 fp=0xc11298fc68 sp=0xc11298fba8 pc=0xa511d9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc091e76a80, 0x2a, 0x4, 0x20000080, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:290 +0x70 fp=0xc11298fcf0 sp=0xc11298fc68 pc=0xa524b0 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc091e76a80, 0x2a, 0x4, 0x20000080, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:237 +0xb4 fp=0xc11298fd50 sp=0xc11298fcf0 pc=0xa51f94 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc091e76a80, 0x2, 0xc091e76a80) pkg/sentry/kernel/task_syscall.go:204 +0x198 fp=0xc11298fe20 sp=0xc11298fd50 pc=0xa51878 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc091e76a80, 0x14fab00, 0x0) pkg/sentry/kernel/task_run.go:327 +0xe15 fp=0xc11298ff60 sp=0xc11298fe20 pc=0xa44735 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc091e76a80, 0xce1) pkg/sentry/kernel/task_run.go:100 +0x1e2 fp=0xc11298ffd0 sp=0xc11298ff60 pc=0xa431c2 runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc11298ffd8 sp=0xc11298ffd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:380 +0x116