sing-box
sing-box copied to clipboard
sing-box-1.12.0-beta.34 在 Windows 下崩溃
操作系统
Windows
系统版本
Windows 10 22H2
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
sing-box version 1.12.0-beta.34-gf3ee8547
Environment: go1.24.4 windows/amd64
Tags: with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api,with_acme,with_dhcp,with_tailscale
Revision: f3ee85479c8e6921a1a0ab1b116a19e95dd826e4
CGO: disabled
描述
Windows 下面自己编译的 f3ee85479c8e6921a1a0ab1b116a19e95dd826e4 运行崩溃
重现方式
sing-box run
日志
panic: runtime error: index out of range [0] with length 0
goroutine 489 [running]:
github.com/sagernet/sing/common/bufio.(*vectorisedSyscallReadWaiter).InitializeReadWaiter.func1(0xbc0)
github.com/sagernet/[email protected]/common/bufio/copy_direct_windows.go:130 +0x375
internal/poll.(*FD).RawRead(0xc002466288, 0xc000117130)
internal/poll/fd_windows.go:1079 +0xc5
net.(*rawConn).Read(0xc001e0a088, 0xc001c24008?)
net/rawconn.go:44 +0x36
github.com/sagernet/sing/common/bufio.(*vectorisedSyscallReadWaiter).WaitReadBuffers(0xc002024480)
github.com/sagernet/[email protected]/common/bufio/copy_direct_windows.go:162 +0x31
github.com/sagernet/sing/common/bufio.copyWaitVectorisedWithPool({0x1976660, 0xc001d8e2c0}, {0x197f7d8, 0xc002024480}, {0x0, 0x0, 0x10?}, {0xc001b84020, 0x1, 0x1}, ...)
github.com/sagernet/[email protected]/common/bufio/copy_direct.go:78 +0x67
github.com/sagernet/sing/common/bufio.copyWaitWithPool({0x1977ca0, 0xc001b84018}, {0x197f850, 0xc0023ec000}, {0x197f878, 0xc0023ec010}, {0x197f800, 0xc002388000}, {0x0, 0x0, ...}, ...)
github.com/sagernet/[email protected]/common/bufio/copy_direct.go:68 +0x41d
github.com/sagernet/sing/common/bufio.CopyExtended({0x1977ca0, 0xc001b84018}, {0x197f850, 0xc0023ec000}, {0x197f878, 0xc0023ec010}, {0x0, 0x0, 0x0}, {0xc001b84020, ...}, ...)
github.com/sagernet/[email protected]/common/bufio/copy.go:82 +0x289
github.com/sagernet/sing/common/bufio.CopyWithCounters({0x18251dde510, 0xc00009abe0}, {0x1977ca0, 0xc001b84018}, {0x1977ca0, 0xc001b84018}, {0x0, 0x0, 0x0}, {0xc001b84020, ...}, ...)
github.com/sagernet/[email protected]/common/bufio/copy.go:71 +0x33f
github.com/sagernet/sing-box/route.(*ConnectionManager).connectionCopy(0xc000348320, {0x198c690, 0xc0023dd980}, {0x1997030, 0xc001b84018}, {0x1997890, 0xc0023f9508}, 0x1, 0xc002304000, 0xc0023d6000)
github.com/sagernet/sing-box/route/conn.go:280 +0x5c7
created by github.com/sagernet/sing-box/route.(*ConnectionManager).NewConnection in goroutine 1190
github.com/sagernet/sing-box/route/conn.go:106 +0x90f
支持我们
- [ ] 我已经 赞助
完整性要求
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- [x] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- [x] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。
最新的 4acd65bba37cafe8946f59ed10f3b4b48b7ac297 没问题了