🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Amin S. Kassem Wed, 27 Mar 1996 00:00
Bad overview record in TIN. Why??
#20190
Author: Amin S. Kassem
Date: Wed, 27 Mar 1996 00:00
63 lines
3733 bytes
I keep getting "BAD OVERVIEW RECORD for certain newsgroups.
What does it mean and how can I fix it???


Example:

     103        alt.amiga.slip
     104   267  alt.angst
     105    45  alt.animation.warner-bros
     106    77  alt.answers
     107    41  alt.appalachian
     108   141  alt.aquaria
     109    60  alt.archery
     110    29  alt.architecture
     111    11  comp.os.msdos.desqview

       <n>=set current to n, TAB=next unread, /=search pattern, c)atchup,
    g)oto, j=line down, k=line up, h)elp, m)ove, q)uit, r=toggle all/unread,
      s)ubscribe, S)ub pattern, u)nsubscribe, U)nsub pattern, y)ank in/out

Bad overview record 'fan.rush-limbaugh:364882 alt.fashion:38322 alt.feminism:16
Bad overview record 'linton:253477 alt.rap:78805 alt.religion.kibology:113992 a
Bad overview record '365045 alt.fashion:38398 alt.feminism:169228 alt.music.alt
Bad overview record '1 soc.culture.canada:116482 can.general:93406 bc.general:4
Bad overview record 'itics.economics:53178 alt.president.clinton:77116
Bad overview record 'iety.conservatism:41981 alt.politics.perot:41429 alt.flame
Bad overview record 'ach.clinton:49015 alt.society.conservatism:41982 alt.polit
Bad overview record 'nking.punishment:5282 alt.politics.clinton:253687 alt.rap:
Bad overview record 'es:130317 alt.cyberpunk:66536 alt.drugs:169611 alt.fan.rus
Bad overview record '.punishment:5285
Bad overview record 'tnet.second-coming.real-soon-now:17840 alt.music.black-met
Bad overview record 'tism:42019 alt.politics.perot:41462 alt.flame.rush-limbaug
Bad overview record '58872 alt.motherjones:16760
Bad overview record 'impeach.clinton:49064 alt.rush-limbaugh:122616 alt.fan.ron
Bad overview record '61 talk.politics.crypto:15997 alt.politics.usa.constitutio
Bad overview record '204505 alt.politics.usa.congress:32848 soc.culture.canada:
Bad overview record 'ls.spanking:19480 alt.personals.spanking.punishment:5288 a
Bad overview record 'cs.clinton:253820 alt.politics.usa.newt-gingrich:56548 alt
Bad overview record 's.usa.misc:77492 alt.activism:168927 alt.politics.radical-
Bad overview record 'sm:168935 alt.politics.radical-left:93683 talk.politics.mi
Bad overview record (Date) 'tccn.com alt.politics.reform:69094 alt.politics.eco
Bad overview record '3262 alt.president.clinton:77182 alt.impeach.clinton:49122
Bad overview record ' alt.politics.economics:53263 alt.president.clinton:77183
Bad overview record 'ich:56579 alt.politics.usa.republican:204659 alt.president
Bad overview record 'sonals:195784 alt.personals.bondage:52882 alt.personals.sp
Bad overview record 'ls.spanking.punishment:5299
Bad overview record '.usa.misc:77577 alt.politics.usa.newt-gingrich:56608 alt.p
'



--
				 \|||/
 				 (0^0)
==============================oOO=(_)=OOo========+=========================
| Amin Kassem - Network/Systems Administrator    | e-mail: amin@tccn.com  | 
| Exchange Data, Inc. - Minneapolis, MN.         |         akassem@mr.net |
| voice: (612)332-2101 - Fax: (612)334-5997      | I would give up an arm | 
| http://www.tccn.com ; A legend in my spare time| to be ambidextrous!    |
=================================================+=========================

Re: Bad overview record in TIN. Why??
#20198
Author: Paul S. Haring
Date: Thu, 28 Mar 1996 00:00
22 lines
1555 bytes
>I keep getting "BAD OVERVIEW RECORD for certain newsgroups.
>What does it mean and how can I fix it???

My god, this is one hell of a FAQ, it gets asked at least once a week!!!!!

Tin 1.2 assumed (rightfully) that overview records would never be larger 
than 1K, and allocated a buffer of that size. 

Recently, many clueless individuals have started cross posting articles to 
100's of groups (usually ads, spams, or JPGs), so the overview records have 
gotten very large.  This cross posting practice is what's at fault, it slows 
up every newsreader/server out there and wastes everyone's time.

You can fix this by recompiling tin and increasing the size of the buffer.  
I forget exactly which code unit it's in , but it's easy to find, just grep 
for the error message and scan the code, you'll see it right away.

Tin 1.3 has already enlarged the buffer, and it doesn't exhibit this 
"problem".

Re: Bad overview record in TIN. Why??
#20229
Author: Angus March (VE2UFP)
Date: Fri, 29 Mar 1996 00:00
24 lines
1913 bytes
It was a dark and stormy night, when Paul S. Haring wrote:
: You can fix this by recompiling tin and increasing the size of the buffer.  
: I forget exactly which code unit it's in , but it's easy to find, just grep 
: for the error message and scan the code, you'll see it right away.
	I was told by someone to look in art.c for the variable "buf" and
"increase [it's] size". I found a variable buf of the form 
char buf[SOMETHING] where SOMETHING was a macro. I increased it to something
really big, recompiled it, and ran it, and nothing! It didn't make a
difference! So I asked him about it, and he told me that I should recompile
Tind. So I asked my sys admin if Tind was even running, and he sed no. 
	So now what? They guy that was helping me out before hasn't gotten
back to me, so I'm stranded. Does anyone know any better?

--
			http://www.ece.concordia.ca/~ac_march/addr.html
  _________        ___________       angus@hamgate.concordia.ca
 |.........|      |Attempting |
 |: DON'T :|      |recovery...|		    Angus March
 |: PANIC :|      |1067 pages |		The Ultra-Mind Dragon
 |:.......:|      |unrecovered|		    -==(UDIC)==-
 |---------|___ __|___________|__
/___________\  |_________________| Murphy ain't seen nothing yet

Re: Bad overview record in TIN. Why??
#20246
Author: Greg Berigan
Date: Fri, 29 Mar 1996 00:00
33 lines
2046 bytes
In article <4jbkrk$7vh@jeeves.tccn.com>, amin@tccn.com (Amin S. Kassem) wrote:

>I keep getting "BAD OVERVIEW RECORD for certain newsgroups.
>What does it mean and how can I fix it???

It means someone has excessively crossposted and now you're suffering from
their behavior.

The real problem is that tin has a limit of 1024 characters for each
overview file entry.  When someone massively crossposts, the Xref header
becomes very big, exceeding 1024 characters.  Tin can't handle it any
spouts its error messages out to you.

There is a patch available.  Contact your system administrator and ask
them to locate and apply the patch.  (It's just bumping up the 1024 limit
so that the error is less likely to occur, but still can occur on even
more excessively crossposted messages.)  Alternatively, you could compile
your own patched copy and use it.  In that case, you might as well get the
latest 1.3beta version which has it fixed already.  An improved version of
1.3beta-950824 can be found at:

        ftp://ftp.akk.uni-karlsruhe.de/pub/tin/

For plain tin, see the Usenet pages on my home page cited below.

-- 
         _-<#)-=# http://cse.unl.edu/~gberigan/ (Greg Berigan)
     ___/___
  _-~_--<###)     $250,000 and two-year prison terms for using "obscene, lewd,
<~c>' __--<       lascivious, filthy, or indecent" language on the Internet in
 \_--=____#)      a manner intended to annoy or harass?  Watch those flames!

Re: Bad overview record in TIN. Why??
#20250
Author: billy
Date: Fri, 29 Mar 1996 00:00
234 lines
6768 bytes
Paul S. Haring <paul_haring@jhuapl.edu> writes:

> >I keep getting "BAD OVERVIEW RECORD for certain newsgroups.
> >What does it mean and how can I fix it???

> My god, this is one hell of a FAQ, it gets asked at least once a week!!!!!

Yes, I'm definitely looking forward to the day BETA is dropped from
tin v1.3.. In the meantime, I'll repost what I've learned from lots
of reading heree plus trying it all myself for v1.2.

Billy Y..

This applies to tin v1.2 pl2.  First and easiest is simply increasing 
the size of the buffer that's being overrun.  In art.c do this -

read_xover_file (group_name, min, max)
        char *group_name;
        long min;
        long max;
{
        char    *p, *q;
        char    buf[4096];             /* <<<--- was 1024 */
        char    art_full_name[LEN];
        char    art_from_addr[LEN];
        FILE    *fp;

Then, as long as you have it open, dump the bad overview error
message code for references (this is most of the problem but tin
reads this line from the article file itself), number of bytes
and message id (which tin also gets from the article).  No point
in issuing error messages for something that isn't even used..

They are father down in this same function, search for 'SKIP'
and you'll land on the message id - references and number of
bytes immediately follow.  Just comment out the bad overview
error message lines.

Or, you can try the appended patch which mallocs chunks of buffer
as needed.  I notice no significant increase in memory used by
tin (which already uses plenty) from the above patch though, and
it is ever so slightly faster than that below, which does make a
difference on groups with thousands of articles in them.  One
godd example in misc.jobs.offered, where a majority of articles
are crossposted like crazy and the overview file is quite big.

Newsgroups: news.software.nntp
>From: Tim Pierce <twpierce@midway.uchicago.edu>
Subject: Re: Need Help: "Bad Overview Records"
Date: Sun, 21 Jan 1996 16:56:10 GMT
[...]
I wrote a patch to TIN 1.2 to dynamically resize the overview
buffers, but because I don't actually use TIN myself I haven't
tested it.  Feel free.

*** art.c.orig	Wed Dec 13 12:24:43 1995
--- art.c	Sun Dec 17 10:04:52 1995
***************
*** 1137,1143 ****
  	long max;
  {
   	char	*p, *q;
! 	char	buf[1024];
   	char	art_full_name[LEN];
  	char	art_from_addr[LEN];
  	FILE	*fp;
--- 1137,1143 ----
  	long max;
  {
   	char	*p, *q;
! 	char	*buf;
   	char	art_full_name[LEN];
  	char	art_from_addr[LEN];
  	FILE	*fp;
***************
*** 1152,1159 ****
  		return FALSE;
  	}
   
! 	while (fgets (buf, sizeof (buf), fp) != (char *) 0) {
  		if (strcmp (buf, ".") == 0) {
  			break;
  		}
   
--- 1152,1160 ----
  		return FALSE;
  	}
   
! 	while ((buf = safe_fgets (fp)) != (char *) 0) {
  		if (strcmp (buf, ".") == 0) {
+ 			free (buf);
  			break;
  		}
   
***************
*** 1173,1178 ****
--- 1174,1180 ----
  		q = strchr (p, '\t');
  		if (q == (char *) 0) {
  			error_message ("Bad overview record '%s'", buf);
+ 			free (buf);
  			continue;
  		} else {
  			p = q + 1;
***************
*** 1185,1190 ****
--- 1187,1193 ----
  		if (q == (char *) 0) {
  			error_message ("Bad overview record (Subject) '%s'", p);
  			debug_nntp ("read_xover_file", "Bad overview record (Subject)");
+ 			free (buf);
  			continue;
  		} else {
  			*q = '\0';
***************
*** 1199,1204 ****
--- 1202,1208 ----
  		if (q == (char *) 0) {
  			error_message ("Bad overview record (From) '%s'", p);
  			debug_nntp ("read_xover_file", "Bad overview record (From)");
+ 			free (buf);
  			continue;
  		} else {
  			*q = '\0';
***************
*** 1217,1222 ****
--- 1221,1227 ----
  		if (q == (char *) 0) {
  			error_message ("Bad overview record (Date) '%s'", p);
  			debug_nntp ("read_xover_file", "Bad overview record (Date)");
+ 			free (buf);
  			continue;
  		} else {
  			*q = '\0';
***************
*** 1231,1236 ****
--- 1236,1242 ----
  		if (q == (char *) 0) {
  			error_message ("Bad overview record (Msg-id) '%s'", p);
  			debug_nntp ("read_xover_file", "Bad overview record (Msg-id)");
+ 			free (buf);
  			continue;
  		}
  		p = q + 1;
***************
*** 1242,1247 ****
--- 1248,1254 ----
  		if (q == (char *) 0) {
  			error_message ("Bad overview record (References) '%s'", p);
  			debug_nntp ("read_xover_file", "Bad overview record (References)");
+ 			free (buf);
  			continue;
  		}
  		p = q + 1;
***************
*** 1253,1258 ****
--- 1260,1266 ----
  		if (q == (char *) 0) {
  			error_message ("Bad overview record (Bytes) '%s'", p);
  			debug_nntp ("read_xover_file", "Bad overview record (Bytes)");
+ 			free (buf);
  			continue;
  		} else {
  			*q = '\0';
***************
*** 1267,1272 ****
--- 1275,1281 ----
  			if (!*p || (*p < '0' && *p > '9')) {
  				error_message ("Bad overview record (Lines) '%s'", p);
  				debug_nntp ("read_xover_file", "Bad overview record (Lines)");
+ 				free (buf);
  				continue;
  			}
  		} else {
***************
*** 1305,1310 ****
--- 1314,1320 ----
  		debug_print_header (&arts[top]);
   
  		top++;
+ 		free (buf);
  	}
   	fclose (fp);
   	
***************
*** 1688,1690 ****
--- 1698,1741 ----
  		range = range / 2;
  	}
  }
+ 
+ /*
+  * safe_fgets
+  *
+  * Return the next line from a file, regardless of how long it is.
+  */
+ 
+ char *
+ safe_fgets (f)
+      FILE *f;
+ {
+   char *buf   = NULL;
+   int   total = 0;
+   int   i     = 0;
+   int   chunk = 256;
+ 
+   buf = (char *) malloc (chunk * sizeof(char));
+ 
+   while (1) {
+ 
+     if (fgets (buf + total, chunk, f) == NULL)
+       {
+ 	if (total) {
+ 	  buf[strlen(buf)] = '\0';
+ 	  return buf;
+ 	} else
+ 	  return NULL;
+       }
+ 
+     if (strlen (buf + total) < chunk - 1)
+       {
+ 	buf[strlen(buf)] = '\0';
+ 	return buf;
+       }
+ 
+     total += chunk;
+ 
+     buf = (char *) realloc (buf, total * sizeof(char));
+   }
+ }
+ 


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