Article View: news.software.nntp
Article #92560Re: innd SERVER cant malloc 18446744073699012160 bytes
From: Julien ÉLIE
Date: Tue, 18 Nov 2025 14:44
Date: Tue, 18 Nov 2025 14:44
55 lines
3249 bytes
3249 bytes
Hi Jesse,
> I have been working with Billy G., having him push articles from his pugleaf
> instance to an INN instance running on an OmniOS VM. Tonight innd crashed with
> the following:
>
> Nov 16 22:33:33 omnios-inn innd: [ID 608925 news.crit] SERVER cant malloc
> 18446744073699012160 bytes at interface.c line 622: Not enough space
Is the INN instance running in slave mode?
Do you happen to have the culprit article which made INN crash?
As Russ noted, article.groupslen is corrupted. Digging a bit at where
it can be set, I see in innd/art.c:
if (innconf->storeonxref) {
arth.groups = data->Replic;
arth.groupslen = data->ReplicLength;
}
I am wondering whether ARTxrefslave does the right thing if the Xref
header field is badly formatted.
For instance "Xref: group:10\r\n" without a server name.
if (!HDR_FOUND(HDR__XREF))
return false;
/* skip server name */
if ((p = strpbrk(HDR(HDR__XREF), " \t\r\n")) == NULL)
return false;
/* in case Xref is folded */
while (*++p == ' ' || *p == '\t' || *p == '\r' || *p == '\n')
;
if (*p == '\0')
return false;
data->Replic = p;
data->ReplicLength = HDR_LEN(HDR__XREF) - (p - HDR(HDR__XREF));
I think p would point at the beginning of the following header field, or
the beginning of the body, and then:
data->ReplicLength = strlen("group:10") - strlen("group:10\r\n") = -2
How p is set should be more robust, or we could test whether
data->ReplicLength is negative, and return false in that case.
Any thoughts or confirmation the current parsing looks wrong?
If the INN instance is not running in slave mode, well, there's another
issue to find...
--
Julien ÉLIE
« Whenever you set out to do something, something else must be done
first. » (Murphy's Fourth Corollary)
Technical Details
Message-ID:
<10fi0nt$3uqp2$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:74e4:43e8:7c7c:476f!not-for-mailReferences:
<10fenue$2qr8$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!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:74e4:43e8:7c7c:476f!not-for-mail From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> Newsgroups: news.software.nntp Subject: Re: innd SERVER cant malloc 18446744073699012160 bytes Date: Tue, 18 Nov 2025 15:44:13 +0100 Organization: Groupes francophones par TrigoFACILE Message-ID: <10fi0nt$3uqp2$1@news.trigofacile.com> References: <10fenue$2qr8$1@nnrp.usenet.blueworldhosting.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 18 Nov 2025 14:44:13 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2001:861:3f81:7990:74e4:43e8:7c7c:476f"; logging-data="4156194"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:w3kMGyPcY/NR1PWCyjP+SNguF2U= sha256:B1+d+mH19Z2q9Qwy/q0buFk5/jmiCiZTmTDdDZpI4Jc= sha1:QttbVNs2TVp4nyUyBW8ZsdyguPE= sha256:oxrEcNuLqaMd/xlx3t7ed3x8ZubSHKr2GKkAUIQ02LU= In-Reply-To: <10fenue$2qr8$1@nnrp.usenet.blueworldhosting.com>