-
Notifications
You must be signed in to change notification settings - Fork 372
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
segfault when bind() fails on transparent connection #355
Comments
This would happen when there is a large number of concurrent connection, and that number goes above FD_SETSIZE (usually 1024). However, the segmentation fault that follows is not normal. I think I did test large number of connections. Could you have a look at the FAQ on how to gather information on segmentation faults and report back the stack trace and line where the error happens? |
After a long time trying to make valgring work, I finally managed to do it. Up to now, the logs show:
I will update as soon as it crashes. |
==1391== Conditional jump or move depends on uninitialised value(s) ==1391== at 0x10E92F: watchers_add_read (sslh-select.c:67) ==1391== by 0x10E92F: watchers_init (sslh-select.c:59) ==1391== by 0x10E92F: main_loop (sslh-select.c:134) ==1391== by 0x10DB6D: main (sslh-main.c:285) Signed-off-by: Toni Uhlig <[email protected]>
Fixes unitialised memory access as seen in issue #355.
I have not gotten any crashes till now, and I can confirm after #356 the warning at the beginning has disappeared. I am starting to think that the crash and too many files open issue was related to #352, aka using transparent mode for a |
Not really -- there was a bug whereby |
Finally I got a crash:
|
renamed the title to fit where we're at. |
@gilcu3 the commit I just pushed closes an execution path that would result in a segfault. It seems "unlikely", but I guess over time it is "guaranteed to happen" :-) Please re-open if you get another crash! |
…ctivity on both file descriptors (fix #355)
Once every few days my systemd
sslh-select
service fails with the following error:sslh-select v1.22c
The text was updated successfully, but these errors were encountered: