Thread View: news.software.readers
11 messages
11 total messages
Started by Rich Thomson
Mon, 21 Oct 1991 05:28
Rn barfs when .newsrc > 1000 lines?
Author: Rich Thomson
Date: Mon, 21 Oct 1991 05:28
Date: Mon, 21 Oct 1991 05:28
25 lines
1917 bytes
1917 bytes
I like the idea of adding groups to my .newsrc when they are created, even if I don't subscribe to them. Then I can find the name of the group quickly by fgrepping my .newsrc when I want to wander over there. However, rn (even version 4.14) has been seg faulting alot on me lately and trashing my .newsrc. I was editing my .newsrc after one of these crashes when I noticed that my .newsrc was exactly 1001 lines long. Well, this seemed to be too much of a coincidence to me, so I removed all lines corresponding to newsgroups for which I had unsubscribed. Then things worked fine. Is there some magic number in the rn program that thinks my .newsrc will always have less than 1000 lines in it? Has anyone else encountered these problems with rn? Previously we had a problem with rn indexing its copy of the active file with a short. Guess what happened when the file length exceeded the size of what a short can hold and rn does fseek(size)... -- Rich -- ``Read my MIPS -- no new VAXes!!'' -- George Bush after sniffing freon Disclaimer: I speak for myself, except as noted. UUCP: ...!uunet!dsd.es.com!rthomson Rich Thomson Internet: rthomson@dsd.es.com IRC: _Rich_ PEXt Programmer
Re: Rn barfs when .newsrc > 1000 lines?
Author: Rich Thomson
Date: Mon, 21 Oct 1991 06:34
Date: Mon, 21 Oct 1991 06:34
12 lines
1179 bytes
1179 bytes
In article <1991Oct21.052817.12041@dsd.es.com> I wrote: > >However, rn (even version 4.14) [...] Ooops. I meant to say version 4.4, patchlevel 1. -- Rich -- ``Read my MIPS -- no new VAXes!!'' -- George Bush after sniffing freon Disclaimer: I speak for myself, except as noted. UUCP: ...!uunet!dsd.es.com!rthomson Rich Thomson Internet: rthomson@dsd.es.com IRC: _Rich_ PEXt Programmer
Re: Rn barfs when .newsrc > 1000 lines? (really /usr/lib/news/active)
Author: Cliff Olling
Date: Tue, 22 Oct 1991 04:16
Date: Tue, 22 Oct 1991 04:16
11 lines
1343 bytes
1343 bytes
Actually, I haven't had the .newsrc problem yet. I have noticed that when /usr/lib/news/active gets longer than 32768 bytes, rn says that the news- groups past that point don't exist! :-( So there's some counter in rn that is a short int that needs to become a long int. Bummer, eh? Patches, anyone? -- Clifford Olling Japan National Oil Corporation ~~$@@PL}8xCD~~(J Technology Research Center ~~$@@PL}3+H/5;=Q~~(J Chiba City, Japan olling@jnoc.go.jp ~~$@KkD%K\6?1X~~(J 24hrs/day=>81+472-73-5831 put this in .rnmac to read my .sig: [ | sed s/~~/\\033/g | more\012
Re: Rn barfs when .newsrc > 1000 lines?
Author: Stan Barber
Date: Tue, 22 Oct 1991 15:13
Date: Tue, 22 Oct 1991 15:13
25 lines
1784 bytes
1784 bytes
In article <1991Oct21.052817.12041@dsd.es.com> rthomson@dsd.es.com (Rich Thomson) writes: >However, rn (even version 4.14) has been seg faulting alot on me >lately and trashing my .newsrc. I was editing my .newsrc after one of >these crashes when I noticed that my .newsrc was exactly 1001 lines >long. Well, this seemed to be too much of a coincidence to me, so I >removed all lines corresponding to newsgroups for which I had >unsubscribed. I have 1270 lines in my .newsrc and have never had a seg fault. I am on a Sun. I don't know what you are running on. rn 4.4 is not supposed to act this way, but some versions of malloc and friends don't work well on some systems. This would account for your problems. If you have access to an alternative malloc library, you should try that and see if your situation improves. If you have more problems, send mail to "rrn@lib.tmc.edu" -- Stan internet: sob@bcm.tmc.edu Director, Networking Olan uucp: rutgers!bcm!sob and Systems Support Barber Opinions expressed are only mine. Baylor College of Medicine
Re: Rn barfs when .newsrc > 1000 lines? (really /usr/lib/news/active)
Author: Ed Clarke/10240000
Date: Tue, 22 Oct 1991 21:18
Date: Tue, 22 Oct 1991 21:18
13 lines
1370 bytes
1370 bytes
From article <322@trc.jnoc.go.jp>, by olling@trc.jnoc.go.jp (Cliff Olling):
> Actually, I haven't had the .newsrc problem yet. I have noticed that when
> /usr/lib/news/active gets longer than 32768 bytes, rn says that the news-
> groups past that point don't exist! :-( So there's some counter in rn that
> is a short int that needs to become a long int.
There's a hard coded hash table in there also. I ran into this when we grew
to over five thousand local groups at work. Get the current version of rn
and you won't have 'short' problems anyway.
--
Ed Clarke | Artificial insemination is when the farmer does it to
acheron!clarke | the cow and not the bull.
| - Richard Lederer (Anguished English)
Re: Rn barfs when .newsrc > 1000 lines?
Author: Rich Thomson
Date: Tue, 22 Oct 1991 22:11
Date: Tue, 22 Oct 1991 22:11
32 lines
2084 bytes
2084 bytes
In article <8213@gazette.bcm.tmc.edu> sob@tmc.edu (Stan Barber) writes: > >I have 1270 lines in my .newsrc and have never had a seg fault. >I am on a Sun. I don't know what you are running on. I'm running on an ESV workstation, which is MIPS R3000 based with a variant of RISC/os. >rn 4.4 is not supposed to act this way, but some versions of malloc and >friends don't work well on some systems. This would account for your >problems. I've never experienced problems with malloc and friends seg-faulting before unless the program had somehow corrupted the heap. Many people sent me mail telling me to up a magic constant in the program. Well, rn 4.4 doesn't have a magic constant; it dynamically increases the needed storage (both # of lines and hash space) as it notices that it needs more space. However, I have been having flakey things happen with rrn. Today, rn 4.4 just crashed with a SIGBUS! I was entering a group and listing the subjects with '=' when I ^C'ed it in the middle. I guess it just got confused somewhere. -- Rich -- ``Read my MIPS -- no new VAXes!!'' -- George Bush after sniffing freon Disclaimer: I speak for myself, except as noted. UUCP: ...!uunet!dsd.es.com!rthomson Rich Thomson Internet: rthomson@dsd.es.com IRC: _Rich_ PEXt Programmer
Re: Rn barfs when .newsrc > 1000 lines? (really /usr/lib/news/active)
Author: Rich Thomson
Date: Tue, 22 Oct 1991 22:15
Date: Tue, 22 Oct 1991 22:15
19 lines
1648 bytes
1648 bytes
In article <322@trc.jnoc.go.jp> olling@jnoc.go.jp (Cliff Olling) writes: >Actually, I haven't had the .newsrc problem yet. I have noticed that when >/usr/lib/news/active gets longer than 32768 bytes, rn says that the news- >groups past that point don't exist! :-( So there's some counter in rn that >is a short int that needs to become a long int. > >Bummer, eh? Patches, anyone? What version of rn are you using? I haven't had this problem with rn 4.4, but we did have it with an earlier version. Try changing the typedef for ACT_POS in common.h from short to int. -- Rich -- ``Read my MIPS -- no new VAXes!!'' -- George Bush after sniffing freon Disclaimer: I speak for myself, except as noted. UUCP: ...!uunet!dsd.es.com!rthomson Rich Thomson Internet: rthomson@dsd.es.com IRC: _Rich_ PEXt Programmer
Re: Rn barfs when .newsrc > 1000 lines? (really /usr/lib/news/active)
Author: Jean-Pierre Radley
Date: Mon, 28 Oct 1991 02:12
Date: Mon, 28 Oct 1991 02:12
19 lines
1402 bytes
1402 bytes
In article <322@trc.jnoc.go.jp> olling@jnoc.go.jp (Cliff Olling) writes: >Actually, I haven't had the .newsrc problem yet. I have noticed that when >/usr/lib/news/active gets longer than 32768 bytes, rn says that the news- >groups past that point don't exist! :-( So there's some counter in rn that >is a short int that needs to become a long int. > >Bummer, eh? Patches, anyone? This came up more than once, and I made the patch, but without noting where I did it. If you have a line (~642) in common.h that reads: typedef short NG_NUM; /* newsgroup number */ then that's probably the culprit. Mine has int, not short. -- Jean-Pierre Radley Unix in NYC jpr@jpr.com jpradley!jpr CIS: 72160,1341
Re: Rn barfs when .newsrc > 1000 lines? (really /usr/lib/news/active)
Author: Cliff Olling
Date: Wed, 30 Oct 1991 08:31
Date: Wed, 30 Oct 1991 08:31
19 lines
1516 bytes
1516 bytes
In article <1991Oct28.021236.2676@jpradley.jpr.com> >If you have a line (~642) in common.h that reads: > > typedef short NG_NUM; /* newsgroup number */ > > >then that's probably the culprit. Mine has int, not short. In my common.h: typedef int NG_NUM; /* newsgroup number */ So that wasn't it. Must be this one. Grrr! typedef short ACT_POS; /* char position in active file */ -- Clifford Olling Japan National Oil Corporation ~~$@@PL}8xCD~~(J Technology Research Center ~~$@@PL}3+H/5;=Q~~(J Chiba City, Japan olling@jnoc.go.jp ~~$@KkD%K\6?1X~~(J 24hrs/day=>81+472-73-5831 put this in .rnmac to read my .sig: [ | sed s/~~/\\033/g | more\012
Re: Rn barfs when .newsrc > 1000 lines? (really /usr/lib/news/active)
Author: rrn
Date: Wed, 30 Oct 1991 17:59
Date: Wed, 30 Oct 1991 17:59
17 lines
1431 bytes
1431 bytes
In article <323@trc.jnoc.go.jp> olling@jnoc.go.jp (Cliff Olling) writes: >So that wasn't it. Must be this one. Grrr! > >typedef short ACT_POS; /* char position in active file */ This has been typedef long since the release of rn 4.4. Perhaps you need to upgrade. rn 4.4 patch 2 is about to be tested. Please let me know what you consider to be bugs. -- Stan internet: sob@bcm.tmc.edu Director, Networking Olan uucp: rutgers!bcm!sob and Systems Support Barber Opinions expressed are only mine. Baylor College of Medicine
Re: Rn barfs when .newsrc > 1000 lines? (really /usr/lib/news/active)
Author: Wayne Davison
Date: Thu, 31 Oct 1991 11:42
Date: Thu, 31 Oct 1991 11:42
12 lines
1242 bytes
1242 bytes
Cliff Olling (olling@jnoc.go.jp) wrote: > So that wasn't it. Must be this one. Grrr! > typedef short ACT_POS; /* char position in active file */ Really folks! What can you expect when you don't upgrade your software? This bug has been fixed for over a year or two. Rn 4.4 is available now, why not grab that? Of course I'd wait for trn 2.0 to arrive around Thanksgiving, but then I'm biased. :-) -- \ /| / /|\/ /| /(_) Wayne Davison (_)/ |/ /\|/ / |/ \ davison@borland.com (W A Y N e)
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