Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server meets segmentation fault #30

Open
kuyagic opened this issue Nov 14, 2017 · 2 comments
Open

server meets segmentation fault #30

kuyagic opened this issue Nov 14, 2017 · 2 comments

Comments

@kuyagic
Copy link

kuyagic commented Nov 14, 2017

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
Copy link
Owner

lparam commented Dec 15, 2017

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

@kuyagic
Copy link
Author

kuyagic commented Dec 15, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants