SagerNet / SagerNet/sing-box

出现panic

Open
#2,667 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
38.2k
Forks
4.6k
Avg merge
19d 15h
Merged PRs (30d)
1

Description

操作系统

Windows

系统版本

win11 24H2

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本
v1.12.0-alpha.13
描述

Image
在tun模式下,不仅仅win版本会这样,安卓端好像也会这样,之前使用1.9.4版本的sing-box没遇到这个问题,现在因为版本一直更新,配置文件也是重新写,只能用最新版的v1.12.0-alpha.13,就遇到这个panic的问题了,

对了还有一个解析发起服务端连接解析域名的问题,在出口使用拨号字段的domain_resolver貌似实际起作用了,但sing-box命令行依然会提示没有添加domain_resolver或者default_domain_resolver,而在路由中使用default_domain_resolver命令行就不会提示了,这是bug吗?

还有一个问题,规则集下载不能使用urltest的tag吗,很容易出现下载不下来的情形,以前v1.9.4就是这样,还有最新版的v1.12.0-alpha.13貌似规则集下载即便是某一个proxy的tag,有时候也会存在下载不下来的情形

`
"log":
{
"level": "info",
"timestamp": true
},

"inbounds":
[
{
"tag": "inbound-tun",
"type": "tun",
"interface_name": "singbox-tun",
"address": "172.16.0.1/30",
"mtu": 1500,
"auto_route": true,
"strict_route": true,
"stack": "system"
}
],

"dns":
{
"servers":
[
{
"tag": "dns-google",
"type": "udp",
"server": "8.8.8.8",
"detour": "autoC"
},
{
"tag": "dns-ali",
"type": "udp",
"server": "223.5.5.5",
"detour": "direct"
}
],
"rules":
[
{
"rule_set": "geosite-cn",
"server": "dns-ali"
}
]
},

"route":
{
"auto_detect_interface": true,
"rules":
[
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"rule_set": [ "geosite-cn", "geoip-cn", "geoip-private" ],
"outbound": "direct"
},
{
"rule_set": [ "geosite-twitch" ],
"outbound": "autoB"
},
{
"rule_set": [ "geosite-telegram", "geoip-telegram" ],
"outbound": "autoC"
}
],
"rule_set":
[
{
"tag": "geosite-cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs",
"download_detour": "select"
},
{
"tag": "geoip-cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/cn.srs",
"download_detour": "select"
},
{
"tag": "geoip-private",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/private.srs",
"download_detour": "select"
},
{
"tag": "geosite-twitch",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/twitch.srs",
"download_detour": "select"
},
{
"tag": "geosite-telegram",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/telegram.srs",
"download_detour": "select"
},
{
"tag": "geoip-telegram",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/telegram.srs",
"download_detour": "select"
}
],
"default_domain_resolver": { "server": "dns-ali" }
},

"experimental":
{
"cache_file": { "enabled": true }
},

"outbounds":
[
{"tag": "autoA"},
{"tag": "autoB"},
{"tag": "autoC"},
{"tag": "selecct"},
{"tag": "proxyA"},
{"tag": "proxyB"},
{"tag": "proxyC"},
{"tag": "proxyD"},
{"tag": "direct"}
]
`

重现方式

重现方式不好说,有点随机,但容易出现,有时候刚开启tun模式开网页就出现了,有时候比较长的时间出现,尤其使用ipinfo.io查询的时候,貌似更容易出现这个情况,或者多开浏览器打开多个ipinfo.io时,较容易出现这个问题

日志

支持我们
完整性要求
  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied minimal configuration and reproduce the intermittent panic in TUN mode on Windows, capturing the missing panic stack trace and complete logs. Treat the resolver warning and rule-set download behavior as separate reports, and verify each independently with the listed DNS, route, and rule_set sections.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.