panic: interface conversion: stack.TransportEndpoint is nil, not *tcp.endpoint goroutine 219011 [running]: panic(0x10a1de0, 0xc004145230) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc198e89b30 sp=0xc198e89a68 pc=0x437c65 runtime.panicdottypeE(...) GOROOT/src/runtime/iface.go:261 runtime.panicdottypeI(0x0, 0x1233ac0, 0x10d7540) GOROOT/src/runtime/iface.go:271 +0xcc fp=0xc198e89b58 sp=0xc198e89b30 pc=0x40b2ec gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*dispatcher).queuePacket(0xc0003361b0, 0x0, 0x0, 0x0, 0xc000118a64, 0x4, 0x0, 0x0, 0x4, 0x13b9ad8, ...) pkg/tcpip/transport/tcp/dispatcher.go:178 +0x416 fp=0xc198e8c280 sp=0xc198e89b58 pc=0xab2df6 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*protocol).QueuePacket(0x0, 0x0, 0xc00899aa00, 0x2, 0xc000118a64, 0x4, 0xd630, 0xc000118a60, 0x4, 0xc004e38d00) pkg/tcpip/transport/tcp/protocol.go:134 +0x9b fp=0xc198e8c2f0 sp=0xc198e8c280 pc=0xabf17b gvisor.dev/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handlePacket(0xc00286e570, 0x2, 0xc000118a64, 0x4, 0xd630, 0xc000118a60, 0x4, 0xc004e38d00, 0xc008d863f8) pkg/tcpip/stack/transport_demuxer.go:175 +0x20b fp=0xc198e8c370 sp=0xc198e8c2f0 pc=0x93a3cb gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverPacket(0xc0008be588, 0xc000000006, 0xc004e38d00, 0x2, 0xc000118a64, 0x4, 0xd630, 0xc000118a60, 0x4, 0xc000118a5c) pkg/tcpip/stack/transport_demuxer.go:570 +0x570 fp=0xc198e8c408 sp=0xc198e8c370 pc=0x93d110 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportPacket(0xc0001f2e00, 0x6, 0xc004e38d00, 0x0) pkg/tcpip/stack/nic.go:826 +0x305 fp=0xc198e8c510 sp=0xc198e8c408 pc=0x9270a5 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc00014ea00, 0xc0010ac098, 0x14, 0x3c, 0xc004e38d00, 0x1235876, 0x2) pkg/tcpip/network/ipv4/ipv4.go:1040 +0x818 fp=0xc198e8ccd8 sp=0xc198e8c510 pc=0xaf2658 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc00014ea00, 0xc004e38d00) pkg/tcpip/network/ipv4/ipv4.go:840 +0x166 fp=0xc198e8cf70 sp=0xc198e8ccd8 pc=0xaf1806 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc0001f2e00, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc004e38d00) pkg/tcpip/stack/nic.go:749 +0x288 fp=0xc198e8d000 sp=0xc198e8cf70 pc=0x926ac8 gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000e8e4d0, 0x0, 0x0, 0x0, 0x0, 0xc000000800, 0xc004e38d00) pkg/tcpip/link/nested/nested.go:59 +0xbe fp=0xc198e8d058 sp=0xc198e8d000 pc=0xb8c33e gvisor.dev/gvisor/pkg/tcpip/link/sniffer.(*endpoint).DeliverNetworkPacket(0xc000e8e4d0, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc004e38d00) pkg/tcpip/link/sniffer/sniffer.go:143 +0x94 fp=0xc198e8d0a0 sp=0xc198e8d058 pc=0xb8ce54 gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePacket(0xc000258250, 0xc000118a10, 0x4, 0xc000118a10, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/loopback/loopback.go:89 +0xca fp=0xc198e8d0f8 sp=0xc198e8d0a0 pc=0xe067ca 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(0xc000e8e4d0, 0xc000118a10, 0x4, 0xc000118a10, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/link/sniffer/sniffer.go:192 +0x10d fp=0xc198e8d1e0 sp=0xc198e8d0f8 pc=0xb8d2ed gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc0001f2e00, 0xc000118a10, 0x4, 0xc000118a10, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:368 +0xfe fp=0xc198e8d278 sp=0xc198e8d1e0 pc=0x924abe gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacketBuffer(0xc0001f2e00, 0xc000118a10, 0x4, 0xc000118a10, 0x4, 0x0, 0x0, 0x0, 0x0, 0x100000800, ...) pkg/tcpip/stack/nic.go:314 +0xd0 fp=0xc198e8d328 sp=0xc198e8d278 pc=0x9243f0 gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).enqueuePacketBuffer(0xc0001f2e00, 0xc007cc2820, 0x800, 0x13a0fc0, 0xc004e38c00, 0xc0010ac0ac, 0x28, 0x28) pkg/tcpip/stack/nic.go:329 +0x25d fp=0xc198e8d478 sp=0xc198e8d328 pc=0x92483d gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc0001f2e00, 0xc007cc2820, 0xc000000800, 0xc004e38c00, 0x3c, 0x0) pkg/tcpip/stack/nic.go:307 +0x53 fp=0xc198e8d4c8 sp=0xc198e8d478 pc=0x9242f3 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc00014ea00, 0xc007cc2820, 0xc004e38c00, 0xc007cc2800, 0x0, 0x0) pkg/tcpip/network/ipv4/ipv4.go:495 +0x375 fp=0xc198e8d700 sp=0xc198e8d4c8 pc=0xaef6d5 gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc00014ea00, 0xc007cc2820, 0x2004000000006, 0xc004e38c00, 0xff800228, 0xc0010ac0ac) pkg/tcpip/network/ipv4/ipv4.go:445 +0x179 fp=0xc198e8d770 sp=0xc198e8d700 pc=0xaef1f9 gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc007cc2820, 0x4000000006, 0xc004e38c00, 0xc0001c4678, 0x2) pkg/tcpip/stack/route.go:462 +0xad fp=0xc198e8d7b0 sp=0xc198e8d770 pc=0x92e36d gvisor.dev/gvisor/pkg/tcpip/transport/tcp.sendTCP(0xc007cc2820, 0xd630, 0xc000118a10, 0x4, 0x2, 0xc000118a10, 0x4, 0x8d1d2ecf00020040, 0xff8000000000, 0xc00768d4a0, ...) pkg/tcpip/transport/tcp/connect.go:841 +0x285 fp=0xc198e8f5d0 sp=0xc198e8d7b0 pc=0xaae1a5 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendTCP(0xc00899a300, 0xc007cc2820, 0xd630, 0xc000118a10, 0x4, 0x2, 0xc000118a10, 0x4, 0x8d1d2ecf00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:733 +0xea fp=0xc198e8f6a0 sp=0xc198e8f5d0 pc=0xaad52a gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).sendSynTCP(0xc00899a300, 0xc007cc2820, 0xd630, 0xc000118a10, 0x4, 0x2, 0xc000118a10, 0x4, 0x8d1d2ecf00020000, 0xff8000000000, ...) pkg/tcpip/transport/tcp/connect.go:724 +0xdc fp=0xc198e8f780 sp=0xc198e8f6a0 pc=0xaad37c gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*handshake).start(0xc0088b2d80) pkg/tcpip/transport/tcp/connect.go:502 +0x2da fp=0xc198e8f8b8 sp=0xc198e8f780 pc=0xaac3da gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).connect(0xc00899a300, 0xc000000000, 0xc000118a10, 0x4, 0xc006d40002, 0x101, 0x0, 0x0) pkg/tcpip/transport/tcp/endpoint.go:2332 +0x856 fp=0xc198e90f48 sp=0xc198e8f8b8 pc=0xab8ff6 gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*endpoint).Connect(0xc00899a300, 0xc000000000, 0xc000118a10, 0x4, 0xc000110002, 0x4, 0xc000f10002) pkg/tcpip/transport/tcp/endpoint.go:2068 +0x7c fp=0xc198e91958 sp=0xc198e90f48 pc=0xab869c gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Connect(0xc0051afdb0, 0xc0088f2a80, 0xc000118a00, 0x10, 0x10, 0x1, 0x0) pkg/sentry/socket/netstack/netstack.go:603 +0x364 fp=0xc198e91a58 sp=0xc198e91958 pc=0xb1c9c4 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Connect(0xc0088f2a80, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/vfs2/socket.go:276 +0x1c8 fp=0xc198e91b08 sp=0xc198e91a58 pc=0xdded08 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0088f2a80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0xe1edec, 0x1234400, ...) pkg/sentry/kernel/task_syscall.go:102 +0x13c fp=0xc198e91c68 sp=0xc198e91b08 pc=0x9b45dc gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0088f2a80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:237 +0x66 fp=0xc198e91cf0 sp=0xc198e91c68 pc=0x9b57a6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0088f2a80, 0x2a, 0x3, 0x200001c0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:197 +0x98 fp=0xc198e91d50 sp=0xc198e91cf0 pc=0x9b5358 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0088f2a80, 0x2, 0xc0088f2a80) pkg/sentry/kernel/task_syscall.go:172 +0x15c fp=0xc198e91e20 sp=0xc198e91d50 pc=0x9b4cfc gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0088f2a80, 0x139fe40, 0x0) pkg/sentry/kernel/task_run.go:282 +0xca5 fp=0xc198e91f60 sp=0xc198e91e20 pc=0x9a9505 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0088f2a80, 0xfcf) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc198e91fd0 sp=0xc198e91f60 pc=0x9a816f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc198e91fd8 sp=0xc198e91fd0 pc=0x472821 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe