🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84749

Re: Mistake in newsfeeds caused INN to crash

#84749
From: D. Stussy
Date: Tue, 13 Mar 2012 20:40
32 lines
2441 bytes
"Tim Fardell" <tim.fardell.all-your-clothes@virgin.net> wrote in message
news:uk7vl7d8l4i0rj7iv2fifhjiurn6kl1ar1@4ax.com...
> Good evening all.
>
> I just added a new feed to 'newsfeeds' but I made an error in the
> config. What I accidentally configured was:
>
> news.example.com:\
>         :localhierarchy*,control*:\
>         :Tm:innfeed!
>
> Spot the obvious mistake :-)

The null group list in the 2nd field didn't do it.  It must either be in
the flag parsing (3rd field) or the 4th field (or 4th & 5th, depending on
how it was actually parsed).

> Anyway, when I did 'ctlinnd reload newsfeeds' the server crashed.

This is why one should do a "ctlinnd checkfile" first.

> Ctlinnd seemed to be taking ages, so I broke out of it, and found that
> the server was no longer running, and I had to manually restart it
> (after correcting the mistake in newsfeeds).
>
> Can anyone explain why this apparently small mistake had such drastic
> consequences?

Without looking at the source, no.  However, I agree that badly formed data
should not crash the program.

Technical Details
Message-ID: <jjoba1$a04$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!news.snarked.org!pool-71-105-106-228.lsanca.dsl-w.verizon.net!not-for-mail
References: <uk7vl7d8l4i0rj7iv2fifhjiurn6kl1ar1@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <jjoba1$a04$1@snarked.org>
Subject: Re: Mistake in newsfeeds caused INN to crash
Date: Tue, 13 Mar 2012 13:40:23 -0700
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <uk7vl7d8l4i0rj7iv2fifhjiurn6kl1ar1@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!news.snarked.org!pool-71-105-106-228.lsanca.dsl-w.verizon.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 32
Reply-To: "D. Stussy" <replies+newsgroups@kd6lvw.ampr.org>
Injection-Date: Tue, 13 Mar 2012 20:39:29 +0000 (UTC)
Injection-Info: snarked.org;
 posting-host="pool-71-105-106-228.lsanca.dsl-w.verizon.net:71.105.106.228";
 logging-data="10244"; mail-complaints-to="newsmaster+complaints@snarked.org"
X-No-Archive: Yes
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MSMail-Priority: Normal