sing-box
sing-box copied to clipboard
freebsd 13.2 运行报错
操作系统
其他
系统版本
freebsd 13.2
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
sing-box 1.9.0,今天编译的,现在github上已经是1.9。0.
root@Freebsd:~ # /usr/local/bin/sing-box version
sing-box version
Environment: go1.21.10 freebsd/amd64
Tags: with_gvisor,with_dhcp,with_wireguard,with_reality_server,with_clash_api,with_quic,with_utls,with_ech
Revision: be98673a2c85adee9c7d56b523e3f55e12ad07a3
CGO: enabled
You have new mail.
描述
我今天下载编译了sing-box,运行时报错,过程如下:
1、下载编译sing-box:
root@Freebsd:~ # git clone https://github.com/SagerNet/sing-box.git Cloning into 'sing-box'... remote: Enumerating objects: 21819, done. remote: Counting objects: 100% (933/933), done. remote: Compressing objects: 100% (334/334), done. remote: Total 21819 (delta 501), reused 820 (delta 448), pack-reused 20886 Receiving objects: 100% (21819/21819), 7.01 MiB | 2.77 MiB/s, done. Resolving deltas: 100% (15165/15165), done. root@Freebsd:~ # cd sing-box/ root@Freebsd:~/sing-box # ls .git .golangci.yml LICENSE box.go common debug_http.go experimental include outbound transport .github .goreleaser.fury.yaml Makefile box_outbound.go constant debug_stub.go go.mod log release .gitignore .goreleaser.yaml README.md clients debug_go118.go debug_unix.go go.sum mkdocs.yml route .gitmodules Dockerfile adapter cmd debug_go119.go docs inbound option test root@Freebsd:~/sing-box # make go build -v -trimpath -ldflags "-X 'github.com/sagernet/sing-box/constant.Version=' -s -w -buildid=" -tags with_gvisor,with_dhcp,with_wireguard,with_reality_server,with_clash_api,with_quic,with_utls,with_ech ./cmd/sing-box go: downloading github.com/sagernet/sing-tun v0.3.0-beta.6 github.com/sagernet/sing-tun/internal/clashtcpip github.com/sagernet/sing-tun github.com/sagernet/sing-box/common/process github.com/sagernet/sing-box/adapter github.com/sagernet/sing-box/experimental github.com/sagernet/sing-box/experimental/cachefile github.com/sagernet/sing-box/common/uot github.com/sagernet/sing-box/common/sniff github.com/sagernet/sing-box/transport/fakeip github.com/sagernet/sing-box/experimental/libbox/platform github.com/sagernet/sing-box/common/dialer github.com/sagernet/sing-box/common/mux github.com/sagernet/sing-box/experimental/clashapi/trafficontrol github.com/sagernet/sing-box/transport/dhcp github.com/sagernet/sing-box/common/tls github.com/sagernet/sing-box/transport/wireguard github.com/sagernet/sing-box/transport/v2rayhttpupgrade github.com/sagernet/sing-box/transport/v2rayhttp github.com/sagernet/sing-box/transport/v2raywebsocket github.com/sagernet/sing-box/transport/v2raygrpclite github.com/sagernet/sing-box/transport/v2ray github.com/sagernet/sing-box/transport/v2rayquic github.com/sagernet/sing-box/transport/sip003 github.com/sagernet/sing-box/inbound github.com/sagernet/sing-box/outbound github.com/sagernet/sing-box/experimental/clashapi github.com/sagernet/sing-box/route github.com/sagernet/sing-box/include github.com/sagernet/sing-box github.com/sagernet/sing-box/cmd/sing-box
2、将编译得到的sing-box文件复制到 /usr/local/bin/sing-box,并赋予可执行权限。将配置文件放到 /mnt/singbox。
3、运行sing-box:
root@Freebsd:~ # /usr/local/bin/sing-box run -C /mnt/singbox +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geoip-cn from URL: https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-openai from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/openai.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-geolocation-cn from URL: https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-geolocation-!cn from URL: https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-private from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs +0800 2024-05-28 03:22:29 INFO outbound/vless[orale-vless]: outbound connection to raw.githubusercontent.com:443 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xf5ed0d]
goroutine 8 [running]: github.com/sagernet/sing-box/route.(*Router).AutoDetectInterfaceFunc.func1({0x552be5?, 0x4?}, {0x8700425e8?, 0x1?}) github.com/sagernet/sing-box/route/router.go:1132 +0x8d github.com/sagernet/sing-box/route.(*Router).AutoDetectInterfaceFunc.BindToInterfaceFunc.func2({0x870014edc, 0x4}, {0x8700425e8, 0x15}, {0x152b850, 0x8700701a8}) github.com/sagernet/[email protected]/common/control/bind.go:19 +0x63 net.(*sysDialer).doDialTCPProto.func1({0x8701d3320?, 0x134c8b6?}, {0x870014edc?, 0x1514408?}, {0x8700425e8?, 0x0?}, {0x152b850?, 0x8700701a8?}) net/tcpsock_posix.go:75 +0x43 net.(*netFD).dial(0x870180580, {0x152ea90, 0x870178c40}, {0x1531f68, 0x0}, {0x1531f68?, 0x8701d3320}, 0x870196c40) net/sock_posix.go:130 +0x28d net.socket({0x152ea90, 0x870178c40}, {0x134c8b6, 0x3}, 0x2, 0x1, 0x8701d3350?, 0xda?, {0x1531f68, 0x0}, ...) net/sock_posix.go:70 +0x294 net.internetSocket({0x152ea90, 0x870178c40}, {0x134c8b6, 0x3}, {0x1531f68, 0x0}, {0x1531f68, 0x8701d3320}, 0x47d3c0?, 0x0, ...) net/ipsock_posix.go:142 +0xf1 net.(*sysDialer).doDialTCPProto(0x8701d5040, {0x152ea90, 0x870178c40}, 0x0, 0x52c947?, 0x1e610e0?) net/tcpsock_posix.go:78 +0xe9 net.(*sysDialer).doDialTCP(...) net/tcpsock_posix.go:68 net.(*sysDialer).dialTCP(0x1105c60?, {0x152ea90?, 0x870178c40?}, 0x1835938361d4?, 0x870196d08?) net/tcpsock_posix.go:64 +0x65 net.(*sysDialer).dialSingle(0x8701d5040, {0x152ea90, 0x870178c40}, {0x1524198?, 0x8701d3320}) net/dial.go:649 +0x255 net.(*sysDialer).dialSerial(0x8701d5040, {0x152ea90, 0x870178c40}, {0x87004aac0?, 0x1, 0x5452f2?}) net/dial.go:614 +0x248 net.(*sysDialer).dialParallel(0x87004aab0?, {0x152ea90?, 0x870178c40?}, {0x87004aac0?, 0x870178c40?, 0x134ce01?}, {0x0?, 0x134c8b6?, 0x3?}) net/dial.go:515 +0x3e5 net.(*Dialer).DialContext(0x8703b8240, {0x152e9e8, 0x8701d3290}, {0x134c8b6, 0x3}, {0x8700425d0, 0x15}) net/dial.go:506 +0x6de github.com/sagernet/sing-box/common/dialer.DialSlowContext(0x8703b8240, {0x152e9e8?, 0x8701d3290}, {0x134c8b6, 0x3}, {{{0x0, 0xffff8192ff79}, 0x870012060}, 0x4d8a, {0x0, ...}}) github.com/sagernet/sing-box/common/dialer/tfo.go:36 +0x2b7 github.com/sagernet/sing-box/common/dialer.(*DefaultDialer).DialContext(0x8703b8240, {0x152e9e8, 0x8701d3290}, {0x134c8b6, 0x3}, {{{0x0, 0xffff8192ff79}, 0x870012060}, 0x4d8a, {0x0, ...}}) github.com/sagernet/sing-box/common/dialer/default.go:151 +0x43b github.com/sagernet/sing-box/common/dialer.(*ResolveDialer).DialContext(0x870361d40, {0x152e9e8, 0x8701d3290}, {0x134c8b6, 0x3}, {{{0x0, 0xffff8192ff79}, 0x870012060}, 0x4d8a, {0x0, ...}}) github.com/sagernet/sing-box/common/dialer/resolve.go:37 +0x348 github.com/sagernet/sing-box/outbound.(*vlessDialer).DialContext(0x870410780, {0x152ea20?, 0x870343d10?}, {0x134c8b6, 0x3}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/vless.go:151 +0x1bc github.com/sagernet/sing-box/outbound.(*VLESS).DialContext(0x870410780, {0x152ea20, 0x870343d10}, {0x134c8b6, 0x3}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/vless.go:99 +0x5fa github.com/sagernet/sing-box/outbound.(*URLTest).DialContext(0x8703c49c0, {0x152ea20, 0x870343d10}, {0x134c8b6, 0x3}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/urltest.go:143 +0x222 github.com/sagernet/sing-box/outbound.(*Selector).DialContext(0x8703c4820, {0x152ea20, 0x870343d10}, {0x134c8b6?, 0x60?}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/selector.go:130 +0x6c github.com/sagernet/sing-box/route.(*RuleSetStartContext).HTTPClient.func1({0x152ea20, 0x870343d10}, {0x134c8b6, 0x3}, {0x870046780?, 0x49e4b4?}) github.com/sagernet/sing-box/route/rule_set.go:53 +0xd9 net/http.(*Transport).dial(0x825a641d8?, {0x152ea20?, 0x870343d10?}, {0x134c8b6?, 0x8701409c0?}, {0x870046780?, 0x870040870?}) net/http/transport.go:1183 +0xd2 net/http.(*Transport).dialConn(0x8703bcb40, {0x152ea20, 0x870343d10}, {{}, 0x0, {0x870286c00, 0x5}, {0x870046780, 0x1d}, 0x0}) net/http/transport.go:1625 +0x7e8 net/http.(*Transport).dialConnFor(0x8700b0000?, 0x870162420) net/http/transport.go:1467 +0x9f created by net/http.(*Transport).queueForDial in goroutine 26 net/http/transport.go:1436 +0x3cb
配置文件如下:
{
"log": {
"level": "debug",
"timestamp": true
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9191",
"external_ui": "/mnt/singbox/ui",
"secret": "",
"external_ui_download_url": "https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip",
"external_ui_download_detour": "direct",
"default_mode": "rule"
},
"cache_file": {
"enabled": true,
"path": "cache.db",
"cache_id": "mycacheid",
"store_fakeip": true
}
},
"dns": {
"servers": [
{
"tag": "proxyDns",
"address": "tls://8.8.8.8",
"detour": "proxy"
},
{
"tag": "localDns",
"address": "https://223.5.5.5/dns-query",
"detour": "direct"
},
{
"tag": "block",
"address": "rcode://success"
}
],
"rules": [
{
"domain": [
"ghproxy.com"
],
"server": "localDns"
},
{
"rule_set": "geosite-category-ads-all",
"server": "block"
},
{
"outbound": "any",
"server": "localDns",
"disable_cache": true
},
{
"rule_set": "geosite-geolocation-cn",
"server": "localDns"
},
{
"clash_mode": "direct",
"server": "localDns"
},
{
"clash_mode": "global",
"server": "proxyDns"
},
{
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-geolocation-!cn",
"invert": true
},
{
"rule_set": "geoip-cn"
}
],
"server": "google",
"client_subnet": "114.114.114.114/24"
}
],
"final": "proxyDns",
"strategy": "ipv4_only"
},
"inbounds": [
{
"type": "http",
"listen": "127.0.0.1",
"listen_port": 2080,
"sniff": true,
"users": []
},
{
"type": "socks",
"listen": "127.0.0.1",
"listen_port": 2081,
"sniff": true,
"users": []
}
],
"outbounds": [
{
"type": "vless",
"tag": "orcle-reality",
"server": "xxxxx",
"server_port": xxxx,
"uuid": "xxxx",
"flow": "xtls-rprx-vision",
"network": "tcp",
"tls": {
"enabled": true,
"server_name": "cloudflare.com",
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "xxxxxxx",
"short_id": "xxx"
}
}
},
{
"type": "vless",
"tag": "xxxx",
"server": "xxxx",
"server_port": xxxx,
"uuid": "xxxx",
"flow": "xtls-rprx-vision",
"network": "tcp",
"tls": {
"enabled": true,
"server_name": "cloudflare.com",
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "xxxxxx",
"short_id": "xxx"
}
}
},
{
"type": "vless",
"tag": "xxxxxx",
"server": "xxxxx",
"server_port": xxxxx,
"uuid": "xxxxx",
"flow": "xtls-rprx-vision",
"network": "tcp",
"tls": {
"enabled": true,
"server_name": "www.cloudflare.com",
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "xxxxxx",
"short_id": "xxxx"
}
}
},
{
"type": "hysteria2",
"tag": "xxxx2",
"server": "xxxxxx",
"server_port": xxxx,
"up_mbps": 50,
"down_mbps": 200,
"password": "xxxxx",
"tls": {
"enabled": true,
"server_name": "bing.com",
"insecure": true
}
},
{
"type": "hysteria2",
"tag": "xxxxx",
"server": "xxxxxx",
"server_port": xxxx,
"up_mbps": 50,
"down_mbps": 200,
"password": "xxxxxxxx",
"tls": {
"enabled": true,
"server_name": "bing.com",
"insecure": true
}
},
{
"type": "hysteria2",
"tag": "xxxxx",
"server": "xxxxxx",
"server_port": xxxx,
"up_mbps": 50,
"down_mbps": 200,
"password": "xxxx",
"tls": {
"enabled": true,
"server_name": "bing.com",
"insecure": true
}
},
{
"type": "trojan",
"tag": "xxxxxx",
"server": "xxxxxx",
"server_port": 443,
"password": "xxxxxx",
"network": "tcp",
"tls": {
"enabled": true,
"disable_sni": false,
"server_name": "xxxxxx",
"insecure": false
},
"multiplex": {},
"transport": {
"type": "ws",
"path": "/xxxxx",
"headers": {
"Host": "xxxxxxxx"
}
}
},
{
"type": "trojan",
"tag": "xxxxx",
"server": "xxxxx",
"server_port": 443,
"password": "xxxx",
"network": "tcp",
"tls": {
"enabled": true,
"disable_sni": false,
"server_name": "xxxxx",
"insecure": false
},
"multiplex": {},
"transport": {
"type": "ws",
"path": "/xxxx",
"headers": {
"Host": "xxxxx"
}
}
},
{
"type": "trojan",
"tag": "xxxx",
"server": "xxxx",
"server_port": 443,
"password": "xxxx",
"network": "tcp",
"tls": {
"enabled": true,
"disable_sni": false,
"server_name": "xxxxx",
"insecure": false
},
"multiplex": {},
"transport": {
"type": "ws",
"path": "/xxxxx",
"headers": {
"Host": "xxxxx"
}
}
},
{
"type": "http",
"tag": "xxxxx",
"server": "xxxxxx",
"server_port": 8443,
"username": "xxxxx",
"password": "xxxxxx",
"tls": {
"enabled": true,
"insecure": true
}
},
{
"type": "http",
"tag": "xxxxx",
"server": "xxx",
"server_port": 8443,
"username": "xxxx",
"password": "xxxx",
"tls": {
"enabled": true,
"insecure": true
}
},
{
"type": "http",
"tag": "xxxxx",
"server": "xxxx",
"server_port": 8443,
"username": "xxxx",
"password": "xxxx",
"tls": {
"enabled": true,
"insecure": true
}
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"tag":"proxy",
"type":"selector",
"outbounds":[
"auto",
"direct",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx"
]
},
{
"tag":"OpenAI",
"type":"selector",
"outbounds":[
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx"
]
},
{
"tag":"auto",
"type":"urltest",
"outbounds":[
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx",
"xxxxxxx"
],
"url": "http://www.gstatic.com/generate_204",
"interval": "10m",
"tolerance": 50
}
],
"route": {
"auto_detect_interface": true,
"final": "proxy",
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"network": "udp",
"port": 443,
"outbound": "block"
},
{
"rule_set": "geosite-category-ads-all",
"outbound": "block"
},
{
"clash_mode": "direct",
"outbound": "direct"
},
{
"clash_mode": "global",
"outbound": "proxy"
},
{
"domain": [
"clash.razord.top",
"yacd.metacubex.one",
"yacd.haishan.me",
"d.metacubex.one"
],
"outbound": "direct"
},
{
"domain": [
"mirror.internetdownloadmanager.com",
"mirror1.internetdownloadmanager.com",
"mirror2.internetdownloadmanager.com",
"mirror4.internetdownloadmanager.com",
"mirror3.internetdownloadmanager.com",
"mirror5.internetdownloadmanager.com",
"test.internetdownloadmanager.com",
"secure.internetdownloadmanager.com",
"www.internetdownloadmanager.com",
"registeridm.com",
"secure.registeridm.com",
"www.registeridm.com",
"tonec.com",
"www.tonec.com",
"internetdownloadmanager.com",
"ic.adobe.io",
"adobe.io",
"1hzopx6nz7.adobe.io",
"1b9khekel6.adobe.io",
"7g2gzgk9g1.adobe.io",
"p13n.adobe.io",
"dyzt55ur18.adobe.io",
"gw8gfjbs05.adobe.io",
"2ftem87osk.adobe.io",
"ic.adobe.io",
"7sj9n87sls.adobe.io",
"ij0gdyrfka.adobe.io",
"lm.licenses.adobe.com",
"na2m-pr.licenses.adobe.com",
"practivate.adobe.com",
"activate.adobe.com",
"ereg.adobe.com",
"wip.adobe.com",
"lmlicenses.wip4.adobe.com",
"na1r.services.adobe.com",
"hlrcv.stage.adobe.com",
"genuine.adobe.com",
"prod.adobegenuine.com",
"cc-api-data.adobe.io",
"ims-prod06.adobelogin.com",
"p13n.adobe.io",
"crs.cr.adobe.com",
"lcs-cops.adobe.io",
"hbrt.adobe.com",
"23ynjitwt5.adobe.io",
"butler.adobe.com",
"acp-ss-va6c2.adobe.io",
"cctypekit.adobe.io",
"8ncdzpmmrg.adobe.io",
"cc-api-data.adobe.io",
"dyzt55url8.adobe.io",
"b5kbg2ggog.adobe.io",
"5zgzzv92gn.adobe.io",
"0mo5a70cqa.adobe.io",
"pojvrj7ho5.adobe.io",
"i7pq6fgbsl.adobe.io",
"ph0f2h2csf.adobe.io",
"r3zj0yju1q.adobe.io",
"9ngulmtgqi.adobe.io",
"guzg78logz.adobe.io",
"2ftem87osk.adobe.io",
"1b9khekel6.adobe.io",
"3d3wqt96ht.adobe.io",
"23ynjitwt5.adobe.io",
"4vzokhpsbs.adobe.io",
"3ca52znvmj.adobe.io",
"r5hacgq5w6.adobe.io",
"gw8gfjbs05.adobe.io",
"lre1kgz2u4.adobe.io",
"ij0gdyrfka.adobe.io",
"8ncdzpmmrg.adobe.io",
"7sj9n87sls.adobe.io",
"7m31guub0q.adobe.io",
"7g2gzgk9g1.adobe.io",
"cd536oo20y.adobe.io",
"dxyeyf6ecy.adobe.io",
"jc95y2v12r.adobe.io",
"1hzopx6nz7.adobe.io",
"m59b4msyph.adobe.io",
"69tu0xswvq.adobe.io",
"vajcbj9qgq.adobe.io",
"p7uxzbht8h.adobe.io",
"vcorzsld2a.adobe.io",
"p0bjuoe16a.adobe.io",
"fqaq3pq1o9.adobe.io",
"aoorovjtha.adobe.io",
"pv256ds6c99.prod.cloud.adobe.io",
"cv2l4573ukh.prod.cloud.adobe.io",
"pv24v41zibm.prod.cloud.adobe.io",
"iv2nn9r0j2r.prod.cloud.adobe.io",
"iv2yt8sqmh0.prod.cloud.adobe.io",
"iv218qmzox6.prod.cloud.adobe.io",
"cv218qmzox6.prod.cloud.adobe.io",
"cv2b0yc07ls.prod.cloud.adobe.io",
"cv2nn9r0j2r.prod.cloud.adobe.io",
"pv2yt8sqmh0.prod.cloud.adobe.io",
"iv256ds6c99.prod.cloud.adobe.io",
"pv2zp87w2eo.prod.cloud.adobe.io",
"iv2ys4tjt9x.prod.cloud.adobe.io",
"cv2ska86hnt.prod.cloud.adobe.io",
"iv24b15c1z0.prod.cloud.adobe.io",
"cv256ds6c99.prod.cloud.adobe.io",
"pv2ska86hnt.prod.cloud.adobe.io",
"iv2b0yc07ls.prod.cloud.adobe.io",
"iv2l4573ukh.prod.cloud.adobe.io",
"cv24v41zibm.prod.cloud.adobe.io",
"iv2ska86hnt.prod.cloud.adobe.io",
"pv2l4573ukh.prod.cloud.adobe.io",
"iv24v41zibm.prod.cloud.adobe.io",
"iv2zp87w2eo.prod.cloud.adobe.io",
"pv2ys4tjt9x.prod.cloud.adobe.io",
"cv2ys4tjt9x.prod.cloud.adobe.io",
"cv2fcqvzl1r.prod.cloud.adobe.io",
"pv2fcqvzl1r.prod.cloud.adobe.io",
"cv24b15c1z0.prod.cloud.adobe.io",
"pv24b15c1z0.prod.cloud.adobe.io",
"cv2bqhsp36w.prod.cloud.adobe.io",
"pv2b0yc07ls.prod.cloud.adobe.io",
"pv218qmzox6.prod.cloud.adobe.io",
"cv2yt8sqmh0.prod.cloud.adobe.io",
"iv2fcqvzl1r.prod.cloud.adobe.io",
"pv2bqhsp36w.prod.cloud.adobe.io",
"pv2nn9r0j2r.prod.cloud.adobe.io",
"cv2zp87w2eo.prod.cloud.adobe.io",
"iv2bqhsp36w.prod.cloud.adobe.io",
"yj8yx3y8zo.adobestats.io",
"mpsige2va9.adobestats.io",
"ujqx8lhpz4.adobestats.io",
"y2r8jzsv4p.adobestats.io",
"eq7dbze88m.adobestats.io",
"q9hjwppxeq.adobestats.io",
"skg7pqn0al.adobestats.io",
"9iay914wzy.adobestats.io",
"yuzuoqo0il.adobestats.io",
"2o3c6rbyfr.adobestats.io",
"vicsj37lhf.adobestats.io",
"nhc73ypmli.adobestats.io",
"oxiz2n3i4v.adobestats.io",
"2qjz50z5lf.adobestats.io",
"i2x2ius9o5.adobestats.io",
"lnwbupw1s7.adobestats.io",
"n746qg9j4i.adobestats.io",
"2621x1nzeq.adobestats.io",
"r9r6oomgms.adobestats.io",
"99pfl4vazm.adobestats.io",
"zekdqanici.adobestats.io",
"g9cli80sqp.adobestats.io",
"dyv9axahup.adobestats.io",
"17ov1u3gio.adobestats.io",
"7l4xxjhvkt.adobestats.io",
"wcxqmuxd4z.adobestats.io",
"l558s6jwzy.adobestats.io",
"85n85uoa1h.adobestats.io",
"zrao5tdh1t.adobestats.io",
"eftcpaiu36.adobestats.io",
"2qj10f8rdg.adobestats.io",
"ffs3xik41x.adobestats.io",
"g3y09mbaam.adobestats.io",
"x880ulw3h0.adobestats.io",
"jaircqa037.adobestats.io",
"ppn4fq68w7.adobestats.io",
"1ei1f4k9yk.adobestats.io",
"6j0onv1tde.adobestats.io",
"pljm140ld1.adobestats.io",
"50sxgwgngu.adobestats.io",
"u31z50xvp9.adobestats.io",
"2dhh9vsp39.adobestats.io",
"rb0u8l34kr.adobestats.io",
"3odrrlydxt.adobestats.io",
"3u6k9as4bj.adobestats.io",
"curbpindd3.adobestats.io",
"4dviy9tb3o.adobestats.io",
"yb6j6g0r1n.adobestats.io",
"0bj2epfqn1.adobestats.io",
"ura7zj55r9.adobestats.io",
"xesnl0ss94.adobestats.io",
"xbd20b9wqa.adobestats.io",
"cr2fouxnpm.adobestats.io",
"zmg3v61bbr.adobestats.io",
"bk7y1gneyk.adobestats.io",
"dx0nvmv4hz.adobestats.io",
"eyiu19jd5w.adobestats.io",
"561r5c3bz1.adobestats.io",
"54cu4v5twu.adobestats.io",
"6eidhihhci.adobestats.io",
"31q40256l4.adobestats.io",
"bs2yhuojzm.adobestats.io",
"p50zgina3e.adobestats.io",
"yri0bsu0ak.adobestats.io",
"zu8yy3jkaz.adobestats.io",
"m59cps6x3n.adobestats.io",
"senseimds.adobe.io",
"aityp.com.adobe.io"
],
"outbound": "block"
},
{
"domain": [
"ghcr.io",
"actyve.io"
],
"outbound": "proxy"
},
{
"rule_set": "geosite-openai",
"outbound": "OpenAI"
},
{
"rule_set": "geosite-geolocation-!cn",
"outbound": "proxy"
},
{
"rule_set": "geosite-private",
"outbound": "direct"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"rule_set": "geoip-cn",
"outbound": "direct"
},
{
"rule_set": "geosite-geolocation-cn",
"outbound": "direct"
}
],
"rule_set": [
{
"tag": "geosite-private",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs",
"download_detour": "direct"
},
{
"tag": "geosite-openai",
"type": "remote",
"format": "binary",
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/openai.srs",
"download_detour": "direct"
},
{
"tag": "geosite-category-ads-all",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs",
"download_detour": "direct"
},
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
},
{
"type": "remote",
"tag": "geosite-geolocation-!cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs"
},
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
}
]
},
"experimental": {
"cache_file": {
"enabled": true,
"store_rdrc": true
},
"clash_api": {
"default_mode": "Enhanced"
}
}
}
重现方式
运行 /usr/local/bin/sing-box run -C /mnt/singbox 即报错:
root@Freebsd:~ # /usr/local/bin/sing-box run -C /mnt/singbox +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geoip-cn from URL: https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-openai from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/openai.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-geolocation-cn from URL: https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-geolocation-!cn from URL: https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs +0800 2024-05-28 03:22:29 DEBUG router: updating rule-set geosite-private from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs +0800 2024-05-28 03:22:29 INFO outbound/vless[oracle-reality]: outbound connection to raw.githubusercontent.com:443 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xf5ed0d]
goroutine 8 [running]: github.com/sagernet/sing-box/route.(*Router).AutoDetectInterfaceFunc.func1({0x552be5?, 0x4?}, {0x8700425e8?, 0x1?}) github.com/sagernet/sing-box/route/router.go:1132 +0x8d github.com/sagernet/sing-box/route.(*Router).AutoDetectInterfaceFunc.BindToInterfaceFunc.func2({0x870014edc, 0x4}, {0x8700425e8, 0x15}, {0x152b850, 0x8700701a8}) github.com/sagernet/[email protected]/common/control/bind.go:19 +0x63 net.(*sysDialer).doDialTCPProto.func1({0x8701d3320?, 0x134c8b6?}, {0x870014edc?, 0x1514408?}, {0x8700425e8?, 0x0?}, {0x152b850?, 0x8700701a8?}) net/tcpsock_posix.go:75 +0x43 net.(*netFD).dial(0x870180580, {0x152ea90, 0x870178c40}, {0x1531f68, 0x0}, {0x1531f68?, 0x8701d3320}, 0x870196c40) net/sock_posix.go:130 +0x28d net.socket({0x152ea90, 0x870178c40}, {0x134c8b6, 0x3}, 0x2, 0x1, 0x8701d3350?, 0xda?, {0x1531f68, 0x0}, ...) net/sock_posix.go:70 +0x294 net.internetSocket({0x152ea90, 0x870178c40}, {0x134c8b6, 0x3}, {0x1531f68, 0x0}, {0x1531f68, 0x8701d3320}, 0x47d3c0?, 0x0, ...) net/ipsock_posix.go:142 +0xf1 net.(*sysDialer).doDialTCPProto(0x8701d5040, {0x152ea90, 0x870178c40}, 0x0, 0x52c947?, 0x1e610e0?) net/tcpsock_posix.go:78 +0xe9 net.(*sysDialer).doDialTCP(...) net/tcpsock_posix.go:68 net.(*sysDialer).dialTCP(0x1105c60?, {0x152ea90?, 0x870178c40?}, 0x1835938361d4?, 0x870196d08?) net/tcpsock_posix.go:64 +0x65 net.(*sysDialer).dialSingle(0x8701d5040, {0x152ea90, 0x870178c40}, {0x1524198?, 0x8701d3320}) net/dial.go:649 +0x255 net.(*sysDialer).dialSerial(0x8701d5040, {0x152ea90, 0x870178c40}, {0x87004aac0?, 0x1, 0x5452f2?}) net/dial.go:614 +0x248 net.(*sysDialer).dialParallel(0x87004aab0?, {0x152ea90?, 0x870178c40?}, {0x87004aac0?, 0x870178c40?, 0x134ce01?}, {0x0?, 0x134c8b6?, 0x3?}) net/dial.go:515 +0x3e5 net.(*Dialer).DialContext(0x8703b8240, {0x152e9e8, 0x8701d3290}, {0x134c8b6, 0x3}, {0x8700425d0, 0x15}) net/dial.go:506 +0x6de github.com/sagernet/sing-box/common/dialer.DialSlowContext(0x8703b8240, {0x152e9e8?, 0x8701d3290}, {0x134c8b6, 0x3}, {{{0x0, 0xffff8192ff79}, 0x870012060}, 0x4d8a, {0x0, ...}}) github.com/sagernet/sing-box/common/dialer/tfo.go:36 +0x2b7 github.com/sagernet/sing-box/common/dialer.(*DefaultDialer).DialContext(0x8703b8240, {0x152e9e8, 0x8701d3290}, {0x134c8b6, 0x3}, {{{0x0, 0xffff8192ff79}, 0x870012060}, 0x4d8a, {0x0, ...}}) github.com/sagernet/sing-box/common/dialer/default.go:151 +0x43b github.com/sagernet/sing-box/common/dialer.(*ResolveDialer).DialContext(0x870361d40, {0x152e9e8, 0x8701d3290}, {0x134c8b6, 0x3}, {{{0x0, 0xffff8192ff79}, 0x870012060}, 0x4d8a, {0x0, ...}}) github.com/sagernet/sing-box/common/dialer/resolve.go:37 +0x348 github.com/sagernet/sing-box/outbound.(*vlessDialer).DialContext(0x870410780, {0x152ea20?, 0x870343d10?}, {0x134c8b6, 0x3}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/vless.go:151 +0x1bc github.com/sagernet/sing-box/outbound.(*VLESS).DialContext(0x870410780, {0x152ea20, 0x870343d10}, {0x134c8b6, 0x3}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/vless.go:99 +0x5fa github.com/sagernet/sing-box/outbound.(*URLTest).DialContext(0x8703c49c0, {0x152ea20, 0x870343d10}, {0x134c8b6, 0x3}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/urltest.go:143 +0x222 github.com/sagernet/sing-box/outbound.(*Selector).DialContext(0x8703c4820, {0x152ea20, 0x870343d10}, {0x134c8b6?, 0x60?}, {{{0x0, 0x0}, 0x0}, 0x1bb, {0x870046780, ...}}) github.com/sagernet/sing-box/outbound/selector.go:130 +0x6c github.com/sagernet/sing-box/route.(*RuleSetStartContext).HTTPClient.func1({0x152ea20, 0x870343d10}, {0x134c8b6, 0x3}, {0x870046780?, 0x49e4b4?}) github.com/sagernet/sing-box/route/rule_set.go:53 +0xd9 net/http.(*Transport).dial(0x825a641d8?, {0x152ea20?, 0x870343d10?}, {0x134c8b6?, 0x8701409c0?}, {0x870046780?, 0x870040870?}) net/http/transport.go:1183 +0xd2 net/http.(*Transport).dialConn(0x8703bcb40, {0x152ea20, 0x870343d10}, {{}, 0x0, {0x870286c00, 0x5}, {0x870046780, 0x1d}, 0x0}) net/http/transport.go:1625 +0x7e8 net/http.(*Transport).dialConnFor(0x8700b0000?, 0x870162420) net/http/transport.go:1467 +0x9f created by net/http.(*Transport).queueForDial in goroutine 26 net/http/transport.go:1436 +0x3cb
日志
No response
支持我们
- [ ] 我已经 赞助
完整性要求
- [X] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [X] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- [X] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- [X] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。