🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #11882

Re: "Hash table is invalid" in trn?

#11882
From: Wayne Davison
Date: Wed, 12 Oct 1994 16:28
23 lines
1316 bytes
According to Jon Bell <jtbell@presby.edu>:
> What causes trn to quit with the error message "Hash table is invalid"? 
> It happens here when someone is reading news.answers

There is a news article in news.answers that is almost all header, and
this triggered a bug in trn that is fixed by the following patch:


Index:head.c
@@ -263,6 +263,8 @@
     while (in_header) {
 	if (headbuf_size < artpos + LBUFLEN) {
+	    len = bp - headbuf;
 	    headbuf_size += LBUFLEN * 4;
 	    headbuf = saferealloc(headbuf,headbuf_size);
+	    bp = headbuf + len;
 	}
 #ifdef USE_NNTP

This fix will appear in trn 3.6, as soon as I get it released.
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CxKJ30.83n@borland.com>
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!bga.com!news.sprintlink.net!mhv.net!metro.atlanta.com!emory!gatech!concert!decwrl!borland.com!davison
References: <CxK4ur.LMI@presby.edu>

Show Full Headers
Complete Article Headers
Message-ID: <CxKJ30.83n@borland.com>
Subject: Re: "Hash table is invalid" in trn?
Date: Wed, 12 Oct 1994 16:28:11 GMT
From: davison@borland.com (Wayne Davison)
References: <CxK4ur.LMI@presby.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!bga.com!news.sprintlink.net!mhv.net!metro.atlanta.com!emory!gatech!concert!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 23