🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
11 messages
11 total messages Started by The Bounty Hunter Tue, 15 May 1990 16:40
Another 6.4.1 bug (unsubscribe)
#398
Author: The Bounty Hunter
Date: Tue, 15 May 1990 16:40
16 lines
1206 bytes
here's a strange one. If you try to "U"nsubscribe to the last group nn
views, it won't take. For instance. I'm trying to unsubscribe to
alt.fans.monty-python, which happens (thanks to a >alt in my sequence)
be the last group I see. type 'U', and it gives you the normal prompt. type
'Y' and nn exits normally. Run nn again, and the messages that were in that
group pop up again. The newsrc is not updated.



-- 

Chuq Von Rospach   <+>   chuq@apple.com   <+>   [This is myself speaking]

I regret to announce that--though, as I said, eleventy-one years is far too
short a time to spend among you--this is the end. I am going. Good-bye.
		-- Bilbo
6.4.2 bug Re: Another 6.4.1 bug (unsubscribe)
#397
Author: The Bounty Hunter
Date: Tue, 15 May 1990 22:32
18 lines
1344 bytes
[this bug is still extant in 6.4.2]

chuq@Apple.COM (The Bounty Hunter) writes:

>here's a strange one. If you try to "U"nsubscribe to the last group nn
>views, it won't take. For instance. I'm trying to unsubscribe to
>alt.fans.monty-python, which happens (thanks to a >alt in my sequence)
>be the last group I see. type 'U', and it gives you the normal prompt. type
>'Y' and nn exits normally. Run nn again, and the messages that were in that
>group pop up again. The newsrc is not updated.

-- 

Chuq Von Rospach   <+>   chuq@apple.com   <+>   [This is myself speaking]

I regret to announce that--though, as I said, eleventy-one years is far too
short a time to spend among you--this is the end. I am going. Good-bye.
		-- Bilbo
Re: 6.4.2 bug(s)
#399
Author: The Bounty Hunter
Date: Wed, 16 May 1990 05:28
39 lines
2323 bytes
>[this bug is still extant in 6.4.2]

Actually, I just noticed another instance of it -- if you're on the last
available article and do something that creates a kill file entry, nn moves
to the next article (which doesn't exist) nn exits. The kill file is
updated, but the .newsrc isn't, so the next time you bring up nn, the
article you used to build the kill file shows up again (in my case, since
it was a select. If it were a kill, it'd be killed quietly and you wouldn't
know better).

This seems to be a generic bug in updating the newsrc on the last article
when the action taken is anything other than the  standard 'go to next
article'.

I haven't had time to track this one down yet, but I will if I get the chance.

>chuq@Apple.COM (The Bounty Hunter) writes:

>>here's a strange one. If you try to "U"nsubscribe to the last group nn
>>views, it won't take. For instance. I'm trying to unsubscribe to
>>alt.fans.monty-python, which happens (thanks to a >alt in my sequence)
>>be the last group I see. type 'U', and it gives you the normal prompt. type
>>'Y' and nn exits normally. Run nn again, and the messages that were in that
>>group pop up again. The newsrc is not updated.

>-- 

>Chuq Von Rospach   <+>   chuq@apple.com   <+>   [This is myself speaking]

>I regret to announce that--though, as I said, eleventy-one years is far too
>short a time to spend among you--this is the end. I am going. Good-bye.
>		-- Bilbo
-- 

Chuq Von Rospach   <+>   chuq@apple.com   <+>   [This is myself speaking]

I regret to announce that--though, as I said, eleventy-one years is far too
short a time to spend among you--this is the end. I am going. Good-bye.
		-- Bilbo
Re: Another 6.4.1 bug (unsubscribe)
#406
Author: Kim F. Storm
Date: Thu, 17 May 1990 09:19
21 lines
1504 bytes
chuq@Apple.COM (The Bounty Hunter) writes:

>here's a strange one. If you try to "U"nsubscribe to the last group nn
>views, it won't take. For instance. I'm trying to unsubscribe to
>alt.fans.monty-python, which happens (thanks to a >alt in my sequence)
>be the last group I see. type 'U', and it gives you the normal prompt. type
>'Y' and nn exits normally. Run nn again, and the messages that were in that
>group pop up again. The newsrc is not updated.

Not so strange Mr. Bounty Hunter :-)

The code which does the 'U'nsubscribe when "keep-unsubscribed" is false
forgot to set the "dirty bit" on the incore copy of .newsrc.  This doesn't
matter much when there are other groups to be read later on, but if it is
the last group: no .newsrc update.

This is fixed in patch #3 (and still counting :-)

-- 
  No news is good news,		Kim F. Storm <storm@texas.dk>
    but nn is better!		Texas Instruments A/S, Denmark
Re: 6.4.2 bug(s) -- .newsrc problems
#421
Author: Jeremy Brest
Date: Fri, 18 May 1990 15:26
8 lines
1160 bytes
I've found that my newsrc gets corrupted -- lines, containing groups
that I subscribe to, get lost. I think this behavior is related to the
unsubscribe problem, but I've been unable to track it down yet.
Anyone else have this problem?

  ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..
        Jeremy Brest, Swarthmore College, Swarthmore, PA  19081 
 jeremy@cs.swarthmore.edu, jeremy@swatsun.uucp, jeremy@swarthmr.bitnet
Re: 6.4.2 bug(s) -- .newsrc problems
#420
Author: Jeremy Brest
Date: Fri, 18 May 1990 22:50
32 lines
1864 bytes
I've done a bit of looking and here's what I've found.  I took the
newsrc file that nn generated for me and kept only the lines with a
":" in them to keep the file below 8k (a limit mentioned in the
release notes).  Nonetheless, the problem occurs.

What happens is that after seeing a group, my .newrc file is reordered
and many lines are missing.  I found no logic to which groups are
missing.

Here's a script showing the behavior: 

	Script started on Fri May 18 18:25:44 1990

	byzantium% ls -l .newsrc.mycreation 
	      78 .newsrc.mycreation
	byzantium% grep "\:" .newsrc.mycreation | wc -l
	      78
	byzantium% cp .newsrc.mycreation .newsrc
	byzantium% nn
	
	.... enter nn, space bar through one group ....
	
	byzantium% wc -l .newsrc
	      22 .newsrc
	byzantium% grep "\:" .newsrc | wc -l
	      22
	byzantium% ls -l .newsrc.mycreation 
	-rw-r--r--  1 jeremy       1862 May 18 18:19 .newsrc.mycreation
	byzantium% ls -l .newsrc
	-rw-r--r--  1 jeremy        512 May 18 18:26 .newsrc
	
	script done on Fri May 18 18:28:09 1990
Re: 6.4.2 bug(s) -- .newsrc problems
#426
Author: Kim F. Storm
Date: Mon, 21 May 1990 10:23
24 lines
1682 bytes
jeremy@cs.swarthmore.edu (Jeremy Brest) writes:

>I've done a bit of looking and here's what I've found.  I took the
>newsrc file that nn generated for me and kept only the lines with a
>":" in them to keep the file below 8k (a limit mentioned in the
>release notes).  Nonetheless, the problem occurs.

There is a misunderstanding here:  The size of .newsrc is only limited
by the size of your disk and the virtual memory size (for the incore
copy).  But there is a limit of 8k *per line* in release 6.4.

>What happens is that after seeing a group, my .newrc file is reordered
>and many lines are missing.

Maybe you could send me the "before" and "after" .newsrc files, and
I will have a look at them.  Also include the personal and global init files.

Just for the record, I haven't had other reports about corrupted or reordered
.newsrc files (but I know there are some problems with last group/last
article as reported here earlier).

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Re: 6.4.2 bug(s) -- .newsrc problems
#433
Author: Tom Fitzgerald
Date: Mon, 21 May 1990 23:31
22 lines
1782 bytes
jeremy@cs.swarthmore.edu (Jeremy Brest) writes:
> I've found that my newsrc gets corrupted -- lines, containing groups
> that I subscribe to, get lost. I think this behavior is related to the
> unsubscribe problem, but I've been unable to track it down yet.

Same problem here, but I don't see any connection to the unsubscribe
problem.  Lots of lines, both subscribed and unsubscribed, disappear from
the .newsrc after I've run nn.  Sometimes I can make nn put them back by
explicitly reading those groups, usually not.

It seems to be happening when nn writes the .newsrc back out after a run.
The update_rc code is definitely doing the right thing, and in the first
run of nn, it knows which groups are subscribed and what articles I've
read from them.  But after I've exited from the first run, the lines have
disappeared from the .newsrc.

This is on a VAX running sys V.2.  The problem persists through lots of
different settings for tidy-newsrc, new-group-action and keep-unsubscribed.

---
Tom Fitzgerald      Wang Labs           fitz@wang.com
1-508-967-5278      Lowell MA, USA      ...!uunet!wang!fitz
Re: 6.4.2 bug(s) -- .newsrc problems
#441
Author: Tom Fitzgerald
Date: Tue, 22 May 1990 19:26
30 lines
2208 bytes
jeremy@cs.swarthmore.edu (Jeremy Brest) writes:
> I've found that my newsrc gets corrupted -- lines, containing groups
> that I subscribe to, get lost. I think this behavior is related to the
> unsubscribe problem, but I've been unable to track it down yet.

The same thing happened here.  It's a bug, and it's nasty.

The cause of the problem was that our active file had a newsgroup
which was aliased to another newsgroup, using a "=newsgroup" as the
4th field of the appropriate line in the active file.  (We're
running C-news).  In our case, comp.sys.masscomp was aliased to
comp.sys.concurrent.  The end result was that all the lines in
everyone's .newsrc's between these 2 group names were silently
discarded.

The problem itself is that visit_rc_file seems to expect different
behavior from 'lookup' than it is getting.  When 'lookup' is called
with newsgroups comp.sys.masscomp and comp.sys.concurrent, both times
it returns a pointer to the group_header for comp.sys.concurrent.
The second time it returns, visit_rc_file overwrites the newsrc_seq
field in the structure set after the first call, and a whole block of
group_headers disappear from the rc_sequence chain.

I don't know what the right solution for this is.  I just deleted
the comp.sys.masscomp newsgroup from our active and GROUPS files, and
rebuilt the database.

---
Tom Fitzgerald      Wang Labs           fitz@wang.com
1-508-967-5278      Lowell MA, USA      ...!uunet!wang!fitz
Re: 6.4.2 bug(s) -- .newsrc problems
#452
Author: Jeremy Brest
Date: Wed, 23 May 1990 19:27
16 lines
1594 bytes
In <an2e0h.e7l@wang.com> fitz@wang.com (Tom Fitzgerald) writes:

>I don't know what the right solution for this is.  I just deleted
>the comp.sys.masscomp newsgroup from our active and GROUPS files, and
>rebuilt the database.

I identified the problem as the same here.  Unfortunately, we don't
think that it's a good idea to delete the alias for comp.sys.mac to
comp.sys.mac.misc.  My own solution was to delete the duplicate groups
from my own .newsrc file.  Other users are on their own!

Thanks, Tom, for tracking that down.

  ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..   ..
        Jeremy Brest, Swarthmore College, Swarthmore, PA  19081 
 jeremy@cs.swarthmore.edu, jeremy@swatsun.uucp, jeremy@swarthmr.bitnet
Re: 6.4.2 bug(s) -- .newsrc problems
#467
Author: Kim F. Storm
Date: Fri, 25 May 1990 16:43
24 lines
1587 bytes
fitz@wang.com (Tom Fitzgerald) writes:

>jeremy@cs.swarthmore.edu (Jeremy Brest) writes:
>> I've found that my newsrc gets corrupted 

>The cause of the problem was that our active file had a newsgroup
>which was aliased to another newsgroup, using a "=newsgroup" as the
>4th field of the appropriate line in the active file.  

This is definitely a severe bug in the .newsrc handling.  But with such
good pointers to the cause of the problem, it is easy to fix, and I will
soon have a patch #4 ready which will fix this and some other (minor)
problems.

For the time being, the best solution is to remove the aliased groups
from .newsrc, since that will be the effect of the forthcoming fix
anyway (aliased lines will not be removed, just ignored).



I have 
-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
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