🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Steve Crook Wed, 27 Apr 2011 10:21
Memory allocation error
#84015
Author: Steve Crook
Date: Wed, 27 Apr 2011 10:21
6 lines
1107 bytes
Not seen this error before:-

Apr 27 09:40:20 news nnrpd[2881]: failed to strndup 18446744073709551615
bytes at overdata.c line 388: Cannot allocate memory

I have lots of free memory, but not *that* much! :)
Re: Memory allocation error
#84007
Author: Ray Banana
Date: Wed, 27 Apr 2011 11:02
15 lines
2102 bytes
Thus spake Steve Crook <steve@mixmin.net>
 
> Not seen this error before:-

> Apr 27 09:40:20 news nnrpd[2881]: failed to strndup 18446744073709551615
> bytes at overdata.c line 388: Cannot allocate memory
> I have lots of free memory, but not *that* much! :)

I've seen similar problems with tradindexed overview and corrupt article
numbers. If you are using a tradindexed overview, tdx-util might give an
indication of the cause for this problem.

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: Memory allocation error
#84008
Author: Steve Crook
Date: Wed, 27 Apr 2011 12:22
11 lines
1582 bytes
On Wed, 27 Apr 2011 13:02:46 +0200, Ray Banana wrote in
Message-Id: <867hag2bzd.fsf@banana.shacknet.nu>:

> I've seen similar problems with tradindexed overview and corrupt article
> numbers. If you are using a tradindexed overview, tdx-util might give an
> indication of the cause for this problem.

Unfortunately I'm using buffindexed so probably the only solution is a 
history/overview rebuild.  If I'm forced to do that, I'm tempted to
switch to tradindexed.  Is that feasible?
>
Re: Memory allocation error
#84009
Author: Julien ÉLIE
Date: Wed, 27 Apr 2011 15:19
34 lines
2181 bytes
Hi Steve,

> Apr 27 09:40:20 news nnrpd[2881]: failed to strndup 18446744073709551615
> bytes at overdata.c line 388: Cannot allocate memory
> 
> I have lots of free memory, but not *that* much! :)

Very interesting.

This number is 2^64 - 1 so I bet that len is -1 in the following code:

overview_get_standard_header(const struct cvector *vector, unsigned int element)
{
    size_t len;

    p = vector->strings[element];
    len = vector->strings[element + 1] - vector->strings[element] - 1;

    field = xstrndup(p, len);


It would mean that we have an element of size 0 in the vector.

Did you recently add header fields in your overview?  (stuff in parameters
like extraoverviewadvertised in inn.conf)

Though it looks a bit strange to me because the error comes from the
code of standard headers (those that do not change!).

-- 
Julien ÉLIE

« La bigamie, c'est quand on a deux femmes ; et la monotonie, c'est
  quand on n'en a qu'une. » (Coluche)
Re: Memory allocation error
#84011
Author: Julien ÉLIE
Date: Wed, 27 Apr 2011 15:20
18 lines
1895 bytes
Hi Ray,

>> Apr 27 09:40:20 news nnrpd[2881]: failed to strndup 18446744073709551615
>> bytes at overdata.c line 388: Cannot allocate memory
>> I have lots of free memory, but not *that* much! :)
>
> I've seen similar problems with tradindexed overview and corrupt article
> numbers. If you are using a tradindexed overview, tdx-util might give an
> indication of the cause for this problem.

What do you mean by "corrupt article numbers"?  Do you have an example?
Exactly the same error (overdata.c line 388)?

-- 
Julien ÉLIE

« La bigamie, c'est quand on a deux femmes ; et la monotonie, c'est
   quand on n'en a qu'une. » (Coluche)
Re: Memory allocation error
#84010
Author: Steve Crook
Date: Wed, 27 Apr 2011 15:56
16 lines
1760 bytes
On Wed, 27 Apr 2011 17:19:03 +0200, Julien ÉLIE wrote in
Message-Id: <91qqf7FemjU1@mid.individual.net>:

> It would mean that we have an element of size 0 in the vector.
>
> Did you recently add header fields in your overview?  (stuff in parameters
> like extraoverviewadvertised in inn.conf)

Hi Julien.  No changes have been made to inn.conf for a long time,
probably years.

I know I have overview issues though and am probably
going to be forced to rebuild it. Some groups are not accepting new
articles and I'm getting occasional messages of:
Apr 27 03:37:51 news innd: buffindexed: block(1, 193322) not occupied
(index)
Re: Memory allocation error
#84013
Author: D. Stussy
Date: Wed, 27 Apr 2011 20:33
16 lines
1682 bytes
"Steve Crook" <steve@mixmin.net> wrote in message
news:slrnirfrgn.tbn.steve@news.mixmin.net...
> Not seen this error before:-
>
> Apr 27 09:40:20 news nnrpd[2881]: failed to strndup 18446744073709551615
> bytes at overdata.c line 388: Cannot allocate memory
>
> I have lots of free memory, but not *that* much! :)

Shame on you for not upgrading to a 64-bit system with at least one
tetrakaidecabyte!

Probably, you're passing a 64-bit negative number which is being treated as
unsigned.

Re: Memory allocation error
#84014
Author: Steve Crook
Date: Thu, 28 Apr 2011 08:34
16 lines
1743 bytes
On Wed, 27 Apr 2011 17:19:03 +0200, Julien ÉLIE wrote in
Message-Id: <91qqf7FemjU1@mid.individual.net>:

> Though it looks a bit strange to me because the error comes from the
> code of standard headers (those that do not change!).

This morning I have 15 of the same message, all between 05:20 and 05:27.

There are three cron jobs that run prior to that time:
00 03 * * * ~news/bin/news.daily expireover lowmark
00 04 * * * ~news/bin/ctlinnd -t 120 -s reload incoming.conf 'flush
cache'
00 05 * * * ~news/bin/actsyncd ~news/etc/actsync.cfg

I can run the last two manually without producing any errors so
news.daily is a likely culprit.
Re: Memory allocation error
#84017
Author: Julien ÉLIE
Date: Thu, 28 Apr 2011 10:47
40 lines
2680 bytes
Hi Steve,

> This morning I have 15 of the same message, all between 05:20 and 05:27.
> 
> There are three cron jobs that run prior to that time:
> 00 03 * * * ~news/bin/news.daily expireover lowmark
> 
> news.daily is a likely culprit.

Do you happen to have, at the end of your daily Usenet report, the time
at which expiry programs ran?

I for instance have in my report:

Expire messages:
expireover start jeudi 28 avril 2011, 04:15:29 (UTC+0200): (-N -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
    Article lines processed  3303126
    Articles dropped             546
    Overview index dropped       548
expireover end jeudi 28 avril 2011, 04:28:09 (UTC+0200)
lowmarkrenumber begin jeudi 28 avril 2011, 04:28:09 (UTC+0200): (/var/log/news/expire.lowmark)
lowmarkrenumber end jeudi 28 avril 2011, 04:28:09 (UTC+0200)
expirerm start jeudi 28 avril 2011, 04:28:09 (UTC+0200)
expirerm end jeudi 28 avril 2011, 04:28:14 (UTC+0200)
expire begin jeudi 28 avril 2011, 04:28:44 (UTC+0200): (-N -v1)
    Article lines processed  2956761
    Articles retained        2953644
    Entries expired             3117
expire end jeudi 28 avril 2011, 04:40:55 (UTC+0200)
all done jeudi 28 avril 2011, 04:40:55 (UTC+0200)


Something between 05:20 and 05:27 in yours?

-- 
Julien ÉLIE

« — I see the world didn't end yesterday.
  — Are you sure? »
  (Alan Moore, _Watchmen_)
Re: Memory allocation error
#84016
Author: Steve Crook
Date: Thu, 28 Apr 2011 11:45
23 lines
2044 bytes
On Thu, 28 Apr 2011 12:47:19 +0200, Julien ÉLIE wrote in
Message-Id: <91sutoFc0tU1@mid.individual.net>:

> Do you happen to have, at the end of your daily Usenet report, the time
> at which expiry programs ran?

Hi Julien, in my expire.log I have the following:
expire begin Thu Apr 28 03:00:52 BST 2011: (-v1)
    Article lines processed 15534519
    Articles retained       15480540
    Entries expired            53979
    Articles dropped               0
expire end Thu Apr 28 03:01:39 BST 2011
all done Thu Apr 28 03:01:39 BST 2011
expireover start Thu Apr 28 03:01:39 BST 2011
expireover end Thu Apr 28 04:10:30 BST 2011
lowmarkrenumber begin Thu Apr 28 04:10:30 BST 2011:
(/usr/local/news/log/expire.lowmark)
lowmarkrenumber end Thu Apr 28 04:10:31 BST 2011

I guess that disproves my previous supposition about that being the
cause.  :)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads