🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Kean Stump Fri, 29 May 1992 19:12
trn 2.2 dies accessing thread database via XTHREAD
#1519
Author: Kean Stump
Date: Fri, 29 May 1992 19:12
49 lines
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. ***
Re: trn 2.2 dies accessing thread database via XTHREAD
#1526
Author: Rick Farris
Date: Sun, 31 May 1992 23:59
22 lines
1556 bytes
In article <1992May29.191202.5348@talon.ucs.orst.edu> kean@argh.UCS.ORST.EDU (Kean Stump) writes:

> 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))

I have what I think is a manifestation of a similar problem,
but in my case mthreads dies with a SIGSEGV -- segmentation
violation on a 386.  Har, har, har.  (The 386 has 4 gb
segments as I remember.)

In each case I've always been able to find errors listed in
mt.log, and if I remove the thread file and the offending
messages (header problems, generally) mthreads will run
again. 

--
Rick Farris  RF Engineering POB M Del Mar, CA 92014  voice (619) 259-6793
rfarris@rfengr.com     ...!ucsd!serene!rfarris      serenity bbs 259-7757
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