Article View: news.software.readers
Article #1519trn 2.2 dies accessing thread database via XTHREAD
From: Kean Stump
Date: Fri, 29 May 1992 19:12
Date: Fri, 29 May 1992 19:12
49 lines
3050 bytes
3050 bytes
[I've sent a copy of this to davidson a month or so ago, but he's swamped and
doesn't have time to cope with this yet. --kean]
Anybody got a hint or two?
I'm running trn and nntp 1.5.11 on a Sparc 1+, SunOS 4.1.1, Sun bundled C
compiler, debugging enabled. Trn dies with an internal error when accessing
a thread file via XTHREAD. The trn malloc (in safemalloc, util.c line 104
roughly) dies trying to allocate 710+ Mb of vm. My wee old sparc just doesn't
cut this one. 8))
What happens: we fire up trn (as the NNTP reader), proceed to the
point where you cope with the first newsgroup you want to read, like so:
Unread news in rec.aviation 497 articles
Unread news in alt.tv.ren-n-stimpy 189 articles
Unread news in comp.unix.bsd 8 articles
Unread news in comp.protocols.ppp 5 articles
Unread news in comp.protocols.misc 11 articles
etc.
******** 497 unread articles in rec.aviation--read now? [+ynq]
Select the + option (or return to get the + by default). Execution continues
to this killer if statement in rthreads.c:
if (!read_item(&author_cnts, (MEM_SIZE)total.author * sizeof (WORD))
|| !read_item(&strings, (MEM_SIZE)total.string1)
|| !read_item(&subject_cnts, (MEM_SIZE)total.subject * sizeof (WORD))
|| !read_item(&p_roots, (MEM_SIZE)total.root * sizeof (PACKED_ROOT))
|| !read_item(&p_articles, (MEM_SIZE)total.article * sizeof
(PACKED_ARTICLE))) { [stuff deleted --kean] }
The first read_item does its thing, calling safemalloc eventually and returning
just fine (I think). total.author is = 0 (zero) at this point.
The if statement then executes the next read_item (total.string1).
total.string1 = 771751936 at this point, and the safemalloc fails.
The trn code doesn't set total.string1 (that I can locate, anyhow). I'm
accessing news and mthreads via NNTP from a Sparc 2, SunOS 4.1.1 also.
Kean
--
Kean Stump (503)-737-4740
OSSHE Network Operations Center DOMAIN: kean@ucs.orst.edu
Oregon State University UUCP: hplabs!hp-pcd!orstcs!kean
*** OSU knows nothing about my opinions. Absolutely nothing. So, don't ask. ***
Technical Details
Message-ID:
<1992May29.191202.5348@talon.ucs.orst.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!spool.mu.edu!umn.edu!orstnews!argh.UCS.ORST.EDU!keanShow Full Headers
Complete Article Headers
Message-ID: <1992May29.191202.5348@talon.ucs.orst.edu> Subject: trn 2.2 dies accessing thread database via XTHREAD Date: Fri, 29 May 1992 19:12:02 +0000 From: kean@argh.UCS.ORST.EDU (Kean Stump) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!spool.mu.edu!umn.edu!orstnews!argh.UCS.ORST.EDU!kean Newsgroups: news.software.readers,news.software.nntp Article-I.D.: talon.1992May29.191202.5348 Sender: usenet@talon.ucs.orst.edu (Usenet News admin) Organization: University Computing Services, OSU Lines: 49 Nntp-Posting-Host: argh.ucs.orst.edu