Article View: news.software.nntp
Article #92567Re: innd SERVER cant malloc 18446744073699012160 bytes
From: Jesse Rehmer
Date: Wed, 19 Nov 2025 00:05
Date: Wed, 19 Nov 2025 00:05
55 lines
3505 bytes
3505 bytes
On Nov 18, 2025 at 5:19:01 PM CST, "Richard Kettlewell"
<invalid@invalid.invalid> wrote:
> richard@cogsci.ed.ac.uk (Richard Tobin) writes:
>> Russ Allbery <eagle@eyrie.org> wrote:
>>> I am still a bit confused, though, because the value of groupslen doesn't
>>> seem to be something sensible like -2. If I'm doing the math correctly,
>>> it's something more like -10539456, which is a hard value to justify if
>>> the problem is the above bug.
>>
>> The number in hex is 0xffffffffff5f2e40, and the non-f part
>> corresponds to the printable characters _.@ which is hardly conclusive
>> but might be due to being overwritten by a malformed mail address.
>
> The proximate code is:
>
> static bool
> MatchGroups(const char *g, int len, const char *pattern, bool exactmatch)
> {
> char *group, *groups, *q;
> int i, lastwhite;
> enum uwildmat matched;
> bool wanted = false;
>
> q = groups = xmalloc(len + 1);
>
> This is consistent with len = -10539457.
>
> The length comes from ARTstore:
>
> if (innconf->storeonxref) {
> arth.groups = data->Replic;
> arth.groupslen = data->ReplicLength;
> } else {
> arth.groups = HDR(HDR__NEWSGROUPS);
> arth.groupslen = HDR_LEN(HDR__NEWSGROUPS);
> }
>
> I don’t think Jesse’s said what storeonxref is set to but the default is
> true, so I’m going to assume that’s what it is until I hear otherwise.
You are correct, storeonxref is true and xrefslave is false.
> 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.
Technical Details
Message-ID:
<10fj1ki$2c23$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mailReferences:
<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>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!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> Newsgroups: news.software.nntp Subject: Re: innd SERVER cant malloc 18446744073699012160 bytes Date: Wed, 19 Nov 2025 00:05:38 -0000 (UTC) Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <10fj1ki$2c23$1@nnrp.usenet.blueworldhosting.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 19 Nov 2025 00:05:38 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="77891"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:NQCi8VYmKY6NGAKL0iinon6MWok= sha256:miCOc9jgtAq7egcDSCrhUgua1vx0f85/vOXxxDiq+Tk= sha1:kWxzfEPJCrf5GtNo6J7VAK34S5E= sha256:ugKeV/8MPxbfhpgx2XdjpCrG0MihN4tv4IzJWTowM2w= X-Usenapp: v1.28/d - Full License