-
Notifications
You must be signed in to change notification settings - Fork 487
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
Compiles successfully on FreeBSD, but segfaults when run as server. #2
Comments
Using gcc 4.4.7 on CentOS 6.5 x86_64
|
I am also experiencing a segfault at udpserver.c:186, stemming from gethostbyname (which the man page reports as obsolete) returning a null pointer on line 179. I am running Gentoo linux with version 2.20 of libc |
gethostbyname is returning null and not setting errno. This turns out to be a sign that the DNS lookup is failing. I fixed it by editing my /etc/hosts, adding hostname to the line: this is likely specific to gentoo, and this stack overflow suggests that gethostbyname is requiring a DNS configuration that is not needed in configurations like mine, using dhcp with no DNS server. |
I'm accepting patches if anyone wants to take a stab! Not reproducing in my environment, haven't had a chance to take a look further. |
Has anyone taken a crack at this yet since 2015? I'm about to try to run a pwnat server on FBSD 12. |
Using gcc 4.7.3 on FreeBSD 10.0-RELEASE x86-64:
Compiles and runs successfully on Debian 7 x86-64 using gcc 4.7.2.
The text was updated successfully, but these errors were encountered: