• malformed ip causes ircd to crash

    From Nigel Reed@VERT to GitLab issue in main/sbbs on Tue Jun 8 15:15:09 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/271

    Running ircd standalone.

    Jun 8 08:11:29 bbs ircd[4150972]: [eotlbbs.synchro.net<-rampage]: PING LAG1623107889547589
    Jun 8 08:11:29 bbs ircd[4150972]: [eotlbbs.synchro.net->rampage]: PONG eotlbbs.synchro.net :LAG1623107889547589
    Jun 8 08:11:44 bbs ircd[4150972]: [eotlbbs.synchro.net<-nelgin]: ISON jtbane Jun 8 08:11:44 bbs ircd[4150972]: [eotlbbs.synchro.net->nelgin]: 303 nelgin Jun 8 08:11:44 bbs ircd[4150972]: Accepting new connection on port 6667
    Jun 8 08:11:44 bbs ircd[4150972]: 0022 Accepted new connection: <unknown address family: 0> port 0
    Jun 8 08:11:44 bbs ircd[4150972]: [UNREG] Resolving IP: <unknown address family: 0>
    Jun 8 08:11:44 bbs ircd[4150972]: !JavaScript /sbbs/exec/load/dns.js line 764: Error: Malformed IP address <unknown address family: 0>

    Further more, when this happens ircd is unable to restart:

    Jun 8 08:11:45 bbs ircd[4150972]: Re-running: /sbbs/exec/ircd.js
    Jun 8 08:11:45 bbs ircd[4150972]: SynchronetIRCd-1.9b started.
    Jun 8 08:11:45 bbs ircd[4150972]: Trying to read configuration from: /sbbs/ctrl/ircd.conf
    Jun 8 08:11:45 bbs ircd[4150972]: Creating new socket object on port 6667
    Jun 8 08:11:45 bbs ircd[4150972]: 0017 !ERROR 98 binding IRCd socket to port 6667: Address already in use
    Jun 8 08:11:45 bbs ircd[4150972]: !Error Error: Unable to add host to socket set creating listening socket on port 6667

    I'm getting about 6-7 of these per second which fills the logfiles pretty quick if I don't catch it.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Tue Jun 8 19:49:39 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/271#note_2018

    Same issue here - ircd locking up every few days with same errors:

    0015 Accepted new connection: <unknown address family: 0> port 0
    !JavaScript /sbbs/exec/load/dns.js line 764: Error: Malformed IP address <unknown address family: 0>
    !JavaScript /sbbs/exec/load/dns.js line 764: Error: Malformed IP address <unknown address family: 0>
    /sbbs/exec/ircd.js executed in 25377.39 seconds

    Followed by this repeated error which fills up the ircd.log with gigs of the same error:

    Reading script from /sbbs/exec/ircd.js
    /sbbs/exec/ircd.js compiled in 0.00 seconds
    SynchronetIRCd-1.9b started.
    Trying to read configuration from: /sbbs/ctrl/ircd.conf
    0012 !ERROR 98 binding IRCd socket to port 6667: Address already in use
    0012 !ERROR 98 binding IRCd socket to port 6667: Address already in use
    !Error Error: Unable to add host to socket set creating listening socket on port 6667
    !Error Error: Unable to add host to socket set creating listening socket on port 6667
    /sbbs/exec/ircd.js executed in 0.02 seconds
    !Module (/sbbs/exec/ircd.js) set exit_code: 1
    !Module (/sbbs/exec/ircd.js) set exit_code: 1

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    Restarting ircd brings the service back up, but it dies again within hours.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Sun Jun 13 00:57:19 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/271#note_2042

    Hsa this issue been assigned to Cyan?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Sun Jun 13 01:01:25 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/271#note_2043

    Yes. When i created it. I also mentioned it twice, at least, on irc but nothing has been done yet. Enjoy your ircd crashing.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Keyop Troy@VERT to GitLab note in main/sbbs on Sun Jun 13 01:05:27 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/271#note_2044

    Update via the #synchronet irc:

    <Cyan> Keyop: the bug you filed on github is for dns.js, and Deuce is the author of that
    <Cyan> I'm going to talk to him about it the next time I see him, but he hasn't been online for a while
    <Keyop> Thanks Cyan :)
    <Keyop> I've just tagged you in the nelgin post, should I tag Deuce instead? <Cyan> nah it's fine, I can bring it up with him and help him test it with the ircd
    <Keyop> Ah coolio - thanks Cyan :)
    <Cyan> just wanted to let you know why there hasn't been much action on it (yet)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Tue Jun 15 17:54:40 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/271#note_2046

    Based on the conversation above, I've reassigned to Deuce.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Randy Sommerfeld@VERT to GitLab issue in main/sbbs on Wed Jul 6 17:19:52 2022
    close https://gitlab.synchro.net/main/sbbs/-/issues/271

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Randy Sommerfeld@VERT to GitLab note in main/sbbs on Wed Jul 6 17:19:52 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/271#note_2684

    Workaround is in ircd and the issue itself was fixed in dns.js, the issue hasn't appeared in a long time so I'm closing this.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net