🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91963

Re: inn 2.7.0, expire takes ages and hangs

#91963
From: Adam W.
Date: Tue, 05 Nov 2024 15:50
37 lines
2779 bytes
Matija Nalis <mnalis-news@voyager.hr> wrote:

> Usually I'd use lsof(8) to see what is on the other side of that socket, and
> try to continue debugging there.

What I know now is that the socket is:

/usr/local/news/run/ctlinndcKoXl2

It appears when expire process starts and disappears when it terminates. 
In strace I see that this path is sent to the /usr/local/news/run/control 
socket, owned by innd.

I guess that's how ctlinnd works...

So it's possible that something went wrong between expire and innd, 
probably in innd itself... some race?

I see that innd is waiting on four sockets now, one of them being 
/usr/local/news/run/control, another /usr/local/news/run/nntpin, and 
two other being IPv4 and IPv6 listening sockets.

Maybe there's some race in that select loop, maybe if one of these sockets 
is readable in just the wrong time, the other is ignored... I'd have to 
dig deeper into inn's source.

What I'm surprised is that I'm the first person to stumble upon this bug, 
and my setup is pretty typical -- normal modern Debian system, vanilla inn 
without any modifications, etc.

> you can add "-v level" to increase verbosity of expire(8).

Unfortunately all it seems to be doing is printing history lines and what 
it's doing with them. Might be useful, but I don't know if in this case.

I'm testing it, but it doesn't want to hang yet. Hopefully it will. I'm 
also thinking of stress-testing just the ctlinnd part of it.
Technical Details
Message-ID: <f82d92e0-1f5d-4cf0-bed4-0a4e2ea9e5c8-aw@news.chmurka.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.chmurka.net!.POSTED.172.24.44.20!not-for-mail
References: <5dcbedb5-81e3-4ba1-a218-ac52c626cb05-aw@news.chmurka.net> <slrnvickoe.kqb.mnalis-news@eagle102.home.lan>

Show Full Headers
Complete Article Headers
Message-ID: <f82d92e0-1f5d-4cf0-bed4-0a4e2ea9e5c8-aw@news.chmurka.net>
Subject: Re: inn 2.7.0, expire takes ages and hangs
Date: Tue, 05 Nov 2024 15:50:47 +0000
From: aw@somewhere.invalid (Adam W.)
References: <5dcbedb5-81e3-4ba1-a218-ac52c626cb05-aw@news.chmurka.net> <slrnvickoe.kqb.mnalis-news@eagle102.home.lan>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.chmurka.net!.POSTED.172.24.44.20!not-for-mail
Newsgroups: news.software.nntp
Organization: news.chmurka.net
Injection-Date: Tue, 5 Nov 2024 15:50:47 -0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="arnold"; posting-host="172.24.44.20";
 logging-data="26935"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/6.1.21-v7+ (armv7l))
Cancel-Lock: sha1:oxOBQPxh+RN022ei5DX0PtdsazI=
 sha1:yPsiy0u3H1x4wtaLuQGDoV2xsrY= sha256:jmmsd5bZbMg8+lM1bNYfRaF2hsxMHCpbbhOiZCskBBw=
 sha1:U24znCP1jsfj8U02sLQWe7lZnQ8= sha256:pfOuEIyFo7hscUXhHCfMef/dNXLn+HV7izW/TKT4QtE=