Article View: news.software.nntp
Article #56516Re: chan.c problem with INN 2.3.[012] on AIX 4.2
From: Russ Allbery
Date: Thu, 14 Feb 2002 19:49
Date: Thu, 14 Feb 2002 19:49
43 lines
2497 bytes
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.
Technical Details
Message-ID:
<yl7kpfq1x3.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<fa8727e8.0202141109.7875ddc@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <yl7kpfq1x3.fsf@windlord.stanford.edu> Subject: Re: chan.c problem with INN 2.3.[012] on AIX 4.2 Date: Thu, 14 Feb 2002 11:49:28 -0800 From: Russ Allbery <rra@stanford.edu> References: <fa8727e8.0202141109.7875ddc@posting.google.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 42 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1013716168 27117 171.64.13.23 (14 Feb 2002 19:49:28 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:EONfcPQ+ST3jwYLNNF71nYFA0Ls=