🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Colin Smith Thu, 14 Feb 2002 19:09
chan.c problem with INN 2.3.[012] on AIX 4.2
#56511
Author: Colin Smith
Date: Thu, 14 Feb 2002 19:09
44 lines
2000 bytes
Hi,

I'm trying to get INN running on and AIX 4.2 box. The build appears to
run fine but when starting INN with rc.news, it logs the following
message to syslog and dies:

-----
Feb 14 18:49:33 midspf05.euro.csg.mot.com Message forwarded from
midspe05: innd:
 SERVER cant malloc 4294966484 bytes at line 146 of chan.c: No such
file or dire
ctory
-----

I've looked through the readme, searched google but can't see anything
similar. I had a look at line 146 in chan.c and it's a NEW() macro
which appears to resolve to xmalloc in macros.h:

#define NEW(T, c)               xmalloc(sizeof(T) * (c), __FILE__,
__LINE__)

However, the manpage for xmalloc on our AIX boxes defines xmalloc as:
caddr_t xmalloc (size, align, heap)
int size;
int align;
caddr_t heap;

Parameters
size    Specifies the number of bytes to allocate.
align   Specifies the alignment characteristics for the allocated
memory.
heap    Specifies the address of the heap from which the memory is to
be allocated.


Has anyone else seen this? Have a workaround?


Anyway, thanks in advance for any help.

Yours,
slightly confused,
Colin Smith.
Re: chan.c problem with INN 2.3.[012] on AIX 4.2
#56516
Author: Russ Allbery
Date: Thu, 14 Feb 2002 19:49
43 lines
2497 bytes
Colin Smith <Colin.Smith@motorola.com> writes:

> I'm trying to get INN running on and AIX 4.2 box. The build appears to
> run fine but when starting INN with rc.news, it logs the following
> message to syslog and dies:

> -----
> Feb 14 18:49:33 midspf05.euro.csg.mot.com Message forwarded from
> midspe05: innd:
>  SERVER cant malloc 4294966484 bytes at line 146 of chan.c: No such
> file or dire
> ctory
> -----

> I've looked through the readme, searched google but can't see anything
> similar. I had a look at line 146 in chan.c and it's a NEW() macro which
> appears to resolve to xmalloc in macros.h:

> #define NEW(T, c)               xmalloc(sizeof(T) * (c), __FILE__,
> __LINE__)

> However, the manpage for xmalloc on our AIX boxes defines xmalloc as:
> caddr_t xmalloc (size, align, heap)

That doesn't matter; INN supplies its own xmalloc which will take
precedence over the system one.  The message that you saw is proof that
the correct xmalloc was called.

It sounds like getfdlimit() is returning something obscenely large for
some reason, and INN is therefore trying to allocate a huge amount of
memory for the channel table.  Try setting innflags in inn.conf to
something like:

    -o 200

and see if that helps.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: chan.c problem with INN 2.3.[012] on AIX 4.2
#56526
Author: Colin Smith
Date: Fri, 15 Feb 2002 12:51
37 lines
2044 bytes
Russ Allbery <rra@stanford.edu> wrote in message news:<yl7kpfq1x3.fsf@windlord.stanford.edu>...

> It sounds like getfdlimit() is returning something obscenely large for

Yeah, that looks right, further up the log:
-----
Feb 15 11:45:09 informix-old.euro.csg.mot.com Message forwarded from midspe02: i
nnd: SERVER descriptors 2147483647
-----

OK, I see where getfdcount is called.

> some reason, and INN is therefore trying to allocate a huge amount of
> memory for the channel table.  Try setting innflags in inn.conf to
> something like:
> 
>     -o 200
> 
> and see if that helps.

No joy, but from the AIX getrlimit man page...

-----
RLIMIT_NOFILE   This is a number one greater than the maximum value
that the system may assign to a newly-created descriptor. AIX does
not enforce limits on this resource limits on this resource and always
returns RLIM_INFINITY for this limit.
-----

LOL. That'll be the culprit then. :)

On lying to INN and telling it I don't HAVE_RLIMIT, in the config.h, it works.
Thanks for the pointers.

regards,
Colin Smith
Re: chan.c problem with INN 2.3.[012] on AIX 4.2
#57617
Author: Russ Allbery
Date: Mon, 25 Mar 2002 02:43
21 lines
1851 bytes
Colin Smith <Colin.Smith@motorola.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> It sounds like getfdlimit() is returning something obscenely large for

> Yeah, that looks right, further up the log:
> -----
> Feb 15 11:45:09 informix-old.euro.csg.mot.com Message forwarded from midspe02: i
> nnd: SERVER descriptors 2147483647
> -----

I've added a hack to CURRENT and STABLE to fix this for now and will go
back and look at it again when I have a chance to really think about how
channel setup in innd works.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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