1.14.0-apha20-linux-amd-glibc出现panic警告
操作系统
Linux
系统版本
linux
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
sing-box version
sing-box version 1.14.0-alpha.20
Environment: go1.25.9 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_acme,with_clash_api,with_tailscale,with_ccm,with_ocm,with_cloudflared,with_naive_outbound,badlinkname,tfogo_checklinkname0
Revision: 9da0746dfd71f53253b02fe94e15bd2442eeae43
CGO: enabled
root@iZ6wednda6mm2s27e2y163Z:~#
描述
1.14-alpha.20 linux 的sing-box服务端出现panic
重现方式
{ "log": { "level": "trace", "timestamp": true }, "dns": { "servers": [ { "type": "https", "tag": "cloudflare", "server": "1.1.1.1", "server_port": 443 } ], "rules": [ { "query_type": [ "A", "AAAA" ], "server": "cloudflare" } ], "final": "cloudflare", "strategy": "prefer_ipv4" }, "inbounds": [ { "type": "naive", "tag": "naive-in", "listen": "::", "listen_port": 36990, "users": [ { "Username": "", "Password": "" } ], "quic_congestion_control": "bbr", "tls": { "enabled": true, "server_name": "", "alpn": "h3", "certificate_path": "", "key_path": "" } } ], "outbounds": [ { "type": "direct", "tag": "direct" } ], "route": { "rules": [ { "action": "sniff", "sniffer": [ "http", "tls", "quic", "dns" ] }, { "type": "logical", "mode": "or", "rules": [ { "port": 53 }, { "protocol": "dns" } ], "action": "hijack-dns" } ], "final": "direct", "auto_detect_interface": true, "default_domain_resolver": "cloudflare" }, "experimental": { "cache_file": { "enabled": true, "path": "/etc/sing-box/cache.db" } } }
日志
root@iZ6wednda6mm2s27e2y163Z:~# sudo journalctl -u sing-box --output cat -f
github.com/spf13/cobra.(*Command).ExecuteC(0x473a0a0)
github.com/spf13/[email protected]/command.go:1148 +0x465
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1071
main.main()
github.com/sagernet/sing-box/cmd/sing-box/main.go:8 +0x1e
panic on early start: runtime error: invalid memory address or nil pointer dereference
+0800 2026-05-01 17:05:20 TRACE inbound: close inbound/naive[naive-in]...
+0800 2026-05-01 17:05:20 TRACE close inbound...
+0800 2026-05-01 17:05:24 WARN inbound: close inbound/naive[naive-in] take too much time to finish!
^C
支持我们
- [ ] 我已经 赞助
完整性要求
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- [x] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- [x] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。