SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
20.03k stars 2.38k forks source link

memory leak using VLESS #633

Closed Mahdi-zarei closed 1 year ago

Mahdi-zarei commented 1 year ago

Welcome

Description of the problem

I am using VLESS with Reallity for my setup, and the amount of ram used slowly increases up until the kernel kills sing-box, I have checked and there is no abnormal count of connections, so I would assume the problem is not from high number of connections, the process of ram getting all used up happens in like 2 days so It's not caused by load surges either.

Version of sing-box

```console root@vps-e33220be ~/sing-box-1.2.7-linux-amd64 [127]# ./sing-box version sing-box version 1.2.7 Environment: go1.20.4 linux/amd64 Tags: with_gvisor,with_quic,with_wireguard,with_utls,with_reality_server,with_clash_api Revision: c74d3a53d41b0e8586257a2a1071faf394d1ed2f CGO: disabled ```

Server and client configuration file

```console { "log": { "level": "info", "timestamp": true }, "inbounds": [ { "type": "vless", "tag": "vless-in", "listen": "ip", "listen_port": 443, "sniff": true, "sniff_override_destination": true, "domain_strategy": "ipv4_only", "users": [ { "uuid": "5235b05a-8d45-47cc-834e-d074cb3d2c0d", "flow": "xtls-rprx-vision" } ], "tls": { "enabled": true, "server_name": "sni", "reality": { "enabled": true, "handshake": { "server": "sni", "server_port": 443 }, "private_key": "iEUEFql-XuuoRt72_C9HMZt-A_fgxlCHXUM-Zi2CGmw", "short_id": [ "eb2868c00561f357" ], "max_time_difference": "70m" } } } ], "outbounds": [ { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns-out" } ], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geosite": "ir", "geoip": [ "ir" ], "outbound": "block" } ], "auto_detect_interface": true } } --- { "dns": { "servers": [ { "tag": "google", "address": "tls://8.8.8.8" }, { "tag": "local", "address": "223.5.5.5", "detour": "direct" }, { "tag": "block", "address": "rcode://success" } ], "rules": [ { "outbound": "any", "server": "local" } ], "strategy": "ipv4_only" }, "inbounds": [ { "type": "mixed", "tag": "mixed-in", "listen": "127.0.0.1", "listen_port": 1080, "tcp_fast_open": true } ], "outbounds": [ { "type": "vless", "tag": "vless-out", "server": "ip", "server_port": 443, "uuid": "5235b05a-8d45-47cc-834e-d074cb3d2c0d", "flow": "xtls-rprx-vision", "tls": { "enabled": true, "server_name": "sni", "utls": { "enabled": true, "fingerprint": "chrome" }, "reality": { "enabled": true, "public_key": "JpymyKrKD5XWnTiMlC-7VmnZ7KlW1CFmkA5VnucFTAY", "short_id": "eb2868c00561f357" } } }, { "type": "dns", "tag": "dns-out" }, { "type": "direct", "tag": "direct" } ], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "domain_keyword": [".ir"], "outbound": "direct" } ], "auto_detect_interface": true } } ```

Server and client log file

```console logs are pretty normal ```
MJavad commented 1 year ago

I have this problem too. For me it’s mixed inbound only, tun works ok. My server is Xray, so it’s probably client’s fault.

MJavad commented 1 year ago

I'm running sing-box on OpenWRT with limited ram so this is something which happens quiet frequently (every hour). To make sure kernel kills sing-box before running out of memory I run it under ulimit -v 70000000. This crash log happend an hour ago, unfortunately I lost some part of it due to limited log buffer:

```console sing-box[3866]: github.com/sagernet/sing/common.SelectContext({0x41944f0, 0x2, 0x2}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/context.go:13 +0xcc fp=0x507ea10 sp=0x507e9e8 pc=0x7c1748 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList(0x4d5a9c0, {0x5086b20, 0x1, 0x1}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:89 +0x2dc fp=0x507ea90 sp=0x507ea10 pc=0x826d20 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyConnContextList({0x5086b20, 0x1, 0x1}, {0x11971f0, 0x5264300}, {0x1196b00, 0x5147040}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:229 +0x848 fp=0x507eacc sp=0x507ea90 pc=0x8c1898 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyConn(...) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:189 sing-box[3866]: github.com/sagernet/sing-box/outbound.CopyEarlyConn({0x1192020, 0x49d0c00}, {0x11971f0, 0x5264300}, {0x1196b00, 0x5147040}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:122 +0x9c0 fp=0x5086b6c sp=0x507eacc pc=0xd41c68 sing-box[3866]: github.com/sagernet/sing-box/outbound.NewConnection({0x1192020, 0x49d0bb8}, {0x118f018, 0x320c3f0}, {0x11971f0, 0x5264300}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:54 +0x284 fp=0x5086bd0 sp=0x5086b6c pc=0xd408ec sing-box[3866]: github.com/sagernet/sing-box/outbound.(*VLESS).NewConnection(0x320c3f0, {0x1192020, 0x49d0bb8}, {0x11971f0, 0x5264300}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/vless.go:159 +0x98 fp=0x5086cd4 sp=0x5086bd0 pc=0xd5cd98 sing-box[3866]: github.com/sagernet/sing-box/route.(*Router).RouteConnection(0x30bfd40, {0x1192020, 0x49d0ba0}, {0x11971f0, 0x5264300}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/route/router.go:659 +0x1924 fp=0x5087068 sp=0x5086cd4 pc=0xe0c7b0 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).newUserConnection(0x30a20d0, {0x1192020, 0x49d0ba0}, {0x11971f0, 0x5264300}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/http.go:97 +0x38c fp=0x5087178 sp=0x5087068 pc=0xdc994c sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).newUserConnection-fm({0x1192020, 0x49d0ba0}, {0x11971f0, 0x5264300}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, ...}, ...}) sing-box[3866]: :1 +0xb0 fp=0x5087278 sp=0x5087178 pc=0xdee6e4 sing-box[3866]: github.com/sagernet/sing-box/adapter.(*myUpstreamHandlerWrapper).NewConnection(0x34c4870, {0x1192020, 0x49d0ba0}, {0x11971f0, 0x5264300}, {{0x1033620, 0x6}, {{{0x0, 0xffff0a0100a2}, 0x300a040}, ...}, ...}) sing-box[3866]: github.com/sagernet/sing-box/adapter/upstream.go:48 +0x2bc fp=0x508753c sp=0x5087278 pc=0x95b470 sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0({0x1192020, 0x49d0ba0}, {0x11971f0, 0x5264300}, 0x5, {0x0, 0x0}, {0x77607040, 0x34c4870}, {{0x1033620, ...}, ...}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:190 +0xfdc fp=0x5087814 sp=0x508753c pc=0xb5a918 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*Mixed).NewConnection(0x30a20d0, {0x1192020, 0x49d0ba0}, {0x11971f0, 0x5264300}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/mixed.go:59 +0x3ac fp=0x5087d00 sp=0x5087814 pc=0xdcde40 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).injectTCP(0x30a20d0, {0x11971f0, 0x5264300}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, 0x0}, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:62 +0x200 fp=0x5087efc sp=0x5087d00 pc=0xdc3d1c sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn.func1() sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0xa0 fp=0x5087fec sp=0x5087efc pc=0xdc3b0c sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x5087fec sp=0x5087fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0x414 sing-box[3866]: sing-box[3866]: goroutine 5865 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x776397e8, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x45d1aa4 sp=0x45d1a98 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x776397dc, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x45d1abc sp=0x45d1aa4 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x776397dc, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x45d1ad4 sp=0x45d1abc pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x4ef97d4, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x45d1ae8 sp=0x45d1ad4 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet4(0x4ef97c0, {0x5014000, 0x4000, 0x4000}, 0x45d1b94) sing-box[3866]: internal/poll/fd_unix.go:250 +0x240 fp=0x45d1b24 sp=0x45d1ae8 pc=0x50fdd4 sing-box[3866]: net.(*netFD).readFromInet4(0x4ef97c0, {0x5014000, 0x4000, 0x4000}, 0x45d1b94) sing-box[3866]: net/fd_posix.go:66 +0x64 fp=0x45d1b54 sp=0x45d1b24 pc=0x56fc90 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x325eec8, {0x5014000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock_posix.go:78 +0x270 fp=0x45d1c38 sp=0x45d1b54 pc=0x59acb0 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x325eec8, {0x5014000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x45d1c94 sp=0x45d1c38 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x325ef40, 0x4175140) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x45d1da4 sp=0x45d1c94 pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).ReadPacket(0x4edebd0, 0x4175140) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/packet.go:93 +0x90 fp=0x45d1e3c sp=0x45d1da4 pc=0xb5c114 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b2388, 0x325f0f8}, {0x776b23a0, 0x4edebd0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x45d1f68 sp=0x45d1e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func1({0x1191fc0, 0x4edec60}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:349 +0xa8 fp=0x45d1f9c sp=0x45d1f68 pc=0x8c36d0 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x45d1fec sp=0x45d1f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x45d1fec sp=0x45d1fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5866 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x7763974c, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x47afb3c sp=0x47afb30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77639740, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x47afb54 sp=0x47afb3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77639740, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x47afb6c sp=0x47afb54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x4ef9824, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x47afb80 sp=0x47afb6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x4ef9810, {0x5040106, 0x3efa, 0x3efa}, 0x47afc44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x47afbbc sp=0x47afb80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x4ef9810, {0x5040106, 0x3efa, 0x3efa}, 0x47afc44) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x47afbec sp=0x47afbbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x325f0f0, {0x5040106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x47afcd0 sp=0x47afbec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x325f0f0, {0x5040106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x47afd2c sp=0x47afcd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x325f0f8, 0x4d74a60) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x47afe3c sp=0x47afd2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4edebd0}, {0x776b20d0, 0x325f0f8}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x47aff68 sp=0x47afe3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4edec60}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x47aff9c sp=0x47aff68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x47affec sp=0x47aff9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x47affec sp=0x47affec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5518 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77638bb8, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4820b3c sp=0x4820b30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77638bac, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x4820b54 sp=0x4820b3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77638bac, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x4820b6c sp=0x4820b54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147004, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x4820b80 sp=0x4820b6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x5146ff0, {0x4284106, 0x3efa, 0x3efa}, 0x4820c44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x4820bbc sp=0x4820b80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x5146ff0, {0x4284106, 0x3efa, 0x3efa}, 0x34aa444) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x4820bec sp=0x4820bbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e94250, {0x4284106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x4820cd0 sp=0x4820bec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e94250, {0x4284106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x4820d2c sp=0x4820cd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e94270, 0x4174340) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x4820e3c sp=0x4820d2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4e3e1e0}, {0x776b20d0, 0x4e94270}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x4820f68 sp=0x4820e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4e3e300}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x4820f9c sp=0x4820f68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x4820fec sp=0x4820f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4820fec sp=0x4820fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5825 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x776d278c, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4a9daa4 sp=0x4a9da98 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x776d2780, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x4a9dabc sp=0x4a9daa4 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x776d2780, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x4a9dad4 sp=0x4a9dabc pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147694, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x4a9dae8 sp=0x4a9dad4 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet4(0x5147680, {0x4a60000, 0x4000, 0x4000}, 0x4a9db94) sing-box[3866]: internal/poll/fd_unix.go:250 +0x240 fp=0x4a9db24 sp=0x4a9dae8 pc=0x50fdd4 sing-box[3866]: net.(*netFD).readFromInet4(0x5147680, {0x4a60000, 0x4000, 0x4000}, 0x4a9db94) sing-box[3866]: net/fd_posix.go:66 +0x64 fp=0x4a9db54 sp=0x4a9db24 pc=0x56fc90 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e94998, {0x4a60000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock_posix.go:78 +0x270 fp=0x4a9dc38 sp=0x4a9db54 pc=0x59acb0 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e94998, {0x4a60000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x4a9dc94 sp=0x4a9dc38 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e949c0, 0x4d74040) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x4a9dda4 sp=0x4a9dc94 pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).ReadPacket(0x4e3e5a0, 0x4d74040) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/packet.go:93 +0x90 fp=0x4a9de3c sp=0x4a9dda4 pc=0xb5c114 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b2388, 0x4e94ab8}, {0x776b23a0, 0x4e3e5a0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x4a9df68 sp=0x4a9de3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func1({0x1191fc0, 0x4e3e630}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:349 +0xa8 fp=0x4a9df9c sp=0x4a9df68 pc=0x8c36d0 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x4a9dfec sp=0x4a9df9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4a9dfec sp=0x4a9dfec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5826 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77485f58, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x5167b3c sp=0x5167b30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77485f4c, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x5167b54 sp=0x5167b3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77485f4c, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x5167b6c sp=0x5167b54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x51476e4, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x5167b80 sp=0x5167b6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x51476d0, {0x4a5c106, 0x3efa, 0x3efa}, 0x5167c44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x5167bbc sp=0x5167b80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x51476d0, {0x4a5c106, 0x3efa, 0x3efa}, 0x34aec44) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x5167bec sp=0x5167bbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e94ab0, {0x4a5c106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x5167cd0 sp=0x5167bec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e94ab0, {0x4a5c106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x5167d2c sp=0x5167cd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e94ab8, 0x4174aa0) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x5167e3c sp=0x5167d2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4e3e5a0}, {0x776b20d0, 0x4e94ab8}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x5167f68 sp=0x5167e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4e3e630}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x5167f9c sp=0x5167f68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x5167fec sp=0x5167f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x5167fec sp=0x5167fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5827 [select, 12 minutes]: sing-box[3866]: runtime.gopark(0x1079104, 0x0, 0x9, 0x18, 0x1) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x481722c sp=0x4817220 pc=0x44ac00 sing-box[3866]: runtime.selectgo(0x4b1e7d0, 0x49e8660, 0x0, 0x0, 0x2, 0x1) sing-box[3866]: runtime/select.go:328 +0x4b4 fp=0x48172b4 sp=0x481722c pc=0x45f1bc sing-box[3866]: reflect.rselect({0x4817388, 0x2, 0x4}) sing-box[3866]: runtime/select.go:590 +0x28c fp=0x4817308 sp=0x48172b4 pc=0x48433c sing-box[3866]: reflect.Select({0x3bfaa80, 0x2, 0x2}) sing-box[3866]: reflect/value.go:2952 +0x108 fp=0x48173c8 sp=0x4817308 pc=0x4f6fe4 sing-box[3866]: github.com/sagernet/sing/common.SelectContext({0x4b1e7b0, 0x2, 0x2}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/context.go:13 +0xcc fp=0x48173f0 sp=0x48173c8 pc=0x7c1748 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList(0x4733a70, {0x4817540, 0x1, 0x1}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:89 +0x2dc fp=0x4817470 sp=0x48173f0 pc=0x826d20 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList({0x4817540, 0x1, 0x1}, {0x11954d8, 0x4e3e6c0}, {0x776b2088, 0x4e94b90}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:358 +0x490 fp=0x48174a4 sp=0x4817470 pc=0x8c349c sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConn(...) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:343 sing-box[3866]: github.com/sagernet/sing-box/outbound.NewPacketConnection({0x1192020, 0x47339e0}, {0x118ef10, 0x320c460}, {0x11954d8, 0x4e3e6c0}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:83 +0x97c fp=0x48176bc sp=0x48174a4 pc=0xd41288 sing-box[3866]: github.com/sagernet/sing-box/outbound.(*Direct).NewPacketConnection(0x320c460, {0x1192020, 0x47339e0}, {0x11954d8, 0x4e3e6c0}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/direct.go:196 +0x98 fp=0x48177c0 sp=0x48176bc pc=0xd44448 sing-box[3866]: github.com/sagernet/sing-box/route.(*Router).RoutePacketConnection(0x30bfd40, {0x1192020, 0x4733968}, {0x11954d8, 0x4e3e6c0}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/route/router.go:739 +0x13cc fp=0x4817a4c sp=0x48177c0 pc=0xe0e370 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection(0x30a20d0, {0x1192020, 0x4733968}, {0x11954d8, 0x4e3e6c0}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/http.go:108 +0x38c fp=0x4817b5c sp=0x4817a4c pc=0xdc9cf8 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection-fm({0x1192020, 0x4733968}, {0x11954d8, 0x4e3e6c0}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, ...}, ...}) sing-box[3866]: :1 +0xb0 fp=0x4817c5c sp=0x4817b5c pc=0xdee7b4 sing-box[3866]: github.com/sagernet/sing-box/adapter.(*myUpstreamHandlerWrapper).NewPacketConnection(0x360e870, {0x1192020, 0x4733968}, {0x11954d8, 0x4e3e6c0}, {{0x1033620, 0x6}, {{{0x0, 0xffff0a0100a2}, 0x300a040}, ...}, ...}) sing-box[3866]: github.com/sagernet/sing-box/adapter/upstream.go:59 +0x2bc fp=0x4817f20 sp=0x4817c5c pc=0x95b74c sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:211 +0x288 fp=0x4817fec sp=0x4817f20 pc=0xb5b194 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4817fec sp=0x4817fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/protocol/socks.HandleConnection0 sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:209 +0xaec sing-box[3866]: sing-box[3866]: goroutine 5828 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77485a78, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x45d7aa4 sp=0x45d7a98 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77485a6c, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x45d7abc sp=0x45d7aa4 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77485a6c, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x45d7ad4 sp=0x45d7abc pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147734, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x45d7ae8 sp=0x45d7ad4 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet4(0x5147720, {0x4b7a000, 0x4000, 0x4000}, 0x45d7b94) sing-box[3866]: internal/poll/fd_unix.go:250 +0x240 fp=0x45d7b24 sp=0x45d7ae8 pc=0x50fdd4 sing-box[3866]: net.(*netFD).readFromInet4(0x5147720, {0x4b7a000, 0x4000, 0x4000}, 0x45d7b94) sing-box[3866]: net/fd_posix.go:66 +0x64 fp=0x45d7b54 sp=0x45d7b24 pc=0x56fc90 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e94b20, {0x4b7a000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock_posix.go:78 +0x270 fp=0x45d7c38 sp=0x45d7b54 pc=0x59acb0 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e94b20, {0x4b7a000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x45d7c94 sp=0x45d7c38 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e94b30, 0x32d2a80) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x45d7da4 sp=0x45d7c94 pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).ReadPacket(0x4e3e6c0, 0x32d2a80) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/packet.go:93 +0x90 fp=0x45d7e3c sp=0x45d7da4 pc=0xb5c114 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b2388, 0x4e94b90}, {0x776b23a0, 0x4e3e6c0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x45d7f68 sp=0x45d7e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func1({0x1191fc0, 0x4e3e750}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:349 +0xa8 fp=0x45d7f9c sp=0x45d7f68 pc=0x8c36d0 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x45d7fec sp=0x45d7f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x45d7fec sp=0x45d7fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5829 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x776385a0, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4822b3c sp=0x4822b30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77638594, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x4822b54 sp=0x4822b3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77638594, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x4822b6c sp=0x4822b54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147784, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x4822b80 sp=0x4822b6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x5147770, {0x4b7e106, 0x3efa, 0x3efa}, 0x4822c44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x4822bbc sp=0x4822b80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x5147770, {0x4b7e106, 0x3efa, 0x3efa}, 0x3035444) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x4822bec sp=0x4822bbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e94b78, {0x4b7e106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x4822cd0 sp=0x4822bec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e94b78, {0x4b7e106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x4822d2c sp=0x4822cd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e94b90, 0x4174be0) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x4822e3c sp=0x4822d2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4e3e6c0}, {0x776b20d0, 0x4e94b90}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x4822f68 sp=0x4822e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4e3e750}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x4822f9c sp=0x4822f68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x4822fec sp=0x4822f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4822fec sp=0x4822fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5820 [select, 12 minutes]: sing-box[3866]: runtime.gopark(0x1079104, 0x0, 0x9, 0x18, 0x1) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x444d22c sp=0x444d220 pc=0x44ac00 sing-box[3866]: runtime.selectgo(0x467a5b0, 0x3da8fa0, 0x0, 0x0, 0x2, 0x1) sing-box[3866]: runtime/select.go:328 +0x4b4 fp=0x444d2b4 sp=0x444d22c pc=0x45f1bc sing-box[3866]: reflect.rselect({0x444d388, 0x2, 0x4}) sing-box[3866]: runtime/select.go:590 +0x28c fp=0x444d308 sp=0x444d2b4 pc=0x48433c sing-box[3866]: reflect.Select({0x4efa080, 0x2, 0x2}) sing-box[3866]: reflect/value.go:2952 +0x108 fp=0x444d3c8 sp=0x444d308 pc=0x4f6fe4 sing-box[3866]: github.com/sagernet/sing/common.SelectContext({0x467a590, 0x2, 0x2}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/context.go:13 +0xcc fp=0x444d3f0 sp=0x444d3c8 pc=0x7c1748 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList(0x4dffc50, {0x444d540, 0x1, 0x1}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:89 +0x2dc fp=0x444d470 sp=0x444d3f0 pc=0x826d20 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList({0x444d540, 0x1, 0x1}, {0x11954d8, 0x4e98e40}, {0x776b2088, 0x52647e0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:358 +0x490 fp=0x444d4a4 sp=0x444d470 pc=0x8c349c sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConn(...) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:343 sing-box[3866]: github.com/sagernet/sing-box/outbound.NewPacketConnection({0x1192020, 0x4dffbc0}, {0x118ef10, 0x320c460}, {0x11954d8, 0x4e98e40}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:83 +0x97c fp=0x444d6bc sp=0x444d4a4 pc=0xd41288 sing-box[3866]: github.com/sagernet/sing-box/outbound.(*Direct).NewPacketConnection(0x320c460, {0x1192020, 0x4dffbc0}, {0x11954d8, 0x4e98e40}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/direct.go:196 +0x98 fp=0x444d7c0 sp=0x444d6bc pc=0xd44448 sing-box[3866]: github.com/sagernet/sing-box/route.(*Router).RoutePacketConnection(0x30bfd40, {0x1192020, 0x4dffb60}, {0x11954d8, 0x4e98e40}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/route/router.go:739 +0x13cc fp=0x444da4c sp=0x444d7c0 pc=0xe0e370 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection(0x30a20d0, {0x1192020, 0x4dffb60}, {0x11954d8, 0x4e98e40}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/http.go:108 +0x38c fp=0x444db5c sp=0x444da4c pc=0xdc9cf8 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection-fm({0x1192020, 0x4dffb60}, {0x11954d8, 0x4e98e40}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, ...}, ...}) sing-box[3866]: :1 +0xb0 fp=0x444dc5c sp=0x444db5c pc=0xdee7b4 sing-box[3866]: github.com/sagernet/sing-box/adapter.(*myUpstreamHandlerWrapper).NewPacketConnection(0x34c4870, {0x1192020, 0x4dffb60}, {0x11954d8, 0x4e98e40}, {{0x1033620, 0x6}, {{{0x0, 0xffff0a0100a2}, 0x300a040}, ...}, ...}) sing-box[3866]: github.com/sagernet/sing-box/adapter/upstream.go:59 +0x2bc fp=0x444df20 sp=0x444dc5c pc=0x95b74c sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:211 +0x288 fp=0x444dfec sp=0x444df20 pc=0xb5b194 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x444dfec sp=0x444dfec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/protocol/socks.HandleConnection0 sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:209 +0xaec sing-box[3866]: sing-box[3866]: goroutine 5821 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77639fd4, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x45d2aa4 sp=0x45d2a98 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77639fc8, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x45d2abc sp=0x45d2aa4 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77639fc8, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x45d2ad4 sp=0x45d2abc pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x3cdb5f4, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x45d2ae8 sp=0x45d2ad4 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet4(0x3cdb5e0, {0x4d1c000, 0x4000, 0x4000}, 0x45d2b94) sing-box[3866]: internal/poll/fd_unix.go:250 +0x240 fp=0x45d2b24 sp=0x45d2ae8 pc=0x50fdd4 sing-box[3866]: net.(*netFD).readFromInet4(0x3cdb5e0, {0x4d1c000, 0x4000, 0x4000}, 0x45d2b94) sing-box[3866]: net/fd_posix.go:66 +0x64 fp=0x45d2b54 sp=0x45d2b24 pc=0x56fc90 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x5264740, {0x4d1c000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock_posix.go:78 +0x270 fp=0x45d2c38 sp=0x45d2b54 pc=0x59acb0 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x5264740, {0x4d1c000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x45d2c94 sp=0x45d2c38 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x5264788, 0x32d2b60) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x45d2da4 sp=0x45d2c94 pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).ReadPacket(0x4e98e40, 0x32d2b60) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/packet.go:93 +0x90 fp=0x45d2e3c sp=0x45d2da4 pc=0xb5c114 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b2388, 0x52647e0}, {0x776b23a0, 0x4e98e40}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x45d2f68 sp=0x45d2e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func1({0x1191fc0, 0x4e98f90}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:349 +0xa8 fp=0x45d2f9c sp=0x45d2f68 pc=0x8c36d0 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x45d2fec sp=0x45d2f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x45d2fec sp=0x45d2fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5822 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x7763752c, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x46f1b3c sp=0x46f1b30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77637520, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x46f1b54 sp=0x46f1b3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77637520, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x46f1b6c sp=0x46f1b54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x3cdb644, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x46f1b80 sp=0x46f1b6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x3cdb630, {0x4d18106, 0x3efa, 0x3efa}, 0x46f1c44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x46f1bbc sp=0x46f1b80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x3cdb630, {0x4d18106, 0x3efa, 0x3efa}, 0x34a9444) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x46f1bec sp=0x46f1bbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x52647d8, {0x4d18106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x46f1cd0 sp=0x46f1bec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x52647d8, {0x4d18106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x46f1d2c sp=0x46f1cd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x52647e0, 0x32d2b00) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x46f1e3c sp=0x46f1d2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4e98e40}, {0x776b20d0, 0x52647e0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x46f1f68 sp=0x46f1e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4e98f90}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x46f1f9c sp=0x46f1f68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x46f1fec sp=0x46f1f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x46f1fec sp=0x46f1fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5830 [chan receive, 12 minutes]: sing-box[3866]: runtime.gopark(0x1078ff8, 0x35dbe30, 0xe, 0x17, 0x2) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4dd14e0 sp=0x4dd14d4 pc=0x44ac00 sing-box[3866]: runtime.chanrecv(0x35dbe00, 0x0, 0x1) sing-box[3866]: runtime/chan.go:583 +0x664 fp=0x4dd1528 sp=0x4dd14e0 pc=0x406300 sing-box[3866]: runtime.chanrecv1(0x35dbe00, 0x0) sing-box[3866]: runtime/chan.go:442 +0x2c fp=0x4dd153c sp=0x4dd1528 pc=0x405c48 sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0({0x1192020, 0x4733ba8}, {0x11971f0, 0x4e94c68}, 0x5, {0x0, 0x0}, {0x77607040, 0x360ed20}, {{0x1033620, ...}, ...}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:215 +0xb70 fp=0x4dd1814 sp=0x4dd153c pc=0xb5a4ac sing-box[3866]: github.com/sagernet/sing-box/inbound.(*Mixed).NewConnection(0x30a20d0, {0x1192020, 0x4733ba8}, {0x11971f0, 0x4e94c68}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/mixed.go:59 +0x3ac fp=0x4dd1d00 sp=0x4dd1814 pc=0xdcde40 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).injectTCP(0x30a20d0, {0x11971f0, 0x4e94c68}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, 0x0}, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:62 +0x200 fp=0x4dd1efc sp=0x4dd1d00 pc=0xdc3d1c sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn.func1() sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0xa0 fp=0x4dd1fec sp=0x4dd1efc pc=0xdc3b0c sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4dd1fec sp=0x4dd1fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0x414 sing-box[3866]: sing-box[3866]: goroutine 5823 [select, 12 minutes]: sing-box[3866]: runtime.gopark(0x1079104, 0x0, 0x9, 0x18, 0x1) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4dcd22c sp=0x4dcd220 pc=0x44ac00 sing-box[3866]: runtime.selectgo(0x467a700, 0x3da9050, 0x0, 0x0, 0x2, 0x1) sing-box[3866]: runtime/select.go:328 +0x4b4 fp=0x4dcd2b4 sp=0x4dcd22c pc=0x45f1bc sing-box[3866]: reflect.rselect({0x4dcd388, 0x2, 0x4}) sing-box[3866]: runtime/select.go:590 +0x28c fp=0x4dcd308 sp=0x4dcd2b4 pc=0x48433c sing-box[3866]: reflect.Select({0x4efa0c0, 0x2, 0x2}) sing-box[3866]: reflect/value.go:2952 +0x108 fp=0x4dcd3c8 sp=0x4dcd308 pc=0x4f6fe4 sing-box[3866]: github.com/sagernet/sing/common.SelectContext({0x467a6e0, 0x2, 0x2}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/context.go:13 +0xcc fp=0x4dcd3f0 sp=0x4dcd3c8 pc=0x7c1748 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList(0x4dffdd0, {0x4dcd540, 0x1, 0x1}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:89 +0x2dc fp=0x4dcd470 sp=0x4dcd3f0 pc=0x826d20 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList({0x4dcd540, 0x1, 0x1}, {0x11954d8, 0x4e99080}, {0x776b2088, 0x5264890}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:358 +0x490 fp=0x4dcd4a4 sp=0x4dcd470 pc=0x8c349c sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConn(...) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:343 sing-box[3866]: github.com/sagernet/sing-box/outbound.NewPacketConnection({0x1192020, 0x4dffd10}, {0x118ef10, 0x320c460}, {0x11954d8, 0x4e99080}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:83 +0x97c fp=0x4dcd6bc sp=0x4dcd4a4 pc=0xd41288 sing-box[3866]: github.com/sagernet/sing-box/outbound.(*Direct).NewPacketConnection(0x320c460, {0x1192020, 0x4dffd10}, {0x11954d8, 0x4e99080}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/direct.go:196 +0x98 fp=0x4dcd7c0 sp=0x4dcd6bc pc=0xd44448 sing-box[3866]: github.com/sagernet/sing-box/route.(*Router).RoutePacketConnection(0x30bfd40, {0x1192020, 0x4733ba8}, {0x11954d8, 0x4e99080}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/route/router.go:739 +0x13cc fp=0x4dcda4c sp=0x4dcd7c0 pc=0xe0e370 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection(0x30a20d0, {0x1192020, 0x4733ba8}, {0x11954d8, 0x4e99080}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/http.go:108 +0x38c fp=0x4dcdb5c sp=0x4dcda4c pc=0xdc9cf8 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection-fm({0x1192020, 0x4733ba8}, {0x11954d8, 0x4e99080}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, ...}, ...}) sing-box[3866]: :1 +0xb0 fp=0x4dcdc5c sp=0x4dcdb5c pc=0xdee7b4 sing-box[3866]: github.com/sagernet/sing-box/adapter.(*myUpstreamHandlerWrapper).NewPacketConnection(0x360ed20, {0x1192020, 0x4733ba8}, {0x11954d8, 0x4e99080}, {{0x1033620, 0x6}, {{{0x0, 0xffff0a0100a2}, 0x300a040}, ...}, ...}) sing-box[3866]: github.com/sagernet/sing-box/adapter/upstream.go:59 +0x2bc fp=0x4dcdf20 sp=0x4dcdc5c pc=0x95b74c sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:211 +0x288 fp=0x4dcdfec sp=0x4dcdf20 pc=0xb5b194 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4dcdfec sp=0x4dcdfec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/protocol/socks.HandleConnection0 sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:209 +0xaec sing-box[3866]: sing-box[3866]: goroutine 5824 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77639e9c, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x5165aa4 sp=0x5165a98 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77639e90, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x5165abc sp=0x5165aa4 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77639e90, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x5165ad4 sp=0x5165abc pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x3cdb694, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x5165ae8 sp=0x5165ad4 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet4(0x3cdb680, {0x4e10000, 0x4000, 0x4000}, 0x5165b94) sing-box[3866]: internal/poll/fd_unix.go:250 +0x240 fp=0x5165b24 sp=0x5165ae8 pc=0x50fdd4 sing-box[3866]: net.(*netFD).readFromInet4(0x3cdb680, {0x4e10000, 0x4000, 0x4000}, 0x5165b94) sing-box[3866]: net/fd_posix.go:66 +0x64 fp=0x5165b54 sp=0x5165b24 pc=0x56fc90 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x5264818, {0x4e10000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock_posix.go:78 +0x270 fp=0x5165c38 sp=0x5165b54 pc=0x59acb0 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x5264818, {0x4e10000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x5165c94 sp=0x5165c38 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x5264828, 0x4174c80) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x5165da4 sp=0x5165c94 pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).ReadPacket(0x4e99080, 0x4174c80) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/packet.go:93 +0x90 fp=0x5165e3c sp=0x5165da4 pc=0xb5c114 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b2388, 0x5264890}, {0x776b23a0, 0x4e99080}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x5165f68 sp=0x5165e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func1({0x1191fc0, 0x4e99260}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:349 +0xa8 fp=0x5165f9c sp=0x5165f68 pc=0x8c36d0 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x5165fec sp=0x5165f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x5165fec sp=0x5165fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5841 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77639e00, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x45d3b3c sp=0x45d3b30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77639df4, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x45d3b54 sp=0x45d3b3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77639df4, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x45d3b6c sp=0x45d3b54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x3cdb734, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x45d3b80 sp=0x45d3b6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x3cdb720, {0x4e0c106, 0x3efa, 0x3efa}, 0x45d3c44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x45d3bbc sp=0x45d3b80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x3cdb720, {0x4e0c106, 0x3efa, 0x3efa}, 0x34a9444) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x45d3bec sp=0x45d3bbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x5264888, {0x4e0c106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x45d3cd0 sp=0x45d3bec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x5264888, {0x4e0c106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x45d3d2c sp=0x45d3cd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x5264890, 0x32d2c60) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x45d3e3c sp=0x45d3d2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4e99080}, {0x776b20d0, 0x5264890}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x45d3f68 sp=0x45d3e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4e99260}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x45d3f9c sp=0x45d3f68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x45d3fec sp=0x45d3f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x45d3fec sp=0x45d3fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5873 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77639cc8, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x45d4b3c sp=0x45d4b30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77639cbc, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x45d4b54 sp=0x45d4b3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77639cbc, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x45d4b6c sp=0x45d4b54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147be4, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x45d4b80 sp=0x45d4b6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x5147bd0, {0x4fea106, 0x3efa, 0x3efa}, 0x45d4c44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x45d4bbc sp=0x45d4b80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x5147bd0, {0x4fea106, 0x3efa, 0x3efa}, 0x45d4c44) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x45d4bec sp=0x45d4bbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e95000, {0x4fea106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x45d4cd0 sp=0x45d4bec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e95000, {0x4fea106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x45d4d2c sp=0x45d4cd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e95008, 0x4175600) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x45d4e3c sp=0x45d4d2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4e3eb70}, {0x776b20d0, 0x4e95008}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x45d4f68 sp=0x45d4e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4e3ec00}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x45d4f9c sp=0x45d4f68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x45d4fec sp=0x45d4f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x45d4fec sp=0x45d4fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5844 [chan receive, 12 minutes]: sing-box[3866]: runtime.gopark(0x1078ff8, 0x4dbabf0, 0xe, 0x17, 0x2) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4fe14e0 sp=0x4fe14d4 pc=0x44ac00 sing-box[3866]: runtime.chanrecv(0x4dbabc0, 0x0, 0x1) sing-box[3866]: runtime/chan.go:583 +0x664 fp=0x4fe1528 sp=0x4fe14e0 pc=0x406300 sing-box[3866]: runtime.chanrecv1(0x4dbabc0, 0x0) sing-box[3866]: runtime/chan.go:442 +0x2c fp=0x4fe153c sp=0x4fe1528 pc=0x405c48 sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0({0x1192020, 0x3074468}, {0x11971f0, 0x5264b10}, 0x5, {0x0, 0x0}, {0x77607040, 0x4937a40}, {{0x1033620, ...}, ...}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:215 +0xb70 fp=0x4fe1814 sp=0x4fe153c pc=0xb5a4ac sing-box[3866]: github.com/sagernet/sing-box/inbound.(*Mixed).NewConnection(0x30a20d0, {0x1192020, 0x3074468}, {0x11971f0, 0x5264b10}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/mixed.go:59 +0x3ac fp=0x4fe1d00 sp=0x4fe1814 pc=0xdcde40 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).injectTCP(0x30a20d0, {0x11971f0, 0x5264b10}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, 0x0}, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:62 +0x200 fp=0x4fe1efc sp=0x4fe1d00 pc=0xdc3d1c sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn.func1() sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0xa0 fp=0x4fe1fec sp=0x4fe1efc pc=0xdc3b0c sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4fe1fec sp=0x4fe1fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0x414 sing-box[3866]: sing-box[3866]: goroutine 5850 [chan receive, 12 minutes]: sing-box[3866]: runtime.gopark(0x1078ff8, 0x4dbaef0, 0xe, 0x17, 0x2) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4fdd4e0 sp=0x4fdd4d4 pc=0x44ac00 sing-box[3866]: runtime.chanrecv(0x4dbaec0, 0x0, 0x1) sing-box[3866]: runtime/chan.go:583 +0x664 fp=0x4fdd528 sp=0x4fdd4e0 pc=0x406300 sing-box[3866]: runtime.chanrecv1(0x4dbaec0, 0x0) sing-box[3866]: runtime/chan.go:442 +0x2c fp=0x4fdd53c sp=0x4fdd528 pc=0x405c48 sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0({0x1192020, 0x3c9c3c0}, {0x11971f0, 0x5264f78}, 0x5, {0x0, 0x0}, {0x77607040, 0x3b421e0}, {{0x1033620, ...}, ...}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:215 +0xb70 fp=0x4fdd814 sp=0x4fdd53c pc=0xb5a4ac sing-box[3866]: github.com/sagernet/sing-box/inbound.(*Mixed).NewConnection(0x30a20d0, {0x1192020, 0x3c9c3c0}, {0x11971f0, 0x5264f78}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/mixed.go:59 +0x3ac fp=0x4fddd00 sp=0x4fdd814 pc=0xdcde40 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).injectTCP(0x30a20d0, {0x11971f0, 0x5264f78}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, 0x0}, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:62 +0x200 fp=0x4fddefc sp=0x4fddd00 pc=0xdc3d1c sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn.func1() sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0xa0 fp=0x4fddfec sp=0x4fddefc pc=0xdc3b0c sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4fddfec sp=0x4fddfec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0x414 sing-box[3866]: sing-box[3866]: goroutine 5851 [chan receive, 12 minutes]: sing-box[3866]: runtime.gopark(0x1078ff8, 0x3dd72f0, 0xe, 0x17, 0x2) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4dcf4e0 sp=0x4dcf4d4 pc=0x44ac00 sing-box[3866]: runtime.chanrecv(0x3dd72c0, 0x0, 0x1) sing-box[3866]: runtime/chan.go:583 +0x664 fp=0x4dcf528 sp=0x4dcf4e0 pc=0x406300 sing-box[3866]: runtime.chanrecv1(0x3dd72c0, 0x0) sing-box[3866]: runtime/chan.go:442 +0x2c fp=0x4dcf53c sp=0x4dcf528 pc=0x405c48 sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0({0x1192020, 0x3333848}, {0x11971f0, 0x5264f80}, 0x5, {0x0, 0x0}, {0x77607040, 0x397f4a0}, {{0x1033620, ...}, ...}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:215 +0xb70 fp=0x4dcf814 sp=0x4dcf53c pc=0xb5a4ac sing-box[3866]: github.com/sagernet/sing-box/inbound.(*Mixed).NewConnection(0x30a20d0, {0x1192020, 0x3333848}, {0x11971f0, 0x5264f80}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/mixed.go:59 +0x3ac fp=0x4dcfd00 sp=0x4dcf814 pc=0xdcde40 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).injectTCP(0x30a20d0, {0x11971f0, 0x5264f80}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, 0x0}, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:62 +0x200 fp=0x4dcfefc sp=0x4dcfd00 pc=0xdc3d1c sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn.func1() sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0xa0 fp=0x4dcffec sp=0x4dcfefc pc=0xdc3b0c sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4dcffec sp=0x4dcffec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing-box/inbound.(*myInboundAdapter).loopTCPIn sing-box[3866]: github.com/sagernet/sing-box/inbound/default_tcp.go:54 +0x414 sing-box[3866]: sing-box[3866]: goroutine 5875 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77639614, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x45d5aa4 sp=0x45d5a98 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x77639608, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x45d5abc sp=0x45d5aa4 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x77639608, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x45d5ad4 sp=0x45d5abc pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147d74, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x45d5ae8 sp=0x45d5ad4 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet4(0x5147d60, {0x5108000, 0x4000, 0x4000}, 0x45d5b94) sing-box[3866]: internal/poll/fd_unix.go:250 +0x240 fp=0x45d5b24 sp=0x45d5ae8 pc=0x50fdd4 sing-box[3866]: net.(*netFD).readFromInet4(0x5147d60, {0x5108000, 0x4000, 0x4000}, 0x45d5b94) sing-box[3866]: net/fd_posix.go:66 +0x64 fp=0x45d5b54 sp=0x45d5b24 pc=0x56fc90 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e95058, {0x5108000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock_posix.go:78 +0x270 fp=0x45d5c38 sp=0x45d5b54 pc=0x59acb0 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e95058, {0x5108000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x45d5c94 sp=0x45d5c38 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e95068, 0x4d750e0) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x45d5da4 sp=0x45d5c94 pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).ReadPacket(0x4e3ec90, 0x4d750e0) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/packet.go:93 +0x90 fp=0x45d5e3c sp=0x45d5da4 pc=0xb5c114 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b2388, 0x4e950b0}, {0x776b23a0, 0x4e3ec90}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x45d5f68 sp=0x45d5e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func1({0x1191fc0, 0x4e3ed20}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:349 +0xa8 fp=0x45d5f9c sp=0x45d5f68 pc=0x8c36d0 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x45d5fec sp=0x45d5f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x45d5fec sp=0x45d5fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5834 [select, 12 minutes]: sing-box[3866]: runtime.gopark(0x1079104, 0x0, 0x9, 0x18, 0x1) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4dd322c sp=0x4dd3220 pc=0x44ac00 sing-box[3866]: runtime.selectgo(0x4b1eb90, 0x49e88f0, 0x0, 0x0, 0x2, 0x1) sing-box[3866]: runtime/select.go:328 +0x4b4 fp=0x4dd32b4 sp=0x4dd322c pc=0x45f1bc sing-box[3866]: reflect.rselect({0x4dd3388, 0x2, 0x4}) sing-box[3866]: runtime/select.go:590 +0x28c fp=0x4dd3308 sp=0x4dd32b4 pc=0x48433c sing-box[3866]: reflect.Select({0x3bfb300, 0x2, 0x2}) sing-box[3866]: reflect/value.go:2952 +0x108 fp=0x4dd33c8 sp=0x4dd3308 pc=0x4f6fe4 sing-box[3866]: github.com/sagernet/sing/common.SelectContext({0x4b1eb70, 0x2, 0x2}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/context.go:13 +0xcc fp=0x4dd33f0 sp=0x4dd33c8 pc=0x7c1748 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList(0x47e6330, {0x4dd3540, 0x1, 0x1}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:89 +0x2dc fp=0x4dd3470 sp=0x4dd33f0 pc=0x826d20 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList({0x4dd3540, 0x1, 0x1}, {0x11954d8, 0x4e3e900}, {0x776b2088, 0x4e94e20}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:358 +0x490 fp=0x4dd34a4 sp=0x4dd3470 pc=0x8c349c sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConn(...) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:343 sing-box[3866]: github.com/sagernet/sing-box/outbound.NewPacketConnection({0x1192020, 0x47e60c0}, {0x118ef10, 0x320c460}, {0x11954d8, 0x4e3e900}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:83 +0x97c fp=0x4dd36bc sp=0x4dd34a4 pc=0xd41288 sing-box[3866]: github.com/sagernet/sing-box/outbound.(*Direct).NewPacketConnection(0x320c460, {0x1192020, 0x47e60c0}, {0x11954d8, 0x4e3e900}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/direct.go:196 +0x98 fp=0x4dd37c0 sp=0x4dd36bc pc=0xd44448 sing-box[3866]: github.com/sagernet/sing-box/route.(*Router).RoutePacketConnection(0x30bfd40, {0x1192020, 0x3333848}, {0x11954d8, 0x4e3e900}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/route/router.go:739 +0x13cc fp=0x4dd3a4c sp=0x4dd37c0 pc=0xe0e370 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection(0x30a20d0, {0x1192020, 0x3333848}, {0x11954d8, 0x4e3e900}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/http.go:108 +0x38c fp=0x4dd3b5c sp=0x4dd3a4c pc=0xdc9cf8 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*myInboundAdapter).streamUserPacketConnection-fm({0x1192020, 0x3333848}, {0x11954d8, 0x4e3e900}, {{0x30ea3f0, 0x8}, {0x1032c11, 0x5}, 0x0, {0x0, ...}, ...}) sing-box[3866]: :1 +0xb0 fp=0x4dd3c5c sp=0x4dd3b5c pc=0xdee7b4 sing-box[3866]: github.com/sagernet/sing-box/adapter.(*myUpstreamHandlerWrapper).NewPacketConnection(0x397f4a0, {0x1192020, 0x3333848}, {0x11954d8, 0x4e3e900}, {{0x1033620, 0x6}, {{{0x0, 0xffff0a0100a2}, 0x300a040}, ...}, ...}) sing-box[3866]: github.com/sagernet/sing-box/adapter/upstream.go:59 +0x2bc fp=0x4dd3f20 sp=0x4dd3c5c pc=0x95b74c sing-box[3866]: github.com/sagernet/sing/protocol/socks.HandleConnection0.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:211 +0x288 fp=0x4dd3fec sp=0x4dd3f20 pc=0xb5b194 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4dd3fec sp=0x4dd3fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/protocol/socks.HandleConnection0 sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/handshake.go:209 +0xaec sing-box[3866]: sing-box[3866]: goroutine 5835 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x77639578, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4ef0aa4 sp=0x4ef0a98 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x7763956c, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x4ef0abc sp=0x4ef0aa4 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x7763956c, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x4ef0ad4 sp=0x4ef0abc pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147a54, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x4ef0ae8 sp=0x4ef0ad4 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet4(0x5147a40, {0x50c4000, 0x4000, 0x4000}, 0x4ef0b94) sing-box[3866]: internal/poll/fd_unix.go:250 +0x240 fp=0x4ef0b24 sp=0x4ef0ae8 pc=0x50fdd4 sing-box[3866]: net.(*netFD).readFromInet4(0x5147a40, {0x50c4000, 0x4000, 0x4000}, 0x4ef0b94) sing-box[3866]: net/fd_posix.go:66 +0x64 fp=0x4ef0b54 sp=0x4ef0b24 pc=0x56fc90 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e94dc8, {0x50c4000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock_posix.go:78 +0x270 fp=0x4ef0c38 sp=0x4ef0b54 pc=0x59acb0 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e94dc8, {0x50c4000, 0x4000, 0x4000}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x4ef0c94 sp=0x4ef0c38 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e94dd8, 0x41753a0) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x4ef0da4 sp=0x4ef0c94 pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).ReadPacket(0x4e3e900, 0x41753a0) sing-box[3866]: github.com/sagernet/sing@v0.2.4/protocol/socks/packet.go:93 +0x90 fp=0x4ef0e3c sp=0x4ef0da4 pc=0xb5c114 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b2388, 0x4e94e20}, {0x776b23a0, 0x4e3e900}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x4ef0f68 sp=0x4ef0e3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func1({0x1191fc0, 0x4e3e990}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:349 +0xa8 fp=0x4ef0f9c sp=0x4ef0f68 pc=0x8c36d0 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x4ef0fec sp=0x4ef0f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4ef0fec sp=0x4ef0fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5836 [IO wait, 12 minutes]: sing-box[3866]: runtime.gopark(0x10790c0, 0x776394dc, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x47abb3c sp=0x47abb30 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x776394d0, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x47abb54 sp=0x47abb3c pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x776394d0, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x47abb6c sp=0x47abb54 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x5147aa4, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x47abb80 sp=0x47abb6c pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).ReadFromInet6(0x5147a90, {0x50c0106, 0x3efa, 0x3efa}, 0x47abc44) sing-box[3866]: internal/poll/fd_unix.go:277 +0x240 fp=0x47abbbc sp=0x47abb80 pc=0x51016c sing-box[3866]: net.(*netFD).readFromInet6(0x5147a90, {0x50c0106, 0x3efa, 0x3efa}, 0x3035444) sing-box[3866]: net/fd_posix.go:72 +0x64 fp=0x47abbec sp=0x47abbbc pc=0x56fde0 sing-box[3866]: net.(*UDPConn).readFromAddrPort(0x4e94e18, {0x50c0106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock_posix.go:85 +0xf4 fp=0x47abcd0 sp=0x47abbec pc=0x59ab34 sing-box[3866]: net.(*UDPConn).ReadFromUDPAddrPort(0x4e94e18, {0x50c0106, 0x3efa, 0x3efa}) sing-box[3866]: net/udpsock.go:175 +0x9c fp=0x47abd2c sp=0x47abcd0 pc=0x5984b8 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedUDPConn).ReadPacket(0x4e94e20, 0x4175180) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:28 +0xc8 fp=0x47abe3c sp=0x47abd2c pc=0x8be940 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacket({0x776b20b8, 0x4e3e900}, {0x776b20d0, 0x4e94e20}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:265 +0x584 fp=0x47abf68 sp=0x47abe3c pc=0x8c25d8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x1191fc0, 0x4e3e990}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:352 +0xa8 fp=0x47abf9c sp=0x47abf68 pc=0x8c3608 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x47abfec sp=0x47abf9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x47abfec sp=0x47abfec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5934 [IO wait]: sing-box[3866]: runtime.gopark(0x10790c0, 0x774859dc, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4e74ce0 sp=0x4e74cd4 pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x774859d0, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x4e74cf8 sp=0x4e74ce0 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x774859d0, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x4e74d10 sp=0x4e74cf8 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x4a85234, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x4e74d24 sp=0x4e74d10 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).Read(0x4a85220, {0x5008000, 0x8000, 0x8000}) sing-box[3866]: internal/poll/fd_unix.go:167 +0x268 fp=0x4e74d60 sp=0x4e74d24 pc=0x50f410 sing-box[3866]: net.(*netFD).Read(0x4a85220, {0x5008000, 0x8000, 0x8000}) sing-box[3866]: net/fd_posix.go:55 +0x5c fp=0x4e74d8c sp=0x4e74d60 pc=0x56f9d8 sing-box[3866]: net.(*conn).Read(0x325eea8, {0x5008000, 0x8000, 0x8000}) sing-box[3866]: net/net.go:183 +0x6c fp=0x4e74dbc sp=0x4e74d8c pc=0x588bc4 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x325f2b0, 0x4d74ca0) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:78 +0x90 fp=0x4e74de4 sp=0x4e74dbc pc=0x8bf3a8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x77608e10, 0x4d60b40}, {0x118f5e8, 0x325f2a8}, {0x118f5d0, 0x325f2b0}, 0x4e74e88) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:113 +0x1f0 fp=0x4e74e2c sp=0x4e74de4 pc=0x8c097c sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyExtended({0x77608e10, 0x4d60b40}, {0x118f5e8, 0x325f2a8}, {0x118f5d0, 0x325f2b0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:100 +0x364 fp=0x4e74ec8 sp=0x4e74e2c pc=0x8c05c0 sing-box[3866]: github.com/sagernet/sing/common/bufio.Copy({0x77608e10, 0x4d60b40}, {0x118c278, 0x467aac0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:76 +0x4b0 fp=0x4e74f4c sp=0x4e74ec8 pc=0x8c00ac sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyConnContextList.func1({0x1191fc0, 0x3211a40}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:196 +0xac fp=0x4e74f9c sp=0x4e74f4c pc=0x8c1f68 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x4e74fec sp=0x4e74f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4e74fec sp=0x4e74fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 sing-box[3866]: sing-box[3866]: goroutine 5965 [select]: sing-box[3866]: runtime.gopark(0x1079104, 0x0, 0x9, 0x18, 0x1) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x50574ac sp=0x50574a0 pc=0x44ac00 sing-box[3866]: runtime.selectgo(0x3cfc880, 0x49e8b90, 0x0, 0x0, 0x2, 0x1) sing-box[3866]: runtime/select.go:328 +0x4b4 fp=0x5057534 sp=0x50574ac pc=0x45f1bc sing-box[3866]: reflect.rselect({0x5057608, 0x2, 0x4}) sing-box[3866]: runtime/select.go:590 +0x28c fp=0x5057588 sp=0x5057534 pc=0x48433c sing-box[3866]: reflect.Select({0x4d6f000, 0x2, 0x2}) sing-box[3866]: reflect/value.go:2952 +0x108 fp=0x5057648 sp=0x5057588 pc=0x4f6fe4 sing-box[3866]: github.com/sagernet/sing/common.SelectContext({0x3cfc860, 0x2, 0x2}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/context.go:13 +0xcc fp=0x5057670 sp=0x5057648 pc=0x7c1748 sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList(0x4dfe9f0, {0x505f780, 0x1, 0x1}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:89 +0x2dc fp=0x50576f0 sp=0x5057670 pc=0x826d20 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyConnContextList({0x505f780, 0x1, 0x1}, {0x1196f50, 0x467aac0}, {0x1196b00, 0x4d60b40}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:229 +0x848 fp=0x505772c sp=0x50576f0 pc=0x8c1898 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyConn(...) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:189 sing-box[3866]: github.com/sagernet/sing-box/outbound.CopyEarlyConn({0x1192020, 0x49d1878}, {0x1196f50, 0x467aac0}, {0x1196b00, 0x4d60b40}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:94 +0x228 fp=0x505f7cc sp=0x505772c pc=0xd414d0 sing-box[3866]: github.com/sagernet/sing-box/outbound.NewConnection({0x1192020, 0x49d17d0}, {0x118f018, 0x320c3f0}, {0x1196f50, 0x467aac0}, {{0x309db98, 0x6}, {0x1031fac, 0x3}, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/default.go:54 +0x284 fp=0x505f830 sp=0x505f7cc pc=0xd408ec sing-box[3866]: github.com/sagernet/sing-box/outbound.(*VLESS).NewConnection(0x320c3f0, {0x1192020, 0x49d17d0}, {0x1196f50, 0x467aac0}, {{0x309db98, 0x6}, {0x1031fac, 0x3}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/outbound/vless.go:159 +0x98 fp=0x505f934 sp=0x505f830 pc=0xd5cd98 sing-box[3866]: github.com/sagernet/sing-box/route.(*Router).RouteConnection(0x30bfd40, {0x1192020, 0x49d1518}, {0x11971f0, 0x325eea8}, {{0x309db98, 0x6}, {0x1031fac, 0x3}, 0x0, ...}) sing-box[3866]: github.com/sagernet/sing-box/route/router.go:659 +0x1924 fp=0x505fcc8 sp=0x505f934 pc=0xe0c7b0 sing-box[3866]: github.com/sagernet/sing-box/inbound.(*Tun).NewConnection(0x30824b0, {0x1191fc0, 0x30a8a50}, {0x11971f0, 0x325eea8}, {{0x0, 0x0}, {{{0x0, 0xffffac130001}, 0x300a040}, ...}, ...}) sing-box[3866]: github.com/sagernet/sing-box/inbound/tun.go:200 +0x314 fp=0x505feb8 sp=0x505fcc8 pc=0xddfaf0 sing-box[3866]: github.com/sagernet/sing-tun.(*System).acceptLoop.func1() sing-box[3866]: github.com/sagernet/sing-tun@v0.1.4/system.go:221 +0x1f0 fp=0x505ffec sp=0x505feb8 pc=0x92a7d8 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x505ffec sp=0x505ffec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing-tun.(*System).acceptLoop sing-box[3866]: github.com/sagernet/sing-tun@v0.1.4/system.go:220 +0x50c sing-box[3866]: sing-box[3866]: goroutine 5935 [IO wait]: sing-box[3866]: runtime.gopark(0x10790c0, 0x7763a070, 0x2, 0x1b, 0x5) sing-box[3866]: runtime/proc.go:363 +0x124 fp=0x4589858 sp=0x458984c pc=0x44ac00 sing-box[3866]: runtime.netpollblock(0x7763a064, 0x72, 0x0) sing-box[3866]: runtime/netpoll.go:526 +0x1b8 fp=0x4589870 sp=0x4589858 pc=0x440858 sing-box[3866]: internal/poll.runtime_pollWait(0x7763a064, 0x72) sing-box[3866]: runtime/netpoll.go:305 +0x110 fp=0x4589888 sp=0x4589870 pc=0x481ea4 sing-box[3866]: internal/poll.(*pollDesc).wait(0x4a85784, 0x72, 0x0) sing-box[3866]: internal/poll/fd_poll_runtime.go:84 +0x54 fp=0x458989c sp=0x4589888 pc=0x50dea0 sing-box[3866]: internal/poll.(*pollDesc).waitRead(...) sing-box[3866]: internal/poll/fd_poll_runtime.go:89 sing-box[3866]: internal/poll.(*FD).Read(0x4a85770, {0x3342000, 0x2000, 0x2000}) sing-box[3866]: internal/poll/fd_unix.go:167 +0x268 fp=0x45898d8 sp=0x458989c pc=0x50f410 sing-box[3866]: net.(*netFD).Read(0x4a85770, {0x3342000, 0x2000, 0x2000}) sing-box[3866]: net/fd_posix.go:55 +0x5c fp=0x4589904 sp=0x45898d8 pc=0x56f9d8 sing-box[3866]: net.(*conn).Read(0x5162110, {0x3342000, 0x2000, 0x2000}) sing-box[3866]: net/net.go:183 +0x6c fp=0x4589934 sp=0x4589904 pc=0x588bc4 sing-box[3866]: github.com/sagernet/utls.(*atLeastReader).Read(0x467ac40, {0x3342000, 0x2000, 0x2000}) sing-box[3866]: github.com/sagernet/utls@v0.0.0-20230309024959-6732c2ab36f2/conn.go:791 +0x8c fp=0x4589964 sp=0x4589934 pc=0x9b2ffc sing-box[3866]: bytes.(*Buffer).ReadFrom(0x40d2988, {0x118c3b8, 0x467ac40}) sing-box[3866]: bytes/buffer.go:202 +0xdc fp=0x45899a4 sp=0x4589964 pc=0x5a5f20 sing-box[3866]: github.com/sagernet/utls.(*Conn).readFromUntil(0x40d2800, {0x118c890, 0x5162110}, 0x5) sing-box[3866]: github.com/sagernet/utls@v0.0.0-20230309024959-6732c2ab36f2/conn.go:813 +0x118 fp=0x45899cc sp=0x45899a4 pc=0x9b32b0 sing-box[3866]: github.com/sagernet/utls.(*Conn).readRecordOrCCS(0x40d2800, 0x0) sing-box[3866]: github.com/sagernet/utls@v0.0.0-20230309024959-6732c2ab36f2/conn.go:620 +0x158 fp=0x4589b60 sp=0x45899cc pc=0x9b019c sing-box[3866]: github.com/sagernet/utls.(*Conn).readRecord(...) sing-box[3866]: github.com/sagernet/utls@v0.0.0-20230309024959-6732c2ab36f2/conn.go:586 sing-box[3866]: github.com/sagernet/utls.(*Conn).Read(0x40d2800, {0x5038000, 0x8000, 0x8000}) sing-box[3866]: github.com/sagernet/utls@v0.0.0-20230309024959-6732c2ab36f2/conn.go:1300 +0x1c0 fp=0x4589b90 sp=0x4589b60 pc=0x9b6930 sing-box[3866]: github.com/sagernet/sing-box/transport/vless.(*VisionConn).Read(0x30c21c0, {0x5038000, 0x8000, 0x8000}) sing-box[3866]: github.com/sagernet/sing-box/transport/vless/vision.go:117 +0x184 fp=0x4589c0c sp=0x4589b90 pc=0xd0acd0 sing-box[3866]: github.com/sagernet/sing-box/transport/vless.(*Conn).Read(0x4d60b40, {0x5038000, 0x8000, 0x8000}) sing-box[3866]: github.com/sagernet/sing-box/transport/vless/client.go:113 +0xd0 fp=0x4589c30 sp=0x4589c0c pc=0xd061a0 sing-box[3866]: github.com/sagernet/sing/common/bufio.(*ExtendedReaderWrapper).ReadBuffer(0x51622e8, 0x40a8700) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/conn.go:78 +0x90 fp=0x4589c58 sp=0x4589c30 pc=0x8bf3a8 sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyExtendedBuffer({0x118d448, 0x51622d0}, {0x118f5e8, 0x51622e0}, {0x118f5d0, 0x51622e8}, 0x4589cfc) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:113 +0x1f0 fp=0x4589ca0 sp=0x4589c58 pc=0x8c097c sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyExtended({0x118d448, 0x51622d0}, {0x118f5e8, 0x51622e0}, {0x118f5d0, 0x51622e8}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:100 +0x364 fp=0x4589d3c sp=0x4589ca0 pc=0x8c05c0 sing-box[3866]: github.com/sagernet/sing/common/bufio.Copy({0x118d448, 0x51622d0}, {0x77607170, 0x4d60b40}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:76 +0x4b0 fp=0x4589dc0 sp=0x4589d3c pc=0x8c00ac sing-box[3866]: github.com/sagernet/sing/common/bufio.(*readOnlyReader).WriteTo(0x51622c0, {0x118d448, 0x51622d0}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:22 +0x5c fp=0x4589de4 sp=0x4589dc0 pc=0x8bfad0 sing-box[3866]: io.copyBuffer({0x118d448, 0x51622d0}, {0x118c304, 0x51622c0}, {0x0, 0x0, 0x0}) sing-box[3866]: io/io.go:409 +0x1e8 fp=0x4589e38 sp=0x4589de4 pc=0x506bc4 sing-box[3866]: io.Copy(...) sing-box[3866]: io/io.go:386 sing-box[3866]: net.genericReadFrom({0x118c8a4, 0x325eea8}, {0x118c304, 0x51622c0}) sing-box[3866]: net/net.go:675 +0x9c fp=0x4589e70 sp=0x4589e38 pc=0x58a9d8 sing-box[3866]: net.(*TCPConn).readFrom(0x325eea8, {0x118c304, 0x51622c0}) sing-box[3866]: net/tcpsock_posix.go:54 +0xfc fp=0x4589e94 sp=0x4589e70 pc=0x5967cc sing-box[3866]: net.(*TCPConn).ReadFrom(0x325eea8, {0x118c304, 0x51622c0}) sing-box[3866]: net/tcpsock.go:130 +0x5c fp=0x4589ec8 sp=0x4589e94 pc=0x5946dc sing-box[3866]: github.com/sagernet/sing/common/bufio.Copy({0x7761de00, 0x467aac0}, {0x77607170, 0x4d60b40}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:74 +0x330 fp=0x4589f4c sp=0x4589ec8 pc=0x8bff2c sing-box[3866]: github.com/sagernet/sing/common/bufio.CopyConnContextList.func3({0x1191fc0, 0x3211a40}) sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/bufio/copy.go:212 +0xac fp=0x4589f9c sp=0x4589f4c pc=0x8c1bec sing-box[3866]: github.com/sagernet/sing/common/task.(*Group).RunContextList.func1() sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:68 +0x94 fp=0x4589fec sp=0x4589f9c pc=0x827058 sing-box[3866]: runtime.goexit() sing-box[3866]: runtime/asm_mipsx.s:617 +0x4 fp=0x4589fec sp=0x4589fec pc=0x487fd8 sing-box[3866]: created by github.com/sagernet/sing/common/task.(*Group).RunContextList sing-box[3866]: github.com/sagernet/sing@v0.2.4/common/task/task.go:67 +0x568 ```

I'll try to increase the log buffer to get the whole thing.

Version of sing-box

```console $ sing-box version sing-box version v1.2.6 Environment: go1.19.8 linux/mipsle Tags: with_clash_api,with_dhcp,with_quic,with_utls,with_wireguard CGO: disabled ```

Client configuration file

```console { "log": { "level": "warn" }, "dns": { "servers": [ { "tag": "main-dns", "address": "tls://1.1.1.1" }, { "tag": "direct-dns", "address": "8.8.8.8", "detour": "direct" }, { "tag": "local-dns", "address": "local", "detour": "direct" }, { "tag": "block-dns", "address": "rcode://success" } ], "rules": [ { "geosite": "category-ads-all", "server": "block-dns", "disable_cache": true }, { "domain_suffix": [ ".lan", ".ir" ], "geosite": "category-ir", "server": "direct-dns" } ], "strategy": "ipv4_only" }, "inbounds": [ { "tag": "tun-in", "type": "tun", "interface_name": "singbox-tun", "inet4_address": "172.19.0.1/28", "mtu": 9000, "auto_route": false, "strict_route": false, "stack": "system", "endpoint_independent_nat": false, "sniff": true }, { "tag": "mixed-in", "type": "mixed", "listen": "::", "listen_port": 10808, "domain_strategy": "ipv4_only" } ], "outbounds": [ { "tag": "proxy", "type": "vless", "server": "", "server_port": 443, "flow": "xtls-rprx-vision", "uuid": "", "tls": { "enabled": true, "insecure": false, "reality": { "enabled": true, "public_key": "", "short_id": "" }, "server_name": "", "utls": { "enabled": true, "fingerprint": "firefox" } }, "packet_encoding": "xudp" }, { "tag": "block", "type": "block" }, { "tag": "direct", "type": "direct" }, { "tag": "dns", "type": "dns" } ], "route": { "final": "proxy", "auto_detect_interface": true, "rules": [ { "port": 53, "outbound": "dns" }, { "protocol": "dns", "outbound": "dns" }, { "network": "udp", "port": [ 135, 137, 138, 139, 5353 ], "outbound": "block" }, { "ip_cidr": [ "224.0.0.0/3", "ff00::/8" ], "outbound": "block" }, { "source_ip_cidr": [ "224.0.0.0/3", "ff00::/8" ], "outbound": "block" }, { "geosite": "category-ads-all", "outbound": "block" }, { "domain_suffix": [ ".hls.ttvnw.net", ".ir" ], "geosite": "category-ir", "geoip": [ "private", "ir" ], "outbound": "direct" } ] } } ```

@nekohasekai Is there anything else I should provide?

Mahdi-zarei commented 1 year ago

it seems to me like a context leak, a context is being created and is never being cancelled, contexts should always be released or they will keep occupying the memory.

Mahdi-zarei commented 1 year ago

i found the problem, you are using a single context to create child contexts for every connection, and contexts do not get collected by the garbage collector unless you call their cancel function or their parent context is cancelled, which neither happens in this case, you need to create a new context for each connection from the parent context and defer its cancel function.

Mahdi-zarei commented 1 year ago

650 will fix this issue, but I couldn't get a build because of version problem in packages.

nekohasekai commented 1 year ago

This is ridiculous. Contrary to what you said, valueCtx does not leak.

nekohasekai commented 1 year ago

I remind you that to prove a memory leak or debug a problem, use the pprof tool.