Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sing-box crash #2020

Closed
4 of 5 tasks
ImmortalD opened this issue Aug 11, 2024 · 1 comment
Closed
4 of 5 tasks

sing-box crash #2020

ImmortalD opened this issue Aug 11, 2024 · 1 comment
Labels

Comments

@ImmortalD
Copy link

操作系统

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

支持我们

完整性要求

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

github-actions bot commented Nov 3, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Nov 3, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant