🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Ryan Hung Fri, 29 Jan 1999 00:00
Tin - memory leaks/hogging?
#46139
Author: Ryan Hung
Date: Fri, 29 Jan 1999 00:00
29 lines
2039 bytes
I have been finding that the Tin pre-1.4 versions from 98/10 to 98/12 all 
share two frequent memory-related bugs.  Specifically, debugging points 
to the NSETRNG1() function in xrefs.c and newsrc.c, which under certain 
circumstances, decides to call malloc() and request huge blocks of 
memory.  The first instance is during reconnections to a news server 
(i.e. after timeout of a news connection).  It appears that the .newsrc 
file is re-read, at which time malloc() requests something like 200MB of 
memory.  The second instance is that for certain of our users (on the 
Vancouver CommunityNet), who have complicated .newsrc files (i.e. many 
groups not caught up, with large numbers of ranges for each newsgroup), 
Tin fails right on startup with an indicated error of:

Reading newsrc file...tin: memory exhausted trying to allocate 243644476
bytes in file ./newsrc.c line 622

I understand the direct cause of the error, as we have ulimit's set on 
maximum memory allocation.  However, I don't understand why Tin is 
allocation such huge blocks of memory.  I did send a bug report to 
tin-bugs@tin.org, but haven't received any response.  Any clues?

							Ryan.

--
_/  \__/  \__/  \__/  \__/  \__/  \__/  \__/rhung@vcn.bc.ca__/  \__/  \__/
 \_Apoptosis=programmed cell death/  \__/  \rwhung@interchange.ubc.ca_/  \__
_/ --you can't live without it!/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
 \__/  \__/  \__/  \__/  \__/  \__/  \__/  \My words Copyright (C) 1998  \__

Re: Tin - memory leaks/hogging?
#46170
Author: T.E.Dickey
Date: Sun, 31 Jan 1999 00:00
18 lines
1390 bytes
Ryan Hung <rwhung@unixg.ubc.ca> wrote:
> I have been finding that the Tin pre-1.4 versions from 98/10 to 98/12 all 
> share two frequent memory-related bugs.  Specifically, debugging points 

I see a different symptom (indexing an array out of bounds, apparently
due to someone having rewritten some of the threading code).  A '-1'
can look rather large as an unsigned number.  (I've sent 2-3 patches
for this to Urs, but there may be more -- in any case it's stable for
me now - you may want to compare with the code I'm running, under
my ftp area ftp://ftp.clark.net/pub/dickey/tin - I expect those changes
will be in the next pre-1.4 version).

-- 
Thomas E. Dickey
dickey@clark.net
http://www.clark.net/pub/dickey

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