sing-box
sing-box copied to clipboard
sing-box crash
操作系统
Windows
系统版本
win11 23H2(10.0.22631.3958)
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
sing-box version 1.9.3
Environment: go1.22.4 windows/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: 085f60337799afc906069b540a38368968c123e4
CGO: disabled
描述
特定的时候会崩溃,导致进程退出
重现方式
很难重现,可能用几天没问题,也可能用几个小时没问题。就偶尔崩溃。看日志应该是哪里缺少对象的判空。我非常抱歉没能按照要求提供所有的完整性要求
日志
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0x6b0905]
goroutine 23373 [running]:
github.com/sagernet/sing/common/buf.(*Buffer).Len(...)
github.com/sagernet/[email protected]/common/buf/buffer.go:327
github.com/sagernet/sing/common/bufio.copyPacketWaitWithPool({0x1be6fe28800, 0xc000f88030}, {0x1be6fe28970, 0xc000f9f080}, {0x14f2428, 0xc000352c80}, {0x0, 0x0, 0x1fcaee0?}, {0xc0011d01b0, ...}, ...)
github.com/sagernet/[email protected]/common/bufio/copy_direct.go:72 +0x145
github.com/sagernet/sing/common/bufio.CopyPacket({0x1be6fe287e0?, 0xc00100a1a0?}, {0x1be6fe28800, 0xc000f88030})
github.com/sagernet/[email protected]/common/bufio/copy.go:240 +0x448
github.com/sagernet/sing/common/bufio.CopyPacketConnContextList.func2({0x14ec060?, 0x1fcaee0?})
github.com/sagernet/[email protected]/common/bufio/copy.go:331 +0x68
github.com/sagernet/sing/common/task.(*Group).RunContextList.func1()
github.com/sagernet/[email protected]/common/task/task.go:91 +0x107
created by github.com/sagernet/sing/common/task.(*Group).RunContextList in goroutine 24409
github.com/sagernet/[email protected]/common/task/task.go:75 +0x198
支持我们
- [ ] 我已经 赞助
完整性要求
- [X] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [X] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- [X] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- [X] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。