server meets segmentation fault
kuyagic opened this issue · 2 comments
kuyagic commented
I run the server side in non-daemon mode for about 2 days and just now meet the following error
2017/11/14 20:08:09 [ERR]: connect to :6222 failed: connection refused
Assertion failed: strlen(client->target_addr) > 2 (/root/xSocks/src/xSocksd_client.c: request_start: 159)
Segmentation fault (core dumped)
client side log seems ok.
2017/11/13 22:51:26 [ERR]: connect to server failed: connection refused
2017/11/14 20:08:22 [ERR]: connect to server failed: connection refused
2017/11/14 20:08:22 [ERR]: connect to server failed: connection refused
on 2017/11/13 I restart the server side.
also I change the build LDFLAGS to make the binary static
-static -static-libgcc -static-libstdc++
kuyagic commented
it occurs occasionally.
when error occurs, the server side just say Segmentation fault (core dumped)
guess may have some bug at client side /root/xSocks/src/xSocksd_client.c: request_start: 159
I'm using supervisor to keep server side from down due to this bug now.