pgul / binkd Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Sometimes binkd crashes at the start of outgoing call, this is a full log before the crash:
10 Sep 14:29:41 [4740] perl_init_clone(): new clone 00000000
10 Sep 14:29:41 [2448] started client #1, id=260
10 Sep 14:29:41 [4740] created d:\fido\bink\outbound\139c0259.csy
+ 10 Sep 14:29:41 [4740] call to 2:5020/601@fidonet
10 Sep 14:29:41 [2448] started client #2, id=268
10 Sep 14:29:41 [4784] perl_init_clone(): new clone 00000000
10 Sep 14:29:41 [4784] created d:\fido\bink\outbound\13a607cd.pnt\0000004c.csy
The biggest question here is why it even tried to create d:\fido\bink\outbound\13a607cd.pnt\0000004c.csy while calling a different node and already created csy for it.
This package has a configure.in file which has long been deprecated. Please
update it to use configure.ac instead as newer versions of autotools will die
when it finds this file. See https://bugs.gentoo.org/426262 for details.
Hi
I've been trying to get binkd working with wwivnet, and ran across a problem. WWIVnet uses 20000 as a fake zone (and net) number to transfer wwivnet packets over binkp. (they use networkb, their own binkp implementation).
Binkd talks to networkb, and works well, except for a buffer overflow caused by 4e20 not fitting into 3 chars. Ideally wwivnet would be using a lower number for their fake zone to avoid this issue.
I've forked and patched binkd to work with this case, but am unsure if you are interested in the patch as I think it's really a wwivnet issue. (The outbound.4e20 isn't even used, as binkd just uses fileboxes to transfer the files)
Andrew
I am running binkd/1.1a-99/Win32 MSVC10 build downloaded from download.binkd.org on Windows XP SP3 with all available updates installed. It crashes often at the same point, please check this log:
- 27 Aug 15:40:05 [4924] incoming from 1.2.3.4 (44787) [ip changed]
27 Aug 15:40:05 [4924] started server #1, id=260
27 Aug 15:40:05 [6400] binkp init done, socket # is 248
+ 27 Aug 15:40:05 [6400] incoming session with 1.2.3.4 [ip changed]
27 Aug 15:40:05 [6400] send message NUL NDL 25M,IBN,ICM
27 Aug 15:40:05 [6400] send message NUL TIME Mon, 27 Aug 2018 15:40:05 +0300
27 Aug 15:40:05 [6400] send message NUL VER binkd/1.1a-99/Win32 binkp/1.1
[skipped few sent messages]
27 Aug 15:40:05 [6400] rcvd msg NUL NDL 115200,CM,IFC,IBN
- 27 Aug 15:40:05 [6400] NDL 115200,CM,IFC,IBN
27 Aug 15:40:05 [6400] rcvd msg NUL TIME Mon, 27 Aug 2018 15:40:05 +0300
- 27 Aug 15:40:05 [6400] TIME Mon, 27 Aug 2018 15:40:05 +0300
27 Aug 15:40:05 [6400] rcvd msg NUL VER binkd/1.0.2/FreeBSD binkp/1.1
- 27 Aug 15:40:05 [6400] VER binkd/1.0.2/FreeBSD binkp/1.1
27 Aug 15:40:05 [6400] remote uses binkp v.1.1
27 Aug 15:40:05 [6400] created d:\fido\bink\outbound\aabbccdd.bsy [file name changed]
27 Aug 15:40:05 [6400] Remote IP not checked
27 Aug 15:40:05 [6400] rcvd msg NUL OPT NDA EXTCMD CRYPT GZ BZ2
- 27 Aug 15:40:05 [6400] OPT NDA EXTCMD CRYPT GZ BZ2
[skipped few received messages]
+ 27 Aug 15:40:05 [6400] Remote supports asymmetric ND mode
+ 27 Aug 15:40:05 [6400] Remote supports EXTCMD mode
+ 27 Aug 15:40:05 [6400] Remote requests CRYPT mode
+ 27 Aug 15:40:05 [6400] Remote supports GZ mode
+ 27 Aug 15:40:05 [6400] Remote supports BZ2 mode
27 Aug 15:40:05 [6400] rcvd msg NUL TRF 0 1364
- 27 Aug 15:40:05 [6400] TRF 0 1364
[at this point binkd crashes]
I can provide unscrubbed log in private message if needed.
@pgul See reports in the FidoNet BINKD echomail area.
\_✪_/ make
Compiling md5b.c...
Compiling binkd.c...
Compiling readcfg.c...
Compiling tools.c...
Compiling ftnaddr.c...
Compiling ftnq.c...
Compiling client.c...
Compiling server.c...
Compiling protocol.c...
Compiling bsy.c...
Compiling inbound.c...
Compiling breaksig.c...
Compiling branch.c...
Compiling unix/rename.c...
Compiling unix/getfree.c...
Compiling ftndom.c...
Compiling ftnnode.c...
Compiling srif.c...
Compiling pmatch.c...
Compiling readflo.c...
Compiling prothlp.c...
Compiling iptools.c...
Compiling rfc2553.c...
Compiling run.c...
Compiling binlog.c...
Compiling exitproc.c...
Compiling getw.c...
Compiling xalloc.c...
Compiling crypt.c...
Compiling unix/setpttl.c...
Compiling unix/daemonize.c...
Compiling unix/ns_parse.c...
unix/ns_parse.c:35: error: expected ')' before '*' token
unix/ns_parse.c:46:6: warning: #warning "ns_msg._msg_ptr element not defined"
unix/ns_parse.c:76: error: expected declaration specifiers or '...' before 'ns_sect'
unix/ns_parse.c: In function 'ns_skiprr':
unix/ns_parse.c:85: error: 'NS_INT16SZ' undeclared (first use in this function)
unix/ns_parse.c:85: error: (Each undeclared identifier is reported only once
unix/ns_parse.c:85: error: for each function it appears in.)
unix/ns_parse.c:86: error: 'section' undeclared (first use in this function)
unix/ns_parse.c:86: error: 'ns_s_qd' undeclared (first use in this function)
unix/ns_parse.c:87: error: 'NS_INT32SZ' undeclared (first use in this function)
unix/ns_parse.c:90: warning: implicit declaration of function 'NS_GET16'
unix/ns_parse.c: At top level:
unix/ns_parse.c:100: error: expected declaration specifiers or '...' before 'ns_msg'
unix/ns_parse.c: In function 'ns_initparse':
unix/ns_parse.c:104: error: 'handle' undeclared (first use in this function)
unix/ns_parse.c:107: error: 'NS_INT16SZ' undeclared (first use in this function)
unix/ns_parse.c:113: error: 'ns_s_max' undeclared (first use in this function)
unix/ns_parse.c:122: error: 'ns_sect' undeclared (first use in this function)
unix/ns_parse.c:122: error: expected ')' before 'i'
unix/ns_parse.c:132: warning: implicit declaration of function 'setsection'
unix/ns_parse.c: At top level:
unix/ns_parse.c:137: error: expected ')' before '*' token
unix/ns_parse.c:197: error: expected ')' before '*' token
*** Error 1 in /home/shtirlic/projects/binkd (Makefile:78 'unix/ns_parse.o': @gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VE...)
это баг или фича? :-)
+ 07 Nov 19:01:13 [1937773] call to 2:5020/9696.111@fidonet
+ 07 Nov 19:01:13 [1937772] getaddrinfo failed: Name or service not known (-2)
07 Nov 19:01:13 [1937773] trying p111.f9696.n5020.z2.binkp.net [204.74.99.100]...
откуда взялся 204.74.99.100? днс про такой резолв не в курсе.
From https://github.com/pgul/binkd#more-info:
Web site: http://www.corbina.net/~maloff/binkd/
The result, in Firefox:
The server at www.corbina.net is taking too long to respond.
– the same timeout for (https) https://www.corbina.net/~maloff/binkd/.
Should there be a change of address? Or might the timeouts be a temporary situation?
Side note: I found myself in this repo after getting 502 Bad Gateway for http://binkd.grumbler.org/ via the home page link/icon at https://www.freshports.org/net/binkd/.
Hello,
I'm using binkd 1.1a-99-1 on Debian Buster, x86_64.
I reported this as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983096 but the package maintainer asked me to forward the information to you.
I'm hoping that the bug is also relevant for the latest binkd version and that you can easily reproduce it simply by adding a port number to an existing host specification.
(If not, I'd have to assume that the bug has disappeared in more recent versions of binkd, and that it will propagate to Debian in due time.)
A short description of the problem:
When specifying a port number in the host:port specification for a node, the port number appears to be ignored during polls -- binkd tries to use port number 0(!) as the destination port:
ftn@glimmer:~$ /usr/sbin/binkd -c -v -P21:1/100@fsxnet /etc/binkd/binkd.cfg
12:04 [8603] BEGIN, binkd/1.1a-99/Linux -c -v -P21:1/100@fsxnet /etc/binkd/binkd.cfg
12:04 [8603] creating a poll for 21:1/100@fsxnet (`d' flavour)
12:04 [8603] clientmgr started
$ -d 21:1/100@fsxnet
+ 12:04 [8604] call to 21:1/100@fsxnet
12:04 [8604] trying net1.fsxnet.nz [219.89.83.33]:0...
? 12:04 [8604] connection to 21:1/100@fsxnet failed: Connection timed out
12:04 [8604] trying net1.fsxnet.nz [2001:470:d:123::50]:0...
? 12:04 [8604] connection to 21:1/100@fsxnet failed: No route to host
12:04 [8603] rc(8604)=0
$ -d 21:1/100@fsxnet busy
-- 618:500/1@micronet busy
-- 77:1/100@scinet busy
$ -d 21:1/100@fsxnet
+ 12:06 [8713] call to 21:1/100@fsxnet
12:06 [8713] trying net1.fsxnet.nz [219.89.83.33]:0...
? 12:06 [8713] connection to 21:1/100@fsxnet failed: Connection timed out
12:06 [8713] trying net1.fsxnet.nz [2001:470:d:123::50]:0...
? 12:06 [8713] connection to 21:1/100@fsxnet failed: No route to host
12:06 [8603] rc(8713)=0
! 12:06 [8603] got signal #2.
ftn@glimmer:~$
netstat output shows:
root@glimmer:~# netstat -anp | grep SYN
tcp 0 1 192.168.1.5:42058 219.89.83.33:* SYN_SENT 8760/binkd: call to
I would have expected the specified port number (24556) to be used.
Removing the port number makes binkd use the default binkp port (24554).
Attaching the config files.
I have verified with strace that the config file is read and that /etc/ifmail/passwds is also read.
I have also tried replacing "password /etc/ifmail/passwds" with a more complete /etc/binkd/binkd.inc (including passwords there instead) but with the same result.
Best regards
Björn
After compiling a binkd in the RHEL 8 an error occurs when trying to poll a node on a non-standard port:
node 1:2/3@fidonet -nd hostna.me:24555 PaSsWoRd #### Link
[fido@srv-srt2 ~]$ /home/fido/node/bin/binkd -p -P 1:261/38 /home/fido/node/etc/binkd.cfg ; sync
02:19 [3807] BEGIN, binkd/1.1a-99/Linux -p -P 1:261/38 /home/fido/node/etc/binkd.cfg
- 02:19 [3807] Nodelist /home/fido/node/etc/nodelist/NODELIST.010 parsed, 1024 IP-nodes processed (0 sec)
? 02:19 [3807] Cannot find domain for zone 1, assuming 'fidonet'
02:19 [3807] creating a poll for 1:2/3@fidonet (`d' flavour)
02:19 [3807] clientmgr started
$ -d 1:2/3@fidonet
+ 02:19 [3809] call to 1:2/3@fidonet
+ 02:19 [3809] getaddrinfo failed: Servname не поддерживается для ai_socktype (-8)
02:19 [3807] rc(3809)=0
02:19 [3807] the queue is empty, quitting...
All links on the standard port 24554 work correctly
[fido@srv-srt2 ~]$ cat /etc/services | grep bink
binkp 24554/tcp # Binkley
binkp 24554/udp # Binkley
binkp 24555/tcp # Binkley
binkp 24555/udp # Binkley
[fido@srv-srt2 ~]$ /home/fido/node/bin/binkd -vv
Binkd 1.1a-99 (Jan 10 2020 22:44:49/Linux)
Compilation flags: gcc, perl, https, ntlm, amiga_4d_outbound, bwlim.
Facilities: fts5004 ipv6
UPDATE
I reconfigured another link to a non-standard port to see what happens. And he also behaves incorrectly:
node 2:5053/55 -nd -md dlinkddns.com:24555 PassWWd) #### Link to Sysop
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.