lparam / xSocks

A secure and fast proxy for protect your network traffic
GNU General Public License v3.0
474 stars 127 forks source link

server meets segmentation fault #30

Open kuyagic opened 6 years ago

kuyagic commented 6 years ago

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++

lparam commented 6 years ago

@kuyagic Thanks for pointing this. Could you reproduce this bug?

kuyagic commented 6 years ago

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.