View Issue Details

IDProjectCategoryView StatusLast Update
0006435unrealircdpublic2024-07-18 15:46
Reportersrhuston Assigned Tosyzop  
PrioritynormalSeverityminorReproducibilityunable to reproduce
Status resolvedResolutionfixed 
PlatformLinuxOSAlpineOS Version3.20
Product Version6.1.7 
Fixed in Version6.1.7.1 
Summary0006435: io.BUG_FD_SETSELECT_OUT_OF_RANGE
DescriptionI was running unreal on a RHEL7 machine, and recently created a series of Docker containers to run everything instead. I was running a fairly recent version until then (6.1.4) and had never seen this error. But in the last couple days randomly it pops up now (using 6.1.7rc1, I haven't rebuilt the image since the official release):

```
12:28:55 [srhuston.net] !irc.srhuston.net blacklist.BLACKLIST_HIT [info] [Blacklist] IP 162.142.125.209 matches blacklist dronebl (dnsbl.dronebl.org/reply=6)
12:28:55 [srhuston.net] !irc.srhuston.net tkl.TKL_ADD [info] G-Line added: '*@162.142.125.209' [reason: Proxy/Drone detected. Check https://dronebl.org/lookup?ip=162.142.125.209 for details.] [by: irc.srhuston.net] [duration: 1d]
12:28:56 [srhuston.net] !irc.srhuston.net io.BUG_FD_SETSELECT_OUT_OF_RANGE [error] [BUG] trying to modify fd -2 in fd table, but MAXCONNECTIONS is 16384
```

It's not just related to blacklist or gline operations though:
```
09:46:49 [srhuston.net] !irc.srhuston.net blacklist.BLACKLIST_HIT [info] [Blacklist] IP 167.94.145.101 matches blacklist dronebl (dnsbl.dronebl.org/reply=6)
09:46:49 [srhuston.net] !irc.srhuston.net tkl.TKL_ADD [info] G-Line added: '*@167.94.145.101' [reason: Proxy/Drone detected. Check https://dronebl.org/lookup?ip=167.94.145.101 for details.] [by: irc.srhuston.net] [duration: 1d]
09:47:08 [srhuston.net] !irc.srhuston.net io.BUG_FD_SETSELECT_OUT_OF_RANGE [error] [BUG] trying to modify fd -2 in fd table, but MAXCONNECTIONS is 16384
09:47:08 [srhuston.net] !irc.srhuston.net io.BUG_FD_SETSELECT_OUT_OF_RANGE [error] [BUG] trying to modify fd -2 in fd table, but MAXCONNECTIONS is 16384
09:47:20 [srhuston.net] !irc.srhuston.net io.BUG_FD_SETSELECT_OUT_OF_RANGE [error] [BUG] trying to modify fd -2 in fd table, but MAXCONNECTIONS is 16384
```
In this case some time had passed between them, enough that I wouldn't think they're related.
Additional InformationHost machine is running Ubuntu 22.04.4 and Docker CE (Version: 5:27.0.3-1~ubuntu.22.04~jammy)
TagsNo tags attached.
3rd party modules

Activities

syzop

2024-07-18 00:46

administrator   ~0023269

Could you share the output of /VERSION as an IRCOp with me? (This would share library versions and such)
Thanks!

srhuston

2024-07-18 04:10

reporter   ~0023271

Sure thing:
22:09:51 [srhuston.net] -!- UnrealIRCd-6.1.7-rc1. irc.srhuston.net Fhn6OoEmM [Linux joshua 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64=6100]
22:09:51 [srhuston.net] !irc.srhuston.net OpenSSL 3.3.1 4 Jun 2024
22:09:51 [srhuston.net] !irc.srhuston.net libsodium 1.0.19
22:09:51 [srhuston.net] !irc.srhuston.net c-ares 1.31.0
22:09:51 [srhuston.net] !irc.srhuston.net PCRE2 10.43 2024-02-16
22:09:51 [srhuston.net] !irc.srhuston.net jansson 2.14
22:09:51 [srhuston.net] -!- ACCOUNTEXTBAN=account,a AWAYLEN=307 BOT=B CASEMAPPING=ascii CHANLIMIT=#:10 CHANMODES=beI,fkL,lFH,cdimnprstzCDGKMNOPQRSTVZ CHANNELLEN=32 CHANTYPES=# CHATHISTORY=50
          CLIENTTAGDENY=*,-draft/typing,-typing,-draft/channel-context,-draft/reply DEAF=d ELIST=MNUCT are supported by this server
22:09:51 [srhuston.net] -!- EXCEPTS EXTBAN=~,acfjmnpqrtACFGOST INVEX KICKLEN=307 KNOCK MAP MAXLIST=b:60,e:60,I:60 MAXNICKLEN=30 MINNICKLEN=0 MODES=12 MONITOR=128 MSGREFTYPES=msgid,timestamp are supported by this server
22:09:51 [srhuston.net] -!- NAMELEN=50 NAMESX NETWORK=srhuston.net NICKLEN=30 PREFIX=(qaohv)~&@%+ QUITLEN=307 SAFELIST SILENCE=15 STATUSMSG=~&@%+
          TARGMAX=DCCALLOW:,ISON:,JOIN:,KICK:4,KILL:,LIST:,NAMES:1,NOTICE:1,PART:,PRIVMSG:4,SAJOIN:,SAPART:,TAGMSG:1,USERHOST:,USERIP:,WATCH:,WHOIS:1,WHOWAS:1 TOPICLEN=360 UHNAMES are supported by this server
22:09:51 [srhuston.net] -!- USERIP WALLCHOPS WATCH=128 WATCHOPTS=A WHOX are supported by this server

syzop

2024-07-18 08:21

administrator   ~0023272

Thanks for the info. If you want to help me more then could you either upgrade to 'git' (and restart the ircd)
Or.. if you don't want to upgrade to git, then do the following:
cd unrealircd-6.1.7-rc1
wget https://github.com/unrealircd/unrealircd/commit/b39b953b8ec6aad293d94348d115442868648c46.patch
patch -p1 <b39b953b8ec6aad293d94348d115442868648c46.patch
make clean; make install

And yeah, it does require an IRC server restart unfortunately.

It will, however, if this issue happens again, print out exactly which file:line is triggering this bug, narrowing it down from 50 locations to 1 location. So that would help me a lot.

syzop

2024-07-18 10:12

administrator   ~0023273

Ah, fixed the bug in git just now. Will probably release 6.1.7.1 later. And yeah, the warning was harmless.

srhuston

2024-07-18 15:04

reporter   ~0023274

Ah, great! Upgrading to git wouldn't have been a problem, that's actually what the container build process does (a clone --depth 1). But now I'll wait until the release notice instead. Thanks!

syzop

2024-07-18 15:46

administrator   ~0023276

Fixed in UnrealIRCd 6.1.7.1, released just now. Thanks for the report and your help :).

https://github.com/unrealircd/unrealircd/commit/0496c35fc6bac015247738c95e05fa503f63697d is the actual fix commit

Issue History

Date Modified Username Field Change
2024-07-17 23:18 srhuston New Issue
2024-07-18 00:46 syzop Note Added: 0023269
2024-07-18 04:10 srhuston Note Added: 0023271
2024-07-18 08:21 syzop Note Added: 0023272
2024-07-18 10:12 syzop Note Added: 0023273
2024-07-18 15:04 srhuston Note Added: 0023274
2024-07-18 15:46 syzop Assigned To => syzop
2024-07-18 15:46 syzop Status new => resolved
2024-07-18 15:46 syzop Resolution open => fixed
2024-07-18 15:46 syzop Fixed in Version => 6.1.7.1
2024-07-18 15:46 syzop Note Added: 0023276