-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug] 开启tun并使用system栈时,会遇到map读写并发冲突,导致程序崩溃 #707
Comments
一样问题,不过我不知道在哪里可以看到这些日志,我使用system 模式的时候,下载规则的时候就直接卡死了。偶尔能开起来,除了本机,下游的机器访问也没有任何日志。使用gvisor 就没有问题。 |
gvisor确实兼容性好很多,不过性能一般般,经常一卡一卡的。 |
我是直接运行clash.meta核心的,日志直接在控制台输出。如果你用的是一些GUI图形界面客户端,可能需要在软件里面找找日志目录。 |
Larvan2
added a commit
that referenced
this issue
Aug 31, 2023
stitchrs
pushed a commit
that referenced
this issue
Aug 31, 2023
xianren78
pushed a commit
to xianren78/Clash.Meta
that referenced
this issue
Sep 1, 2023
wwqgtxx
pushed a commit
that referenced
this issue
Sep 1, 2023
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Verify steps
Clash version
v1.15.1
What OS are you seeing the problem on?
No response
Clash config
Clash log
Description
按照上述配置案例启动clash.meta核心一段时间后,会出现map读写并发冲突导致的致命错误,程序整个崩溃,Golang默认的map不支持并发读写操作,需要额外维护一个sync.RWMutex/sync.Mutex锁类型,或者使用sync.Map类型替代内置的map。
目前只在tun开启并使用system栈情况下观察到。
The text was updated successfully, but these errors were encountered: