Thread View: news.software.nntp
6 messages
6 total messages
Started by ays
Sun, 13 Aug 2006 05:26
failed to malloc
Author: ays
Date: Sun, 13 Aug 2006 05:26
Date: Sun, 13 Aug 2006 05:26
38 lines
2087 bytes
2087 bytes
While attempting to rebuild history after restoring articles from backup:
command:
./makehistory -O
Error:
makehistory: failed to malloc 60000000 bytes at dbz.c line 1282: Cannot
allocate memory
Searched threads, found article with similar error suggesting:
Probably you need to use the -s flag.
Try `wc -l history` to get an estimate of what number to use.
Tried both (but I probably need more detailed instructions), same error
generated.
Bkgd: CentOS, manual install INN 2.4.3, received same error at make install,
redid make and make install having fixed nothing, did not get the malloc
error. Everything else proceeded, reader,conf, sys log set up, htpasswd,
ctlinnd newgroup. INN runs, properly auths, allows posting, but won't let me
restore the backup archive.
bash-2.05b$ free
total used free shared buffers
cached
Mem: 8302680 8261236 41444 0 478328 5744340
-/+ buffers/cache: 2038568 6264112
Swap: 16386292 8132 16378160
TIA,
ays
ps. man generates errors too, apologies if google lead to something out of
context and I missed manual content (web pointers appreciated)
--
Re: failed to malloc
Author: Jeffrey M. Vinocur
Date: Sun, 13 Aug 2006 15:32
Date: Sun, 13 Aug 2006 15:32
24 lines
1734 bytes
1734 bytes
In article <12dtdvpq2mp4i43@corp.supernews.com>, ays <serenity@OBVIOUSc-zone.net> wrote: > >makehistory: failed to malloc 60000000 bytes at dbz.c line 1282: Cannot >allocate memory > >Searched threads, found article with similar error suggesting: >Probably you need to use the -s flag. > >Try `wc -l history` to get an estimate of what number to use. > >Tried both (but I probably need more detailed instructions), same error >generated. Well, how many lines were in your history file? But, realistically, you should have no trouble allocating 60 MB anyway. What happens if you run `ulimit -a`? Is there an artificial limit on max memory size causing you trouble? -- Jeffrey M. Vinocur jeff@litech.org
Re: failed to malloc
Author: ays
Date: Sun, 13 Aug 2006 21:39
Date: Sun, 13 Aug 2006 21:39
61 lines
3444 bytes
3444 bytes
the history file is 0 bytes and contains nothing. -rw-r--r-- 2 news news 0 Aug 13 03:09 history -rw-r--r-- 1 news news 43 Aug 13 02:59 history.dir -rw-r--r-- 1 news news 0 Aug 13 02:59 history.hash -rw-r--r-- 1 news news 0 Aug 13 02:59 history.index -rw-r--r-- 2 news news 0 Aug 13 03:09 history.n -rw-r--r-- 1 news news 43 Aug 13 03:09 history.n.dir -rw-r--r-- 1 news news 0 Aug 13 03:09 history.n.hash -rw-r--r-- 1 news news 0 Aug 13 03:09 history.n.index There might be an artificial limit on memory set somewhere (no idea where to look to find out), as this is set up on a VPS account using CentOS and Virtuozza, but has 10gb storage and 512 ram allotted to it. I'm somewhat linux illiterate, but ulimit -a returns: root@host [/]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 133120 virtual memory (kbytes, -v) unlimited The results just add to my puzzlement. Everything appears as it should work fine, INN does work, I just can't restore the backup of posts. ays .. "Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:ebngm4$b42$1@puck.litech.org... > In article <12dtdvpq2mp4i43@corp.supernews.com>, > ays <serenity@OBVIOUSc-zone.net> wrote: > > > >makehistory: failed to malloc 60000000 bytes at dbz.c line 1282: Cannot > >allocate memory > > > >Searched threads, found article with similar error suggesting: > >Probably you need to use the -s flag. > > > >Try `wc -l history` to get an estimate of what number to use. > > > >Tried both (but I probably need more detailed instructions), same error > >generated. > > Well, how many lines were in your history file? > > But, realistically, you should have no trouble allocating 60 MB > anyway. What happens if you run `ulimit -a`? Is there an > artificial limit on max memory size causing you trouble? > > > -- > Jeffrey M. Vinocur > jeff@litech.org
Re: failed to malloc
Author: Jeffrey M. Vinocur
Date: Mon, 14 Aug 2006 07:50
Date: Mon, 14 Aug 2006 07:50
11 lines
1373 bytes
1373 bytes
In article <12dv6uv259ra536@corp.supernews.com>, ays <serenity@OBVIOUSc-zone.net> wrote: >the history file is 0 bytes and contains nothing. Okay, then figure out how many posts are in your backup, and use that number with the -s flag for makehistory. -- Jeffrey M. Vinocur jeff@litech.org
Re: failed to malloc
Author: ays
Date: Tue, 15 Aug 2006 07:32
Date: Tue, 15 Aug 2006 07:32
61 lines
3033 bytes
3033 bytes
No, the -s and correct numbers were of no avail. I gave up and uninstalled
the manual installation. I've managed to get the centOS to use rpm/yum and
install it again (I hate those types of installs, everything ends up in
folders named the same in 10 paths).
In redoing the inn.conf file in the new install, I noticed that in the
previous (malloc error install) this line was in the config file:
hismethod: hisv6
Also, on trying to install the new package, I received:
error: Failed dependencies:
inews is needed by inn-2.3.5-12
libc.so.6(GLIBC_2.3.4) is needed by inn-2.3.5-12
libdb-4.2.so is needed by inn-2.3.5-12
BUT when I tried to install the claimed dependencies, I was told
Errors reported doing trial run
package glibc-2.3.2-95.39 is already installed
Cannot find a package matching libdb-4.2.so
No actions to take
inews is installed and is the latest version.
No actions to take
Test transaction complete, Success!
inn 100 % done 1/1
Installed: inn 2.3.5-5.i386
I'm not sure if any of that helps anyone else understand this error better
than I, but I hope it does :)
Incidentally, on CentOS, that inn 2.3.5 version installed rc.news
incorrectly.
inncheck returns:
# /usr/lib/news/bin/rc.news:0: missing
rc.news was installed in /etc/ while all the other bin files went to the
bin, as expected, and the pathbin in inn.conf does correctly lead to the
bin.
Thanks Jeffrey :)
ays
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:ebpa0n$col$1@puck.litech.org...
> In article <12dv6uv259ra536@corp.supernews.com>,
> ays <serenity@OBVIOUSc-zone.net> wrote:
> >the history file is 0 bytes and contains nothing.
>
> Okay, then figure out how many posts are in your backup, and use
> that number with the -s flag for makehistory.
>
>
> --
> Jeffrey M. Vinocur
> jeff@litech.org
Re: make install failed to malloc
Author: ays
Date: Tue, 15 Aug 2006 21:20
Date: Tue, 15 Aug 2006 21:20
53 lines
2809 bytes
2809 bytes
Ok, the rpm 2.3.5 version didn't work either, I uninstalled and tried manual install, yet again. I used ./configure --with-perl this time make reported no errors. make install reported: /usr/local/news/db/active touch /usr/local/news/db/active.times chown news /usr/local/news/db/active.times chgrp news /usr/local/news/db/active.times chmod 0664 /usr/local/news/db/active.times ../support/install-sh -c -o news -g news -m 0664 -B .OLD newsgroups.minimal /usr/local/news/db/newsgroups touch /usr/local/news/db/history /usr/local/news/bin/makedbz -i -o makedbz: failed to malloc 60000000 bytes at dbz.c line 1282: Cannot allocate memory make[1]: *** [/usr/local/news/db/history] Error 1 make[1]: Leaving directory `/tempinn/inn-2.4.3/site' make: *** [install] Error 1 root@host [/tempinn/inn-2.4.3]# I found this: Error handlers shouldn't call warn or die unless great caution is taken to prevent infinite recursion. Also be aware that sysdie is called if malloc fails in xmalloc, so if the error handler needs to allocate memory, it must not use xmalloc or a related function to do so and it must not call die to report failure. ref: http://haven.stanford.edu/~eagle/software/inn/docs/hacking.html But I have no idea what that means or if it helps at all. I'm stumped :( ays "Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:ebpa0n$col$1@puck.litech.org... > In article <12dv6uv259ra536@corp.supernews.com>, > ays <serenity@OBVIOUSc-zone.net> wrote: > >the history file is 0 bytes and contains nothing. > > Okay, then figure out how many posts are in your backup, and use > that number with the -s flag for makehistory. > > > -- > Jeffrey M. Vinocur > jeff@litech.org
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