🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #46139

Tin - memory leaks/hogging?

#46139
From: 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  \__

Technical Details
Message-ID: <78r3ut$4gi$1@nntp.ucs.ubc.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <78r3ut$4gi$1@nntp.ucs.ubc.ca>
Subject: Tin - memory leaks/hogging?
Date: Fri, 29 Jan 1999 00:00:00 +0000
From: rwhung@unixg.ubc.ca (Ryan Hung)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 438166637
Organization: University of British Columbia, Vancouver, B.C., Canada
Newsgroups: news.software.readers