🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92568

Re: innd SERVER cant malloc 18446744073699012160 bytes

#92568
From: Richard Kettlewell
Date: Wed, 19 Nov 2025 08:22
31 lines
2873 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
> "Richard Kettlewell" <invalid@invalid.invalid> wrote:
>> ReplicLength is set in ARTassignnumbers, which is the kind of ad-hoc
>> string builder that tends to be full of bugs. It has a number of issues
>> but the most relevant is:
>> 
>> * If the collection of group names (and article numbers etc) adds up to
>>   more than 2GB then len will overflow to negative. This could explain
>>   the outcome seen, although it would need a pathologically large input
>>   article.
>
> Well, I do have icdsynccount set to 300000, and we are feeding this
> machine over a billion articles from another machine, so the
> rate/throughput of incoming articles is very high.

To trigger the issue in ARTassignnumbers you’d need a single article
where the collection of group names plus article numbers added up to
more than 2GB (in fact nearly 4GB for the specific value seen here).
It’d take a crosspost to millions of groups and the article header alone
would be multiple gigabytes.

If your peer does have such a large article then that’s probably the
cause. It doens’t seem likely but you never know l-)

If not then further analysis is needed. The coredump posted might shed
light on it but I don’t have a debugger that understands Solaris
coredumps (and if finding one is harder than apt-get install something,
it’s probably not happening).

-- 
https://www.greenend.org.uk/rjk/
Technical Details
Message-ID: <wwvzf8ijuto.fsf@LkoBDZeT.terraraq.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
References: <10fenue$2qr8$1@nnrp.usenet.blueworldhosting.com> <10fi0nt$3uqp2$1@news.trigofacile.com> <87tsyrf9ag.fsf@hope.eyrie.org> <10fijgb$qokl$1@artemis.inf.ed.ac.uk> <wwvecpvhqu2.fsf@LkoBDZeT.terraraq.uk> <10fj1ki$2c23$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: Richard Kettlewell <invalid@invalid.invalid>
Newsgroups: news.software.nntp
Subject: Re: innd SERVER cant malloc 18446744073699012160 bytes
Date: Wed, 19 Nov 2025 08:22:11 +0000
Organization: terraraq NNTP server
Message-ID: <wwvzf8ijuto.fsf@LkoBDZeT.terraraq.uk>
References: <10fenue$2qr8$1@nnrp.usenet.blueworldhosting.com>
	<10fi0nt$3uqp2$1@news.trigofacile.com> <87tsyrf9ag.fsf@hope.eyrie.org>
	<10fijgb$qokl$1@artemis.inf.ed.ac.uk>
	<wwvecpvhqu2.fsf@LkoBDZeT.terraraq.uk>
	<10fj1ki$2c23$1@nnrp.usenet.blueworldhosting.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
	logging-data="31465"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:0luXeizaj8Xk6CZM97SbYbp3/TY=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
     F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
     +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO