[net.news] The 0 lines bug

jeff@alberta.UUCP (C. J. Sampson) (10/20/84)

[The 0 lines bug fools the line eater into thinking that...]

I may have located part of the 0 lines bug.  All articles that say they
have 0 lines, but actually do have them seem to come from ism780b (execpt
for one from ism780) and have notes headers.  I am not to sure about what 
makes vnews die, because it seems to do so for some articles, but not
others.  I have recieved four articles along this path:

alberta!ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses
	!allegra!mit-eddie!godot!ima!ism780b!<user>

and only one has died.  I have recieved two along this path:

alberta!ihnp4!zehntel!dual!amd!qumix!ittvax!decvax!genrad!mit-eddie!godot
	!ima!ism780b!<user>

and both have died.  Following are all the article headers.  (Articles with
a **** over the From line have crashed vnews with a Floating Exception.)
Does anybody have an explination?  It looks like ism780 and ism780b have a
bug in notes.

------------------------------------------------------------------

From ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780!darryl Wed Oct 17 22:17:39 1984
Relay-Version: version B 2.10.2 9/5/84; site alberta.UUCP
Path: alberta!ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780!darryl
From: darryl@ism780.UUCP
Newsgroups: net.lang.c
Subject: Re: Re: setjmp: read the manual
Message-ID: <408@ism780.UUCP>
Date: 18 Oct 84 04:17:39 GMT
Date-Received: Fri, 19-Oct-84 06:51:07 MDT
Lines: 0
Nf-ID: #R:sun:-173500:ism780:12500015:000:307
Nf-From: ism780!darryl    Oct 17 12:07:00 1984

****
From ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim Wed Oct 17 22:31:46 1984
Relay-Version: version B 2.10.2 9/5/84; site alberta.UUCP
Path: alberta!ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim
From: jim@ism780b.UUCP
Newsgroups: net.lang.c
Subject: Re: Re: setjmp: read the manual
Message-ID: <69@ism780b.UUCP>
Date: 18 Oct 84 04:31:46 GMT
Date-Received: Fri, 19-Oct-84 06:51:11 MDT
Lines: 0
Nf-ID: #R:sun:-173500:ism780b:25500042:000:976
Nf-From: ism780b!jim    Oct 16 19:43:00 1984

From ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim Wed Oct 17 22:32:41 1984
Relay-Version: version B 2.10.2 9/5/84; site alberta.UUCP
Path: alberta!ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim
From: jim@ism780b.UUCP
Newsgroups: net.lang.c
Subject: Re: Re: setjmp: read the manual
Message-ID: <70@ism780b.UUCP>
Date: 18 Oct 84 04:32:41 GMT
Date-Received: Fri, 19-Oct-84 06:51:16 MDT
Lines: 0
Nf-ID: #R:sun:-173500:ism780b:25500043:000:756
Nf-From: ism780b!jim    Oct 16 19:47:00 1984

From ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim Wed Oct 17 22:33:36 1984
Relay-Version: version B 2.10.2 9/5/84; site alberta.UUCP
Path: alberta!ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim
From: jim@ism780b.UUCP
Newsgroups: net.lang.c
Subject: Re: Re: setjmp: read the manual
Message-ID: <71@ism780b.UUCP>
Date: 18 Oct 84 04:33:36 GMT
Date-Received: Fri, 19-Oct-84 06:51:20 MDT
Lines: 0
Nf-ID: #R:sun:-173500:ism780b:25500044:000:683
Nf-From: ism780b!jim    Oct 16 19:54:00 1984

From ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim Wed Oct 17 22:34:36 1984
Relay-Version: version B 2.10.2 9/5/84; site alberta.UUCP
Path: alberta!ihnp4!mhuxj!mhuxn!mhuxh!mhuxi!mhuxm!sftig!sftri!sfmag!eagle!ulysses!allegra!mit-eddie!godot!ima!ism780b!jim
From: jim@ism780b.UUCP
Newsgroups: net.lang.c
Subject: Re: Must a NULL pointer be a 0 bit patte
Message-ID: <72@ism780b.UUCP>
Date: 18 Oct 84 04:34:36 GMT
Date-Received: Fri, 19-Oct-84 06:51:23 MDT
Lines: 0
Nf-ID: #R:wjh12:-52900:ism780b:25500045:000:220
Nf-From: ism780b!jim    Oct 16 19:57:00 1984

****
From ihnp4!zehntel!dual!amd!qumix!ittvax!decvax!genrad!mit-eddie!godot!ima!ism780b!jim Wed Oct 17 22:29:47 1984
Relay-Version: version B 2.10.2 9/5/84; site alberta.UUCP
Path: alberta!ihnp4!zehntel!dual!amd!qumix!ittvax!decvax!genrad!mit-eddie!godot!ima!ism780b!jim
From: jim@ism780b.UUCP
Newsgroups: net.lang.c
Subject: Re: 6 char externs and the ANSI standard
Message-ID: <67@ism780b.UUCP>
Date: 18 Oct 84 04:29:47 GMT
Date-Received: 20 Oct 84 01:57:24 GMT
Lines: 0
Nf-ID: #R:tekecs:-409500:ism780b:25500041:000:1832
Nf-From: ism780b!jim    Oct 16 19:17:00 1984

****
From ihnp4!zehntel!dual!amd!qumix!ittvax!decvax!genrad!mit-eddie!godot!ima!ism780b!paul Wed Oct 17 22:30:50 1984
Relay-Version: version B 2.10.2 9/5/84; site alberta.UUCP
Path: alberta!ihnp4!zehntel!dual!amd!qumix!ittvax!decvax!genrad!mit-eddie!godot!ima!ism780b!paul
From: paul@ism780b.UUCP
Newsgroups: net.lang.c
Subject: Re: Re: setjmp: read the manual
Message-ID: <68@ism780b.UUCP>
Date: 18 Oct 84 04:30:50 GMT
Date-Received: 20 Oct 84 01:57:28 GMT
Lines: 0
Nf-ID: #R:sun:-173500:ism780b:25500039:000:1643
Nf-From: ism780b!paul    Oct 16 14:29:00 1984

stevel@haddock.UUCP (10/24/84)

I am the notes administrator on ima. The feed for ism780 and
ism780b.  We will check into the problem. I currently have two
theories. Sugestions welcome.

1) The new version of notes we are running is dropping the lines
count.

2) I have noticed that n44a, someone we feed notes to, has
started feeding out into news land. It may be the n44a to
wjh12 link where things are failing.

the local map is
machine running notes. ima, haddock, ism780, ism780b, imd, cfib, n44a.
	haddock, and I think ism780 run the latest version of notes 1.6.?
machines running news. bbncca, cca, wjh12(?)j

bbncca ---
         |
         >>>>IMA --------------------------------------------------------
         |          |             |           |            |
cca -----         haddock       inmet        cfib         n44a
                    |                         |            | 
               --------------               ????          wjh12
            ISM780          IMD             2 machines     |
              |                                           Other news machines
           ISM780B

Steve Ludlum, decvax!yale-co!ima!stevel, {amd70|ihnp4!cbosgd}!ima!stevel
decwrl!amd70!ima!stevel, {uscvax|ucla-vax|vortex}!ism780!stevel
Interactive Systems, 7th floor, 441 Stuart st, Boston, MA 02116; 617-247-1155

stevel@haddock.UUCP (10/25/84)

We have found a new interface bug between notes and news, actually
the people at godot found the bug. Notes sends out articles in A news
format with no line count. When news 2.10.2 recieves this it 
inserts a line count of 0. Hence all notes are passed on with 
zero linecount. 

This means all articles passed from us to godot have propagated 
with a line count of 0. Since we feed out into two other machine
that currently run older versions of news, that actually count the
lines, it is problematical as to whether you will get a message
from us with a line count of zero. The problem has been fixed by
godot and I hope he will post the diffs to the net.

We will also look at making notes put out a line count. Please mail
me with any fixes you may have for this.

Steve Ludlum, decvax!yale-co!ima!stevel, {amd70|ihnp4!cbosgd}!ima!stevel
decwrl!amd70!ima!stevel, {uscvax|ucla-vax|vortex}!ism780!stevel
Interactive Systems, 7th floor, 441 Stuart st, Boston, MA 02116; 617-247-1155

bruce@godot.UUCP (Bruce Nemnich) (10/25/84)

I can't take credit; this is not a new bug, just the one for which a fix was
already distributed.
-- 
--Bruce Nemnich, Thinking Machines Corporation, Cambridge, MA
  {astrovax,cca,harvard,ihnp4,ima,mit-eddie,...}!godot!bruce, BJN@MIT-MC.ARPA

essick@uiucdcsb.UUCP (10/26/84)

I have only a few things to say about notes and the 0 line bug.

1) The current version of notes (1.6.2) outputs USENET standard headers
   when gatewaying from notesfiles to news.
   [I don't know if IMA is running this version. They do have a copy of
   the code].

2) The "Lines" header line does not appear in the USENET standard document.

-- Ray Essick, University of Illinois

mark@cbosgd.UUCP (Mark Horton) (10/29/84)

The 0 lines bug certainly can't be blamed on notesfiles.  It may
only occur when notesfiles deletes the Lines header, or fails to
generate it, but it's reasonable to expect rnews to count the
lines in this case and regenerate it.  It's a bug in inews, probably
even my fault.  (Ray is correct that Lines is not documented in
RFC850.  It probably should be, but it's not.)

	Mark

rees@apollo.uucp (Jim Rees) (11/09/84)

There seems to have been a lot of discussion recently about the 0 lines
bug.  At the risk of being redundant, I will post the "official" fix
once again.

In inews.c:

***************
*** 622,628
  				fgets(bfr, BUFLEN, stdin);
  
  				header.intnumlines -= 2;
! 				sprintf(header.numlines, "%d", header.intnumlines);
  
  				/* Strip trailing " - (nf)" */
  				if ((cp = rindex(header.title, '-')) != NULL

--- 643,651 -----
  				fgets(bfr, BUFLEN, stdin);
  
  				header.intnumlines -= 2;
! 				/* if no lines header, it'll be added later */
! 				if (header.numlines[0])
! 					sprintf(header.numlines, "%d", header.intnumlines);
  
  				/* Strip trailing " - (nf)" */
  				if ((cp = rindex(header.title, '-')) != NULL

dan@rna.UUCP (11/18/84)

Hi,
	Is there a fix for this Lines: 0 bug ? I have seen it when submitting
from notesfile.
	Thanks.
						Dan
						...cmcl2!rna!dan