+ 03 Jul 14:27:02 [16166] getaddrinfo failed: Servname not supported
for ai_socktype (-8)
On 07-03-19 09:20, Richard Menedetter wrote to Tony Langdon <=-
+ 03 Jul 14:27:02 [16166] getaddrinfo failed: Servname not supported
for ai_socktype (-8)
Indeed strange ... ai_socktype should be TCP/UDP:
ai_socktype
This field specifies the preferred socket type, for example SOCK_STREAM
or SOCK_DGRAM. Specifying 0 in this field indicates that socket
addresses of any type can be returned by getaddrinfo().
I do not think it has something to do with BinkD.
It is just an error that your OS (Linux?) reports back to BinkD.
The question is why ... to be honest I have no clue.
Easiest would be to hardcode an IPv4 address ... that should work by eliminating the DNS query.
If you want to get to the bottom of this you could use ltrace to trace what calls are done, and take a look what is in the call that fails.
It could also be an IPv4/IPv6 issue maybe??
This only happens with one particular uplink, as far as I can tell, and because the error appears to refer to DNS lookups, I've tried things like hardcoding entries in my hosts file, and even using the raw IP:PORT in binkd.conf. Anyway, this is the error I get:
03 Jul 14:27:02 [16069] started client #1, id=16166
03 Jul 14:27:02 [16166] created /sbbs/binkd/fsxnet.015/00010064.csy
+ 03 Jul 14:27:02 [16166] call to 21:1/100@fsxnet
+ 03 Jul 14:27:02 [16166] getaddrinfo failed: Servname not supported for ai_socktype (-8)
+ 03 Jul 14:27:02 [16166] holding 21:1/100@fsxnet (2019/07/03binkd.conf
14:37:02)
03 Jul 14:27:02 [16166] unlinked `/sbbs/binkd/fsxnet.015/00010064.csy'
03 Jul 14:27:02 [16166] bsy_remove_all: done
03 Jul 14:27:02 [16069] rc(16166)=0
I'm not sure what "Servname not supported for..." means. Google was very vague on this, and why it's only appeared in the last month or so is baffling me. Looking up the offending hostname in DNS manually using nslookup and friends works fine.
This is the version I'm running.
01 Jan 17:30:14 [20916] BEGIN, binkd/1.0.4/Linux -P 3:633/280
--- SBBSecho 3.03-Linux
* Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au
(3:633/410)
It also only affects one uplink, the rest poll fine.
On 07-03-19 12:31, Kees van Eeten wrote to Tony Langdon <=-
I tried 3:633/410 and 3:633/280 and got IPv6 connections on both.
You are however calling 21:1/100@fsxnet. I have no way to check what
is in your binkd.conf for that node,
I expect Servname to be the service port (eg 24554) and the socket
type
either for ipv4 or ipv6.
I tried 3:633/280 with an arbitrary port number, that resulted inbinkd.conf
connection refused.
This is the version I'm running.
01 Jan 17:30:14 [20916] BEGIN, binkd/1.0.4/Linux -P 3:633/280
O.K. that is your local system, not the server for 3:633/410
It could use an upgrade on the version of Binkd.
Why does it say: "call to 21:1/100@fsxnet", when you are polling 3:633/410
* Origin: As for me, all I know is that, I know nothing.
(2:280/5003.4)
On 07-03-19 12:12, Wilfred van Velzen wrote to Tony Langdon <=-
Hi Tony,
On 2019-07-03 18:24:00, you wrote to Richard Menedetter:
It also only affects one uplink, the rest poll fine.
What's the hostname of the problem uplink?
What's the hostname of the problem uplink?
agency.bbs.nz:24556
On 07-04-19 09:25, Wilfred van Velzen wrote to Tony Langdon <=-
Interestingly at first I get the same response. But after that it just works, and keeps on working...?
If you want to get to the bottom of this you could use ltrace toHmm, not a tool I'm familiar with. :(
trace what calls are done, and take a look what is in the call
that fails.
What's the hostname of the problem uplink?agency.bbs.nz:24556
What's the hostname of the problem uplink?
agency.bbs.nz:24556
I have no issues at all connecting to Paul:
+ 15:16 [22774] call to 3:770/1@fidonet
15:16 [22774] trying agency.bbs.nz [2001:470:d:123::50]...
15:16 [22774] connected
+ 15:16 [22774] outgoing session with agency.bbs.nz:24554 [2001:470:d:123::50]
Why Port 24556???
What's the hostname of the problem uplink?
agency.bbs.nz:24556
I have no issues at all connecting to Paul:
+ 15:16 [22774] call to 3:770/1@fidonet
15:16 [22774] trying agency.bbs.nz [2001:470:d:123::50]...
15:16 [22774] connected
+ 15:16 [22774] outgoing session with agency.bbs.nz:24554 [2001:470:d:123::50]
Why Port 24556???
I've been running binkd fairly successfully for 2.5 years on this
system, and for the most part, it's been flawless. However, on polling one particular uplink, I've started getting a strange error, which is
not giving me a lot of clues.
On 01-30-20 06:12, Dan Cross wrote to Tony Langdon <=-
I ran into this today. The root cause is a use-after-free bug in
binkd; this bug has been present since sometime in 2001 according
to the git history. Most people probably won't notice it unless
your system's malloc() is aggressive about poisoning memory returned
by free().
I've sent a pull request to fix it upstream. https://github.com/pgul/binkd/pull/16
I've sent a pull request to fix it upstream. https://github.com/pgul/binkd/pull/16
Hopefully I can get hold of the fixed source. I've had to take a number of measures like restricting callouts to the affected node to IPv4 only, and also hardcoding the IPv4 IP in the node entry, because DNS lookups were also problematic for the affected node..
A second link running over ZeroTier started showing similar issues recently, but switching that link to connect directly across the open Internet was enough to get that link working.
It's odd that it only affects some links.
My system is a fairly busy Pi that's running 2 BBSs, which may explain
why malloc() is being a bit aggressive. :)
I've sent a pull request to fix it upstream. https://github.com/pgul/binkd/pull/16
On 01-30-20 15:55, Dan Cross wrote to Tony Langdon <=-
With luck, the upstream maintainer will address the pull request
quickly, either by applying my patches or coming up with another fix.
If you need this quickly, however, you could clone my fork (https://github.com/fat-dragon/binkd.git) and build from source.
The code path with the use-after-free was dependent on the source of
the information. If you used the default port, the pointer in question would end up pointing to memory that wasn't free()'d; if you used a non-standard port in your configuration file (e.g., `agency.bbs.bz:24556`), you'd tickle the bug; hence why it doesn't show
up everyhwere.
Rather the aggressiveness I mentioned with respect to free()'d memory
has to do with the malloc() implementation writing garbage into the free()'d region of memory, precisely to detect these sorts of use-after-free issues.
Yippee! I cloned binkd from your forked repo, compiled - and everything works! Thank you very much again here again! =))
Yippee! I cloned binkd from your forked repo, compiled - andSure thing. Just FYI, that pgul merged that PR into the master repo,
everything works! Thank you very much again here again! =))
so I recommend going back to that....
I've sent a pull request to fix it upstream. https://github.com/pgul/binkd/pull/16binkd/win9x won't compile anymore
'sockaddr_in'I've sent a pull request to fix it upstream.
https://github.com/pgul/binkd/pull/16
binkd/win9x won't compile anymore
binkd type : msvc, binkd9x, static
output dir : bin\msvc-binkd9x-static
binkd exe : binkd9x-static.exe -----------------------------------------------------------
Compiling:
client.c
client.c(224) : error C2039: 'ss_family' : is not a member of
\MSVC6\VC98\INCLUDE\winsock.h(309) : see declaration of'sockaddr_in'
Hello Dan!
30 Jan 20 06:12, you wrote to Tony Langdon:
I've sent a pull request to fix it upstream. https://github.com/pgul/binkd/pull/16binkd/win9x won't compile anymore
binkd type : msvc, binkd9x, static
output dir : bin\msvc-binkd9x-static
binkd exe : binkd9x-static.exe -----------------------------------------------------------
Compiling:
client.c
client.c(224) : error C2039: 'ss_family' : is not a member of 'sockaddr_in' \MSVC6\VC98\INCLUDE\winsock.h(309) : see declaration of 'sockaddr_in'
And OS/2:
On 30 Jan 2020 at 08:01p, Tommi Koivula pondered and said...
And OS/2:
Please try commit c90a4dd in https://github.com/pgul/binkd/pull/17;
Well, something doesn't fit.And OS/2:Please try commit c90a4dd in https://github.com/pgul/binkd/pull/17;
that might address the issue. Like win9x, I'm not in a position to support OS/2, either, but the fix should be the same.
On 30 Jan 2020 at 08:01p, Tommi Koivula pondered and said...
And OS/2:
Please try commit c90a4dd in https://github.com/pgul/binkd/pull/17;
that might address the issue.
Hallo Dan!
Well, something doesn't fit.And OS/2:Please try commit c90a4dd in https://github.com/pgul/binkd/pull/17; that might address the issue. Like win9x, I'm not in a position to support OS/2, either, but the fix should be the same.
I used the current binkd sources from cvs.
Compiling client.c...
client.c: In function `clientmgr':
client.c:224: error: structure has no member named `sa_family'
make.exe: *** [client.o] Error 1
Yes, my pull request hasn't made it to CVS yet. :-/I patched manually, but:
client.c: In function `clientmgr':
client.c:224: error: structure has no member named `sa_family'
On 01 Feb 2020 at 11:36p, Torsten Bamberg pondered and said...
client.c: In function `clientmgr':
client.c:224: error: structure has no member named `sa_family'
This is the same issue the other fellow had; the same solution I
offered to him might help?
The other fellow just pulled https://github.com/fat-dragon/binkd.git and it compiled fine with gcc 3.3.5.
Jep, this repo does work with gcc3/emx.The other fellow just pulledAh, wonderful to hear. Thanks, other fellow. :-) (Sorry, I blanked
https://github.com/fat-dragon/binkd.git and it compiled fine with
gcc 3.3.5.
on your name when replying to the first gentleman.)
On 05 Feb 2020 at 08:24p, Tommi Koivula pondered and said...
The other fellow just pulled https://github.com/fat-dragon/binkd.git and
it compiled fine with gcc 3.3.5.
Ah, wonderful to hear. Thanks, other fellow. :-)
Same here. Binkd runs now like a charm.https://github.com/fat-dragon/binkd.git and it compiled fine
with gcc 3.3.5.
Ah, wonderful to hear. Thanks, other fellow. :-)+1 :)
'TommiBye/2 Torsten
Some words about your patch.https://github.com/fat-dragon/binkd.git and it compiled fine withAh, wonderful to hear. Thanks, other fellow. :-)
gcc 3.3.5.
Some words about your patch.
Hallo Tommi!
06.02.2020 19:22, Tommi Koivula schrieb an Dan Cross:
https://github.com/fat-dragon/binkd.git and it compiled fine
with gcc 3.3.5.
Ah, wonderful to hear. Thanks, other fellow. :-)
+1 :)
Same here. Binkd runs now like a charm.
@TID: Mystic BBS 1.12 A43^^^
@MSGID: 1:267/310@fidonet5E42A22F^^^^
@REPLY: 2:221/0.1 5e3ed84c
@PID: Legacy/X Alpha-5
SEEN-BY: 57/0 103/705 153/250 154/10 203/0 220/70 221/0 229/101 426240/5832
SEEN-BY: 267/800 280/464 5003 5555 288/100 292/854 310/31 317/3 340/1000 SEEN-BY: 396/45 423/120 712/848 770/0 1 100 340 772/0 1 210 500 2452/250 @PATH: 267/310 800 770/1 280/464 464.47--- GoldED+/LNX 1.1.5-b20180707
Something is missing. There is not even an Origin line.
File traffic is not like message traffic, you will only get new files when one
of the FDN hatches out new files. There was a new Binkd hatched for the OS/2 >version of binkd recently.
File traffic is not like message traffic, you will only get new files
when one of the FDN hatches out new files. There was a new Binkd
hatched for the OS/2 version of binkd recently.
Is this hatched as an executable, or do you have to be able to compile
it on the OS/2 box?
I have been using IREX for this but the daemon mode eats a lot of resources and slows the BBS down. Would like to try to get away from using it.
I have been using IREX for this but the daemon mode eats a lot ofresources
and slows the BBS down. Would like to try to get away from using it.
It is an OS/2 executible with a sample binkd.cfg and libbz2.dll.
It's requestable from here as BINKD104.ZIP. I don't have an OS/2 setup
so I haven't tried it.
That is a Fidonet FDN but it's not on the Filegate. If you (or anyone) would like to link for that (or other file/mail areas) we can do that.
getting away from IREX is a GoodThing<tm> in any case... it isn't supported, has numerous documented bugs, and has some defect with its binkp1.1 support that other binkp mailers have to work around...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 369 |
Nodes: | 16 (2 / 14) |
Uptime: | 88:03:19 |
Calls: | 7,896 |
Calls today: | 2 |
Files: | 12,968 |
Messages: | 5,792,266 |