-
Notifications
You must be signed in to change notification settings - Fork 61
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
长时间运行报错:panic: runtime error: invalid memory address or nil pointer dereference #4
Comments
难以复现,不好解决,我这边从写完开始就自用了,两个多月也没遇到过。。。 |
这段代码,如果 |
加个continue就可以了吧。 |
ShadowSharksR
added a commit
to ShadowSharksR/SNIProxy
that referenced
this issue
Oct 2, 2023
感谢楼上两位,顺手给修了哈~(v1.0.1 版本 另外,系统服务配置文件里我忘记加上用于守护进程的配置项了( |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
运行一段时间过后程序会报错自动退出,使用了socket5代理,systemctl内的日志是:
7月 30 17:50:25 ECS774 sniproxy[1233074]: panic: runtime error: invalid memory address or nil pointer dereference
7月 30 17:50:25 ECS774 sniproxy[1233074]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x557721]
7月 30 17:50:25 ECS774 sniproxy[1233074]: goroutine 6 [running]:
7月 30 17:50:25 ECS774 sniproxy[1233074]: main.startSniProxy.func1({0x5c8ac0?, 0xc00000c1e0})
7月 30 17:50:25 ECS774 sniproxy[1233074]: C:/Github/SNIProxy/main.go:110 +0x101
7月 30 17:50:25 ECS774 sniproxy[1233074]: created by main.startSniProxy
7月 30 17:50:25 ECS774 sniproxy[1233074]: C:/Github/SNIProxy/main.go:103 +0x1a5
7月 30 17:50:25 ECS774 systemd[1]: sniproxy.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
7月 30 17:50:25 ECS774 systemd[1]: sniproxy.service: Failed with result 'exit-code'.
7月 30 17:50:25 ECS774 systemd[1]: sniproxy.service: Consumed 18.125s CPU time.
软件版本
v1.0.0
附加截图
No response
The text was updated successfully, but these errors were encountered: