ShadowsocksR-Live / shadowsocksr-native

翻墙 从容穿越党国敏感日 ShadowsocksR (SSRoT) native implementation for all platforms, GFW terminator
https://github.com/ShadowsocksR-Live/shadowsocksr-native/wiki
GNU General Public License v3.0
2.74k stars 765 forks source link

ssr-client linux-mipsel Segmentation fault #155

Closed foobartech closed 3 years ago

foobartech commented 3 years ago

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-native are you using?

发issue时最新master commit ee8e35c935b01f7a53f3e296ca72da4386dce517

What operating system are you using?

路由器 padavan 固件

What did you do?

在 k2p 路由器 padavan 固件上运行 ssr-client

What did you expect to see?

正常运行

What did you see instead?

ssr-client 进程卡死,一段时间后提示 Segmentation fault

What is your config in detail (with all sensitive info masked)?

{
  "password": "password",
  "method": "rc4-md5",
  "protocol": "origin",
  "protocol_param": "",
  "obfs": "plain",
  "obfs_param": "",
  "udp": true,
  "idle_timeout": 300,
  "connect_timeout": 6,
  "udp_timeout": 6,
  "server_settings": {
    "listen_address": "0.0.0.0",
    "listen_port": 10000
  },
  "client_settings": {
    "server": "server ip",
    "server_port": 443,
    "listen_address": "0.0.0.0",
    "listen_port": 1080
  },
  "over_tls_settings": {
    "enable": true,
    "server_domain": "server domain",
    "path": "/path/",
    "root_cert_file": ""
  }
}
  1. 同样的配置在 linux-x64 测试正常
  2. linux-mispel运行 curl -x socks5h://127.0.0.1:1080 google.com测试,一开始几次curl能成功,几秒后ssr-client进程卡死,出现 Segmentation fault,log如下
    
    ./ssr-client -c con.json
    ssr-client 2020/08/02 21:19  info  ShadowsocksR native client

ssr-client 2020/08/02 21:19 info remote server *:443 ssr-client 2020/08/02 21:19 info method rc4-md5 ssr-client 2020/08/02 21:19 info password *** ssr-client 2020/08/02 21:19 info protocol origin ssr-client 2020/08/02 21:19 info obfs plain ssr-client 2020/08/02 21:19 info ssr-client 2020/08/02 21:19 warn over TLS yes ssr-client 2020/08/02 21:19 info over TLS domain domain ssr-client 2020/08/02 21:19 info over TLS path /path/ ssr-client 2020/08/02 21:19 info ssr-client 2020/08/02 21:19 info udp relay yes

ssr-client 2020/08/02 21:19 info listening on 0.0.0.0:1080

ssr-client 2020/08/02 21:19 error [TLS] connecting "google.com:80" failed: -158: operation canceled ^Cssr-client 2020/08/02 21:20 info ssr-client 2020/08/02 21:20 info terminated.

Segmentation fault

ssrlive commented 3 years ago

最好在 路由器 上安装 gdb, 用 gdb 运行 客户端, 查看 崩溃时的调用栈 现场. 否则这种泛泛的信息定位不了问题.

同时 把 这个开关打开 https://github.com/ShadowsocksR-Live/shadowsocksr-native/blob/ee8e35c935b01f7a53f3e296ca72da4386dce517/src/CMakeLists.txt#L3

foobartech commented 3 years ago

补上详细log,看看还要什么信息,我不太懂gdb

gdb ./ssr-client
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "mipsel-openwrt-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./ssr-client...
(gdb) set args -c con.json
(gdb) r
Starting program: /tmp/ssr/ssr-client -c con.json
ssr-client 2020/08/02 23:31  info  ShadowsocksR native client

ssr-client 2020/08/02 23:31  info  remote server    *******:443
ssr-client 2020/08/02 23:31  info  method           rc4-md5
ssr-client 2020/08/02 23:31  info  password         *************
ssr-client 2020/08/02 23:31  info  protocol         origin
ssr-client 2020/08/02 23:31  info  obfs             plain
ssr-client 2020/08/02 23:31  info
ssr-client 2020/08/02 23:31  warn  over TLS         yes
ssr-client 2020/08/02 23:31  info  over TLS domain  domain
ssr-client 2020/08/02 23:31  info  over TLS path    /path/
ssr-client 2020/08/02 23:31  info
ssr-client 2020/08/02 23:31  info  udp relay        yes

[New LWP 12917]
[New LWP 12918]
[New LWP 12919]
[New LWP 12920]
ssr-client 2020/08/02 23:31  info  listening on     0.0.0.0:1080

ssr-client 2020/08/02 23:31  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:31  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:31  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:31  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:31  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:31  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:31  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:31  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:31  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:31  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:31  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32 error  [TLS] connecting "google.com:80" failed: -158: operation canceled
ssr-client 2020/08/02 23:32 error  ---- disconnected  "google.com:80" with failed. ---
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32 error  [TLS] connecting "google.com:80" failed: -158: operation canceled
ssr-client 2020/08/02 23:32 error  ---- disconnected  "google.com:80" with failed. ---
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:32  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:32  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:32  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:32  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:32  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:32  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:32  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:32  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:33  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:33  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:33  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:33  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:33  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:33  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:33  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:33  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:33  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:33  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:33  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:33  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:33  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:33  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:33  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:33  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:33  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:33  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:33  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:33  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:33  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:33  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:33  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:33  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:33  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:33  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:33  info  ++++ connecting  "google.com:80" ... ++++
ssr-client 2020/08/02 23:33  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:33  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:33  info  ---- disconnected  "google.com:80" ----
ssr-client 2020/08/02 23:33  info  ==== tunnel destroyed   count   0 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   1 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   2 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "ip8.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "ip8.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   3 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "fonts.gstatic.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   4 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "cdn.weglot.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   5 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   6 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  ---- disconnected  "ip8.com:443" ----
ssr-client 2020/08/02 23:35  info  ==== tunnel destroyed   count   5 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "wchat.freshchat.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "clients4.google.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   6 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "cdn.weglot.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   7 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   8 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count   9 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "autocookie.org:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "ip8.com:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count  10 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count  11 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count  12 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count  13 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:35 error  [TLS] connecting "ip8.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:35 error  ---- disconnected  "ip8.com:443" with failed. ---
ssr-client 2020/08/02 23:35 error  [TLS] connecting "www.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:35 error  ---- disconnected  "www.google.com:443" with failed. ---
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  ---- disconnected  "ip8.com:443" ----
ssr-client 2020/08/02 23:35  info  ==== tunnel destroyed   count  12 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel destroyed   count  11 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel destroyed   count  10 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count  11 ====
ssr-client 2020/08/02 23:35  info  ==== tunnel created     count  12 ====
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "rdap.db.ripe.net:443" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:35  info  ++++ connecting  "mtalk.google.com:5228" ... ++++
ssr-client 2020/08/02 23:35  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "apis.google.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  13 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  14 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  15 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  16 ====
ssr-client 2020/08/02 23:36  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:36  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36 error  [TLS] connecting "www.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "www.google.com:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "apis.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "apis.google.com:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "mtalk.google.com:5228" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "mtalk.google.com:5228" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "rdap.db.ripe.net:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "rdap.db.ripe.net:443" with failed. ---
ssr-client 2020/08/02 23:36  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  15 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  14 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  13 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  12 ====
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "ip8.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  13 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  14 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  15 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  16 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  17 ====
ssr-client 2020/08/02 23:36  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_tls_streaming
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "fonts.googleapis.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client 2020/08/02 23:36  info  ---- disconnected  "clients4.google.com:443" ----
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  16 ====
ssr-client 2020/08/02 23:36 error  [TLS] connecting "fonts.googleapis.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "fonts.googleapis.com:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "www.youtube.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "www.youtube.com:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "www.youtube.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "www.youtube.com:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "www.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "www.google.com:443" with failed. ---
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "apis.google.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "mtalk.google.com:5228" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "rdap.db.ripe.net:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "clients4.google.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  ---- disconnected  "cdn.weglot.com:443" ----
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  15 ====
ssr-client 2020/08/02 23:36  info  ---- disconnected  "autocookie.org:443" ----
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  14 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  13 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  12 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  11 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  10 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  11 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  12 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  13 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  14 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  15 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  16 ====
ssr-client 2020/08/02 23:36 error  [TLS] connecting "clients4.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "clients4.google.com:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "rdap.db.ripe.net:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "rdap.db.ripe.net:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "mtalk.google.com:5228" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "mtalk.google.com:5228" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "www.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "www.google.com:443" with failed. ---
ssr-client 2020/08/02 23:36 error  [TLS] connecting "apis.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/02 23:36 error  ---- disconnected  "apis.google.com:443" with failed. ---
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client 2020/08/02 23:36  info  ---- disconnected  "fonts.gstatic.com:443" ----
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  15 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  14 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  13 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  12 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  11 ====
ssr-client 2020/08/02 23:36  info  ==== tunnel destroyed   count  10 ====
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/02 23:36  info  ==== tunnel created     count  11 ====
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_s5_response_done
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:36  info  ++++ connecting  "fonts.googleapis.com:443" ... ++++
ssr-client 2020/08/02 23:36  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:37  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client 2020/08/02 23:37  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/02 23:37  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client 2020/08/02 23:37  info  tunnel_stage_client_first_pkg
^C
Thread 1 "ssr-client" received signal SIGINT, Interrupt.
__syscall () at src/internal/mips/syscall.s:22
22      src/internal/mips/syscall.s: No such file or directory.
(gdb)
foobartech commented 3 years ago

前面用 openwrt musl toolchain 静态编译的,重新用 padavan uclibc toolchain 编译,crash log如下:

gdb ssr-client-uclibc-dynamically
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "mipsel-openwrt-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ssr-client-uclibc-dynamically...
(gdb) set args -c con.json
(gdb) r
Starting program: /tmp/ssr/ssr-client-uclibc-dynamically -c con.json
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  ShadowsocksR native client

ssr-client-uclibc-dynamically 2020/08/03 09:37  info  remote server    *******:443
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  method           rc4-md5
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  password         *************
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  protocol         origin
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  obfs             plain
ssr-client-uclibc-dynamically 2020/08/03 09:37  info
ssr-client-uclibc-dynamically 2020/08/03 09:37  warn  over TLS         yes
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  over TLS domain  domain
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  over TLS path    /path/
ssr-client-uclibc-dynamically 2020/08/03 09:37  info
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  udp relay        yes

[New LWP 13661]
[New LWP 13662]
[New LWP 13663]
[New LWP 13664]
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  listening on     0.0.0.0:1080

ssr-client-uclibc-dynamically 2020/08/03 09:37  info  ==== tunnel created     count   1 ====
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  tunnel_stage_s5_response_done
ssr-client-uclibc-dynamically 2020/08/03 09:37  info  tunnel_stage_client_first_pkg
/tmp/ssr/ssr-client-uclibc-dynamically: /home/luohuang92/ssr-n/src/ssrbuffer.c: 85: buffer_create: Assertion `0' failed.

Thread 1 "ssr-client-ucli" received signal SIGABRT, Aborted.
0x77f97180 in raise () from /lib/libc.so.0
ssrlive commented 3 years ago

你能不能编写一个小程序在路由器里测试一下这个函数? 该函数用于返回动态分配内存的大小, 假设的是系统分配的大小肯定大于等于 我们期待的大小. 那个报错就是报告用户, 我们得到的内存大小小于我们期望的大小.

https://github.com/ShadowsocksR-Live/shadowsocksr-native/blob/ee8e35c935b01f7a53f3e296ca72da4386dce517/src/ssrbuffer.c#L61-L72

ssrlive commented 3 years ago

做了点小改动, 将这里的 内存恐慌 打印了出来. 你再运行看看到底问题的细节是什么.

foobartech commented 3 years ago

做了点小改动, 将这里的 内存恐慌 打印了出来. 你再运行看看到底问题的细节是什么.

>>>> memory panic of capacity=28 and real_size=24 <<<<

ssrlive commented 3 years ago

卧槽! 这么点内存都满足不了?!

ssrlive commented 3 years ago

系统总内存是多少?运行到崩溃时刻的剩余内存是多少?

foobartech commented 3 years ago

系统总内存是多少?运行到崩溃时刻的剩余内存是多少?

image

ssrlive commented 3 years ago

太奇怪了, 我 win 10 上运行一般不超过 10 M 内存占用.

image

ssrlive commented 3 years ago

把那个 assert(0); 去掉会发生什么?

foobartech commented 3 years ago

把那个 assert(0); 去掉会发生什么?

ssr-client-0 2020/08/03 12:15  info  ==== tunnel created     count   1 ====
ssr-client-0 2020/08/03 12:15  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-0 2020/08/03 12:15  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-0 2020/08/03 12:15  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-0 2020/08/03 12:15  info  tunnel_stage_s5_response_done
ssr-client-0 2020/08/03 12:15  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=28 and real_size=24 <<<<
ssr-client-0 2020/08/03 12:15  info  ++++ connecting  "google.com:80" ... ++++
ssr-client-0 2020/08/03 12:15  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-0 2020/08/03 12:15  info  tunnel_stage_tls_streaming
ssr-client-0 2020/08/03 12:15  info  ---- disconnected  "google.com:80" ----
./ssr-client-0: /home/me/ssr-n/src/ssrbuffer.c: 277: buffer_release: Assertion `ptr->capacity <= _memory_size_internal(ptr->buffer)' failed.
Aborted
ssrlive commented 3 years ago

这个也删掉以后呢?

foobartech commented 3 years ago

这个也删掉以后呢?

没crash了,但是按 ctrl+c 要等很久才能停止

ssr-client-1 2020/08/03 12:53  info  udp relay        yes

ssr-client-1 2020/08/03 12:53  info  listening on     0.0.0.0:1080

ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   1 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=28 and real_size=24 <<<<
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "google.com:80" ... ++++
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_tls_streaming
ssr-client-1 2020/08/03 12:53  info  ---- disconnected  "google.com:80" ----
ssr-client-1 2020/08/03 12:53  info  ==== tunnel destroyed   count   0 ====
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   1 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=28 and real_size=24 <<<<
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "google.com:80" ... ++++
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_tls_streaming
ssr-client-1 2020/08/03 12:53  info  ---- disconnected  "google.com:80" ----
ssr-client-1 2020/08/03 12:53  info  ==== tunnel destroyed   count   0 ====
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   1 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=28 and real_size=24 <<<<
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "google.com:80" ... ++++
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_tls_streaming
ssr-client-1 2020/08/03 12:53  info  ---- disconnected  "google.com:80" ----
ssr-client-1 2020/08/03 12:53  info  ==== tunnel destroyed   count   0 ====
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   1 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "ssh.cloud.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   2 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "ssh.cloud.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   3 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   4 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "cloud.google.com:443" ... ++++
>>>> memory panic of capacity=340 and real_size=336 <<<<
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   5 ====
ssr-client-1 2020/08/03 12:53 error  [TLS] connecting "cloud.google.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:53 error  ---- disconnected  "cloud.google.com:443" with failed. ---
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_tls_streaming
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  ==== tunnel destroyed   count   4 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  ---- disconnected  "ssh.cloud.google.com:443" ----
ssr-client-1 2020/08/03 12:53  info  ==== tunnel destroyed   count   3 ====
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   4 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "cloud.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:53  info  ++++ connecting  "cloud.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:53 error  [TLS] connecting "cloud.google.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:53 error  ---- disconnected  "cloud.google.com:443" with failed. ---
ssr-client-1 2020/08/03 12:53  info  ---- disconnected  "ssh.cloud.google.com:443" ----
ssr-client-1 2020/08/03 12:53  info  ==== tunnel destroyed   count   3 ====
ssr-client-1 2020/08/03 12:53  info  ==== tunnel destroyed   count   2 ====
ssr-client-1 2020/08/03 12:53  info  ==== tunnel created     count   3 ====
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:53  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "cloud.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   4 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   5 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   6 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  ---- disconnected  "www.google.com:443" ----
ssr-client-1 2020/08/03 12:54  info  ==== tunnel destroyed   count   5 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "www.gstatic.com:80" ... ++++
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=36 and real_size=32 <<<<
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=36 and real_size=32 <<<<
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   6 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   7 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   8 ====
ssr-client-1 2020/08/03 12:54 error  [TLS] connecting "www.google.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:54 error  ---- disconnected  "www.google.com:443" with failed. ---
ssr-client-1 2020/08/03 12:54 error  [TLS] connecting "www.google.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:54 error  ---- disconnected  "www.google.com:443" with failed. ---
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  ==== tunnel destroyed   count   7 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel destroyed   count   6 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   7 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "clients4.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   8 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "ip8.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "ip8.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54 error  [TLS] connecting "clients4.google.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:54 error  ---- disconnected  "clients4.google.com:443" with failed. ---
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=36 and real_size=32 <<<<
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count   9 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count  10 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count  11 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count  12 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count  13 ====
ssr-client-1 2020/08/03 12:54  info  ---- disconnected  "cloud.google.com:443" ----
ssr-client-1 2020/08/03 12:54  info  ==== tunnel destroyed   count  12 ====
ssr-client-1 2020/08/03 12:54 error  [TLS] connecting "ip8.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:54 error  ---- disconnected  "ip8.com:443" with failed. ---
ssr-client-1 2020/08/03 12:54 error  [TLS] connecting "ip8.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:54 error  ---- disconnected  "ip8.com:443" with failed. ---
ssr-client-1 2020/08/03 12:54  info  ==== tunnel destroyed   count  11 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:54  info  ==== tunnel destroyed   count  10 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel destroyed   count   9 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=36 and real_size=32 <<<<
ssr-client-1 2020/08/03 12:54  info  ++++ connecting  "www.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count  10 ====
ssr-client-1 2020/08/03 12:54  info  ==== tunnel created     count  11 ====
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_s5_response_done
ssr-client-1 2020/08/03 12:54  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:55  info  ++++ connecting  "cloudconsole-pa.clients6.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_client_first_pkg
^Cssr-client-1 2020/08/03 12:55  info  ++++ connecting  "www.google-analytics.com:443" ... ++++
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_client_first_pkg
^Cssr-client-1 2020/08/03 12:55  info  ++++ connecting  "www.google-analytics.com:443" ... ++++
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_client_first_pkg
>>>> memory panic of capacity=28 and real_size=24 <<<<
ssr-client-1 2020/08/03 12:55  info  ++++ connecting  "google.com:80" ... ++++
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-1 2020/08/03 12:55  info  ---- disconnected  "cloud.google.com:443" ----
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count  10 ====
ssr-client-1 2020/08/03 12:55 error  [TLS] connecting "www.google.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:55 error  ---- disconnected  "www.google.com:443" with failed. ---
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-1 2020/08/03 12:55  info  tunnel_stage_client_first_pkg
ssr-client-1 2020/08/03 12:55  info  ++++ connecting  "clients4.google.com:443" ... ++++
ssr-client-1 2020/08/03 12:55  info  ---- disconnected  "ip8.com:443" ----
ssr-client-1 2020/08/03 12:55  info  ---- disconnected  "cloudconsole-pa.clients6.google.com:443" ----
ssr-client-1 2020/08/03 12:55  info  ---- disconnected  "www.google-analytics.com:443" ----
ssr-client-1 2020/08/03 12:55  info  ---- disconnected  "ip8.com:443" ----
ssr-client-1 2020/08/03 12:55  info  ---- disconnected  "www.google-analytics.com:443" ----
ssr-client-1 2020/08/03 12:55  info  ---- disconnected  "google.com:80" ----
ssr-client-1 2020/08/03 12:55  info
ssr-client-1 2020/08/03 12:55  info  terminated.

ssr-client-1 2020/08/03 12:55 error  [TLS] connecting "clients4.google.com:443" failed: -158: operation canceled
ssr-client-1 2020/08/03 12:55 error  ---- disconnected  "clients4.google.com:443" with failed. ---
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count   9 ====
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count   8 ====
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count   7 ====
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count   6 ====
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count   5 ====
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count   4 ====
ssr-client-1 2020/08/03 12:55  info  ==== tunnel destroyed   count   3 ====
Segmentation fault
ssrlive commented 3 years ago

命令行加上 -f 参数, 每次只等 3 秒钟.

ssrlive commented 3 years ago

卧槽! 每次从那里返回的内存都比实际申请的要小 4 字节. 这个 Linux 相当神奇.

foobartech commented 3 years ago

还有小2字节的

ssr-client-2 2020/08/03 13:44  info  listening on     0.0.0.0:1080

ssr-client-2 2020/08/03 13:44  info  ==== tunnel created     count   1 ====
ssr-client-2 2020/08/03 13:44  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:44  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:44  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:44  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:44  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:44  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client-2 2020/08/03 13:44  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
>>>> memory panic of capacity=146 and real_size=144 <<<<
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   2 ====
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:45  info  ++++ connecting  "i.ytimg.com:443" ... ++++
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   3 ====
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:45  info  ++++ connecting  "fonts.googleapis.com:443" ... ++++
>>>> memory panic of capacity=1020 and real_size=1016 <<<<
>>>> memory panic of capacity=548 and real_size=544 <<<<
>>>> memory panic of capacity=140 and real_size=136 <<<<
>>>> memory panic of capacity=82 and real_size=80 <<<<
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
>>>> memory panic of capacity=340 and real_size=336 <<<<
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
>>>> memory panic of capacity=498 and real_size=496 <<<<
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_auth_completion_done -- Auth succeeded. Can start piping data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45 error  receive data failed about _client_ "www.youtube.com:443": connection timed out - tunnel_stage_tls_streaming
ssr-client-2 2020/08/03 13:45  info  ---- disconnected  "www.youtube.com:443" ----
ssr-client-2 2020/08/03 13:45  info  ==== tunnel destroyed   count   2 ====
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   3 ====
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:45  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   4 ====
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   5 ====
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   6 ====
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   7 ====
ssr-client-2 2020/08/03 13:45  info  ==== tunnel created     count   8 ====
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_s5_response_done
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:45  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client-2 2020/08/03 13:45  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:46  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client-2 2020/08/03 13:46  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:46  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client-2 2020/08/03 13:46  info  tunnel_stage_client_first_pkg
ssr-client-2 2020/08/03 13:46  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client-2 2020/08/03 13:46  info  tunnel_stage_client_first_pkg
^C^C^C^Cssr-client-2 2020/08/03 13:46  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client-2 2020/08/03 13:46  info  ==== tunnel created     count   9 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel created     count  10 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel created     count  11 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel created     count  12 ====
ssr-client-2 2020/08/03 13:46  info  ---- disconnected  "www.youtube.com:443" ----
ssr-client-2 2020/08/03 13:46  info  ---- disconnected  "www.youtube.com:443" ----
ssr-client-2 2020/08/03 13:46  info  ---- disconnected  "www.youtube.com:443" ----
ssr-client-2 2020/08/03 13:46  info  ---- disconnected  "www.youtube.com:443" ----
ssr-client-2 2020/08/03 13:46  info  ---- disconnected  "www.youtube.com:443" ----
ssr-client-2 2020/08/03 13:46  info
ssr-client-2 2020/08/03 13:46  info  terminated.

ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count  11 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count  10 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count   9 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count   8 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count   7 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count   6 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count   5 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count   4 ====
ssr-client-2 2020/08/03 13:46  info  ==== tunnel destroyed   count   3 ====
Segmentation fault
ssrlive commented 3 years ago

再取新代码, 看看还崩溃不. 现在只要看见有问题, 就强行加4再比较.

foobartech commented 3 years ago

再取新代码, 看看还崩溃不. 现在只要看见有问题, 就强行加4再比较.

编译出错了 还是Segmentation fault

ssr-client-3 2020/08/03 16:49  info  listening on     0.0.0.0:1080

ssr-client-3 2020/08/03 16:49  info  ==== tunnel created     count   1 ====
ssr-client-3 2020/08/03 16:49  info  tunnel_stage_handshake -- Client App S5 handshake coming.
ssr-client-3 2020/08/03 16:49  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client-3 2020/08/03 16:49  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client-3 2020/08/03 16:49  info  tunnel_stage_s5_response_done
ssr-client-3 2020/08/03 16:49  info  tunnel_stage_client_first_pkg
^C^Cssr-client-3 2020/08/03 16:50  info  ++++ connecting  "google.com:80" ... ++++
ssr-client-3 2020/08/03 16:50  info  ==== tunnel created     count   2 ====
ssr-client-3 2020/08/03 16:50  info  ==== tunnel created     count   3 ====
ssr-client-3 2020/08/03 16:50  info  ---- disconnected  "google.com:80" ----
ssr-client-3 2020/08/03 16:50  info
ssr-client-3 2020/08/03 16:50  info  terminated.

ssr-client-3 2020/08/03 16:50  info  ==== tunnel destroyed   count   2 ====
ssr-client-3 2020/08/03 16:50  info  ==== tunnel destroyed   count   1 ====
ssr-client-3 2020/08/03 16:50  info  ==== tunnel destroyed   count   0 ====
Segmentation fault
ssrlive commented 3 years ago

退出时候的崩溃 没什么问题吧

foobartech commented 3 years ago

退出时候的崩溃 没什么问题吧

加了 -f 有时 CTRL + C 也要20多秒才能退出

^Cssr-client 2020/08/03 18:55  info  ++++ connecting  "www.youtube.com:443" ... ++++
ssr-client 2020/08/03 18:55  info  tunnel_stage_handshake_replied -- Start waiting for request data.
ssr-client 2020/08/03 18:55  info  tunnel_stage_s5_request_from_client_app -- SOCKS5 Request data from client app.
ssr-client 2020/08/03 18:55  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/03 18:55  info  ++++ connecting  "fonts.googleapis.com:443" ... ++++
ssr-client 2020/08/03 18:55  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/03 18:55  info  ++++ connecting  "cloud.google.com:443" ... ++++
ssr-client 2020/08/03 18:55  info  tunnel_stage_client_first_pkg
ssr-client 2020/08/03 18:55  info  ++++ connecting  "console.cloud.google.com:443" ... ++++
ssr-client 2020/08/03 18:55  info  ==== tunnel created     count   6 ====
ssr-client 2020/08/03 18:55  info  ==== tunnel created     count   7 ====
ssr-client 2020/08/03 18:55  info  ---- disconnected  "www.youtube.com:443" ----
ssr-client 2020/08/03 18:55  info  ---- disconnected  "mtalk.google.com:5228" ----
ssr-client 2020/08/03 18:55  info
ssr-client 2020/08/03 18:55  info  terminated.

ssr-client 2020/08/03 18:55 error  [TLS] connecting "cloud.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/03 18:55 error  ---- disconnected  "cloud.google.com:443" with failed. ---
ssr-client 2020/08/03 18:55  info  ==== tunnel destroyed   count   6 ====
ssr-client 2020/08/03 18:55 error  [TLS] connecting "console.cloud.google.com:443" failed: -158: operation canceled
ssr-client 2020/08/03 18:55 error  ---- disconnected  "console.cloud.google.com:443" with failed. ---
ssr-client 2020/08/03 18:55  info  ==== tunnel destroyed   count   5 ====
ssr-client 2020/08/03 18:55  info  ==== tunnel destroyed   count   4 ====
ssr-client 2020/08/03 18:55  info  ==== tunnel destroyed   count   3 ====
ssr-client 2020/08/03 18:55  info  ==== tunnel destroyed   count   2 ====
ssr-client 2020/08/03 18:55 error  [TLS] connecting "fonts.googleapis.com:443" failed: -158: operation canceled
ssr-client 2020/08/03 18:55 error  ---- disconnected  "fonts.googleapis.com:443" with failed. ---
ssr-client 2020/08/03 18:55  info  ==== tunnel destroyed   count   1 ====
ssr-client 2020/08/03 18:55  info  ==== tunnel destroyed   count   0 ====
./ssr-client: /home/me/ssr-n/src/client/client.c: 1158: tls_cli_on_connection_established: Assertion `ctx->tls_ctx == tls_cli' failed.
Aborted
ssrlive commented 3 years ago

你知道怎么运行 openwrt 的 qemu 的模拟器吗? 如果可能我自己运行个模拟器看看.

foobartech commented 3 years ago

你知道怎么运行 openwrt 的 qemu 的模拟器吗? 如果可能我自己运行个模拟器看看.

参考 https://openwrt.org/docs/guide-user/virtualization/qemu#openwrt_in_qemu_mips 我测了一下在 qemu下是正常的,curl下载一个5m的文件没有问题,可能是 padavan 的问题

ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
 99 5120ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
k   99 5071k    0     0   508k      0  0:00:10  0:00:09  0:00:01  747kssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
ssr-client-static 2020/08/03 11:32  info  tunnel_stage_tls_streaming
100 5120k  100 5120k    0     0   509k      0  0:00:10  0:00:10 --:--:--  750k
root@OpenWrt:/tmp/ssr# ssr-client-static 2020/08/03 11:32  info  ---- disconnected  "fl-us-ping.vultr.com:443" ----
ssr-client-static 2020/08/03 11:32  info  ==== tunnel destroyed   count   0 ====

root@OpenWrt:/tmp/ssr# 
root@OpenWrt:/tmp/ssr# ls -lh
-rw-r--r--    1 root     root         595 Aug  3 11:23 con.json
-rwxr-xr-x    1 root     root        3.1M Aug  3 11:22 ssr-client-static
-rw-r--r--    1 root     root        5.0M Aug  3 11:32 test.bin
foobartech commented 3 years ago

你知道怎么运行 openwrt 的 qemu 的模拟器吗? 如果可能我自己运行个模拟器看看.

官方的 malta le太老了,之前编译的一个19.07.1的openwrt-malta-le-vmlinux-initramfs.zip

sudo -i

apt install qemu-system-mips

qemu-system-mipsel -kernel openwrt-malta-le-vmlinux-initramfs.elf -nographic -m 256
# 按回车

# 修改 vi /etc/opkg/distfeeds.conf 第一行 malta/le 为 ramips/mt7621

opkg update && opkg install curl
ssrlive commented 3 years ago

搞不定
image

ssrlive commented 3 years ago

空间太小了,是不是必须在外面交叉编译才可以? image

foobartech commented 3 years ago

空间太小了,是不是必须在外面交叉编译才可以?

对,我是外面编译好再传进来

git clone https://github.com/ShadowsocksR-Live/shadowsocksr-native.git ssr-n
cd ssr-n

git submodule update --init
git submodule foreach -q 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'

pushd /tmp
wget https://github.com/hanwckf/padavan-toolchain/releases/download/v1.1/mipsel-linux-uclibc.tar.xz
mkdir mipsel-linux-uclibc
tar -xvf mipsel-linux-uclibc.tar.xz -C mipsel-linux-uclibc
export PATH=/tmp/mipsel-linux-uclibc/bin:$PATH
popd

mkdir build && cd build
cmake -DCMAKE_C_COMPILER=mipsel-linux-uclibc-gcc -DCMAKE_EXE_LINKER_FLAGS=-static ..
make

还有lan口 tap还没弄明白,为了简单直接用端口转发(-nic user 不支持ping)

# 暴露80 1080端口
sudo qemu-system-mipsel -kernel openwrt-malta-le-vmlinux-initramfs.elf -nographic -m 256 -nic user,hostfwd=tcp::8080-:80,hostfwd=tcp::1080-:1080,hostfwd=udp::1080-:1080

# openwrt里面运行,允许wan入口流量
iptables -I INPUT -j ACCEPT

# 网络可能要等几秒钟才能正常,一般没问题的
sed -i "s/malta\/le/ramips\/mt7621/g" /etc/opkg/distfeeds.conf

opkg update && opkg install curl
ssrlive commented 3 years ago

貌似测试是正常的. image

foobartech commented 3 years ago

貌似测试是正常的.

找了一台mt7620的旧路由器刷固件试了一下,在padavan下会Segmentation fault,不能用;在openwrt 19.07.3下正常。 确实和固件有关系,先close了。看来要在ramips mipsel路由器上使用最好刷openwrt,用openwrt sdk编译。

不同编译器/固件表现如下: toolchain padavan openwrt
mipsel-openwrt-linux-musl-gcc Segmentation fault ok
mipsel-linux-uclibc-gcc Segmentation fault Illegal instruction,应该和fpu emulator有关
mipsel-linux-gnu-gcc Segmentation fault Illegal instruction,应该和fpu emulator有关
  1. padavan fpu emulator 打开,可用hardfloat
  2. openwrt fpu emulator 关闭,需要softfloat