Closed zergvszerg closed 2 years ago
Complete configuration file is needed.
I forgot to mention that crashing won't happen every single time a proxy request is made, it just fills the disk with coredump files over time. The crashing pattern seemed to be at random. The configuration is as below,
{
"password": "xxx", // modified for obvious resion
"method": "none",
"protocol": "auth_chain_b",
"protocol_param": "",
"obfs": "tls1.2_ticket_auth",
"obfs_param": "",
"udp": true,
"idle_timeout": 90,
"connect_timeout": 5,
"udp_timeout": 4,
"server_settings": {
"listen_address": "0.0.0.0",
"listen_port": 1080 // modified for obvious reason, yet the port number is not filtered/occupied for sure
},
"client_settings": {
"server": "12.34.56.78",
"server_port": 12475,
"listen_address": "0.0.0.0",
"listen_port": 1080
},
"over_tls_settings": {
"enable": false,
"server_domain": "goodsitesample.com",
"path": "/",
"root_cert_file": ""
}
}
I have test your settings with the following script, but I can't meet any crash.
#!/bin/bash
index=0
while(( ${index}<=500 )); do
curl -x socks5h://localhost:1080 https://www.google.com.hk/
curl -x socks5h://localhost:1080 https://www.baidu.com/
let "index++"
done
Can you provide some test web sites?
It looks like this lines
Can you make some condition breakpoints inside function auth_chain_a_server_post_decrypt
to detect the error with gdb
?
Please answer these questions before submitting your issue. Thanks!
What version of shadowsocks-native are you using?
baaad92 (HEAD -> master, origin/master, origin/HEAD) minor issues
What operating system are you using?
Linux (on aarch64)
What did you do?
ssr-server
What did you expect to see?
ssr-server not crash due to an assertion blow
What did you see instead?
ssr-server crashed due to an assertion failure
What is your config in detail (with all sensitive info masked)?
The protocol is auth_chain_b, yet I saw auth_chain_a called in the coredump stacks