xSocks icon indicating copy to clipboard operation
xSocks copied to clipboard

server meets segmentation fault

Open kuyagic opened this issue 8 years ago • 2 comments

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 avatar Nov 14 '17 12:11 kuyagic

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

lparam avatar Dec 15 '17 10:12 lparam

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.

kuyagic avatar Dec 15 '17 12:12 kuyagic