xxxsen

Results 27 comments of xxxsen

应该是触发了什么隐藏bug,导致某个协程死循环了。能否代码里面加下pprof起个调试端口,然后打个镜像,这样下次再出问题的时候也能调下。。 On Thu, Jan 30, 2020, 01:20 ffdfgdfg wrote: > 只能看到断线情况存在,cpu的确实没看出来。。。。 > > — > You are receiving this because you authored the thread. > Reply to this email directly,...

我自己打个带debug端口的镜像先跑着, 后面复现了再看看。

这个之前有简单测试了下, 在客户端网络非常差的情况下出现的概率很高, 不过后续没有再关注了, 作者可以往这方面测试验证下, 大概率是链接出错后出现死循环了。

补充下版本号: gost 2.11.2 (go1.18.1 linux/amd64)

![image](https://user-images.githubusercontent.com/3880276/149155224-50b4eeb2-26ad-40bb-a051-661fa21bc6b0.png) ![image](https://user-images.githubusercontent.com/3880276/149153820-376ab7fc-a2e6-49bb-95db-a66e5160aa17.png) ![image](https://user-images.githubusercontent.com/3880276/149153926-e0cbdd5f-4989-4f8f-b9d9-53e706618f02.png) ![image](https://user-images.githubusercontent.com/3880276/149154703-15be8566-8bc1-4f8a-8b03-a576293b96d6.png) smartdns 版本号: 1.2021.24 同样碰到这个问题,不清楚是openwrt固件问题还是smartdns的问题。。 出问题的时候,smartdns进程还在,但是日志里面会显示smartdns启动失败,之后dns完全无法解析了,通过dig,每次都是超时 另外除了这个问题,发现smartdns隔一天就会出现大量的dns解析出现SOA问题(请求国外域名的时候),目前也不确定是怎么产生的。。

刚刚又试了下,发现有可能是openwrt的问题,保持启用状态然后在webui上进行保存,发现并不会先杀进程后重启,而是直接启动了smartdns进程。。然后日志里面又刷了那个服务启动失败的错误。。但是那个查询dns无响应是确实存在的问题,开了debug日志,手动发了dns包后日志也没打出来。。 ![image](https://user-images.githubusercontent.com/3880276/149157276-8a0e1a41-dcd4-4476-b0fb-80ea0d72ae65.png) 版本号确实是通过-v生成的。。。 第三个,我这边试下新版本,因为我这边默认的dns都是海外dns,走tls/https,所以不大可能是黑名单结果。。

使用新版后, 问题再次出现。。。 ![image](https://user-images.githubusercontent.com/3880276/149604756-570d66c6-6964-46b8-bc31-aa6a9e50a05b.png) 问题跟之前一样,smartdns未退出,但是新的smartdns又继续启动,导致启动失败,同时原先的smartdns看着是处于挂起状态,对dns查询请求无反应。 ![image](https://user-images.githubusercontent.com/3880276/149604808-de6dbe11-e165-4f82-9c48-e092e86c24b3.png) 出现的原因可能是宽带重拨号有关,在异常的时间点附近,宽带出现重连的。 ![image](https://user-images.githubusercontent.com/3880276/149604848-576f75f2-93eb-419d-96a6-23a2fc584490.png)

补充下我这边的配置 - /var/etc/smartdns/smartdns.conf ```conf server-name smartdns bind :6053 dualstack-ip-selection yes prefetch-domain yes serve-expired yes cache-size 500000 rr-ttl 3600 rr-ttl-min 5 log-size 64K log-num 1 log-level error conf-file /etc/smartdns/address.conf conf-file /etc/smartdns/blacklist-ip.conf...

gdb堆栈信息, 打印堆栈的时候发现一直在循环同一个栈帧, 看不到栈底信息, 但是最终的调用是调用到__lock 函数,然后程序就挂着了。。 ![image](https://user-images.githubusercontent.com/3880276/149605656-479b0c17-7f4f-4162-88d6-6c73eac72f14.png) ![image](https://user-images.githubusercontent.com/3880276/149605685-9ac5db32-08e5-4291-a13c-1fc8bb5ebfd9.png)