-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Segmentation Fault #6
Comments
maybe yet another issue due to stack size. what system is this ? please give detailed info like |
I had thought it would be something like that. I've tested it on the following: I did the following: |
try this, change line 416 from size_t stacksz = MAX(8192, PTHREAD_STACK_MIN); /* 4KB for us, 4KB for libc */ to size_t stacksz = 512 * 1024; then run make and make install again |
That fixed the issue! It builds and runs without issues now!! Thank you (: |
great! would you be so kind as to try out some other sizes to find the "sweet spot" ? |
Yea sure! You just want me to change the "512" in "512 * 1024" right? And keep going until segmentation fault happens again? |
yes, exactly. thanks! |
Just finished testing and found some new issues.. I tried between 8 and 512 (8, 16, 32, 64, 128, 256, 512) and they all worked. However, I've encountered a few new issue.
Is this intended? If it is, is there a way I can get it to accept auth every time (and fix the possible first-attempt auth fail)? Thanks! |
that doesn't make sense. it probably means you tested the wrong binary (i.e. you were continuing to use the old one that worked, since changing the value from 8 to 512 fixed your issue originally.
what program are you doing the testing with ? in my test:
terminal 2:
|
I'm actually using a Windows Proxy Checker found here: https://www.proxifier.com/download/ I'm definitely removing/deleting the old binary and rebuilding it with a new make & make install. Perhaps I should just with curl on another linux box. I'll report back as soon as I can! |
Alright after extensive testing: It seems the problem was with the proxy checker. Although this other I'm one using gives me: "Socks5 PROTOCOL ERROR", but we can just ignore that as it's exclusive to ProxyCap. As for the stack size: 8 -> 512 works perfectly fine with: However, when I change it back to: I get segmentation fault. |
huh. could you try putting this line after the MAX stuff ? dprintf(2, "%zu\n", stacksz); and tell me what it says ? |
Sure! With: With: If I do: I think it's pretty safe to say that having a stackz size of 16384 is causing it to crash O: |
interesting. so now it works with the default ? |
No no. It fails with the default. As long as the stackz size prints/is : 16384, it will give "Segmentation Fault". So with: With: So anything that sets STACKZ to 16384 will give Segmentation fault (Including the default config/line). |
... |
Hmm.. I'm not sure as to why it crashes either :/ But it only seems to crash at 16384. It doesn't crash at 8192 or 4096. I haven't tried lower though. |
according to reports from a user of Debian 9 x86 (32-bit), getaddrinfo() would crash at times with the default stacksize. addresses #6
I'm getting the following error printed out when trying to Test/Connect.
"Segmentation Fault"
Added TCP_NODELAY to server.c and make > make install with no errors. Tried WITHOUT TCP_NODELAY, still given "Segmentation Fault" upon Auth.
Adding Auth with "-u test -P test" causes Auth to fail first time then cause "Segmentation Fault" on the second try. Having no Auth set instantly closes the server with "Segmentation Fault" again.
Upon adding every command line possible "server_setup: Success" but not running.
Any ideas as to why this is happening?
The text was updated successfully, but these errors were encountered: