🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79240

Re: Cleanfeed Binary Checks

#79240
From: Matija Nalis
Date: Fri, 01 Aug 2008 02:23
48 lines
3061 bytes
On 31 Jul 2008 01:29:26 +0200, Marco d'Itri <md@Linux.IT> wrote:
> iulius@nom-de-mon-site.com.invalid wrote:
>>As you also noticed, if you write to the disk the contents of such
>>articles as they are seen by Cleanfeed (with saveart()), they look good.
>>
>>I do not know what is happening...
>>
>>A Perl bug?  An innd bug?  Another thing?
> It's a well known INN bug, which has been around for more than 5 years
> now.

INN probabaly really needs some bug tracking system; this "well known bug"
was not known by me at all, even after some moderate amount of time wasted
searching around. :(

> The $hdr{__BODY__} scalar, which is magic, is not created correctly by
> innd and regexps matching new lines fail.
> An XS expert is needed.


I'm not XS expert by any measure, but I was stumbling upon similar problem
for some time now (but never found enough time to track it down and make
nice bug report and/or fix). The problem manifested itself by is_binary()
returning wrong results sometimes, while saveart() articles looked good and
checked manually.

One of the things I did while trying to track it down and which *seems* to
have worked around the problem (but I have not done any good checking) was
to replace all:

if ($hdr{__BODY__} =~ /whatever/)

regexp-matching constructs in cleanfeed with:

my $BODY=$hdr{__BODY__}; if ($BODY =~ /whatever/)

which SEEMS to have fixed the problem for me (but note warning above --
could someone with spare time try to reproduce it and see if this helps ?)

If that is really the case (so that making the copy of the variable is
fixing the problem), then the problem might be (just wild guessing) that
optimisation in inn quite some time ago which was something to effect: "make
$hdr{__BODY__} read-only to gain some speed by avoiding making a copy in
memory"


-- 
Opinions above are GNU-copylefted.
Technical Details
Message-ID: <slrng94sta.c76.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!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!txtfeed2.tudelft.nl!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mail
References: <g61rme$nqb$1@news.mixmin.net> <g62e1h$ejc$1@news.trigofacile.com> <g6qtgm$sq3$1@bongo.bofh.it>

Show Full Headers
Complete Article Headers
Message-ID: <slrng94sta.c76.mnalis-news@eagle102.home.lan>
Subject: Re: Cleanfeed Binary Checks
Date: Fri, 01 Aug 2008 02:23:37 +0000
From: Matija Nalis <mnalis-news@voyager.hr>
References: <g61rme$nqb$1@news.mixmin.net> <g62e1h$ejc$1@news.trigofacile.com> <g6qtgm$sq3$1@bongo.bofh.it>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.astraweb.com!border1.a.newsrouter.astraweb.com!txtfeed2.tudelft.nl!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mail
Newsgroups: news.software.nntp
Organization: CARNet, Croatia
Lines: 48
NNTP-Posting-Host: 193.198.176.24
X-Trace: news1.carnet.hr 1217557417 31428 193.198.176.24 (1 Aug 2008 02:23:37
 GMT)
X-Complaints-To: abuse@CARNet.hr
NNTP-Posting-Date: Fri, 1 Aug 2008 02:23:37 +0000 (UTC)
Cancel-Lock: sha1:PzYVLjeTOoYaRKzPca5nSynCVCE=
User-Agent: slrn/0.9.8.1pl1 (Debian)