🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
3 messages
3 total messages Started by John Limpert Wed, 29 Aug 1990 20:13
Installing nn on Microport System V/AT 2.4
#828
Author: John Limpert
Date: Wed, 29 Aug 1990 20:13
18 lines
1624 bytes
I'm having problems getting the software running and any help would be
appreciated.  Everything compiles OK but nnmaster dies when it is
started.  When I run it under sdb it indicates that db_read_group() is
the cause of the crash.  All of the structure fields pointed to by gh
are set to -1, this causes a bad address calculation.  I suspect that
MASTER isn't being initialized properly.  NN doesn't startup either, I
believe that might be caused by a problem with terminfo that someone
said was present in 2.4.  The software is at patch level 9 and it
compiles and runs OK on another system (68000 System V).  Everything
is being compiled in large model without optimization using the
80286 malloc library that was previously posted.  If you are running
nn on Microport 2.4 let me know about any changes that were needed.

-- 
John A. Limpert		The strongest reason for the people to retain the right
johnl@n3dmc.svr.md.us	to keep and bear arms is, as a last resort, to protect
uunet!n3dmc!johnl	themselves against tyranny in government.  T. Jefferson.
Re: Installing nn on Microport System V/AT 2.4
#834
Author: Kim F. Storm
Date: Thu, 30 Aug 1990 15:14
26 lines
1702 bytes
johnl@n3dmc.svr.md.us (John Limpert) writes:


>I'm having problems getting the software running and any help would be
>appreciated.  Everything compiles OK but nnmaster dies when it is
>started.  When I run it under sdb it indicates that db_read_group() is
>the cause of the crash.  All of the structure fields pointed to by gh
>are set to -1,

There is a problem with some versions of "realloc" which do not clear
newly allocated memory.  This is in accordance with the documentation,
but I didn't think about it before.

The initial set of group header structures are "calloc"ed, i.e. properly
initialized to zeros (or at least they should be), but as new groups
are created, the size of the array is increased using "realloc", and
the new entries are *not* cleared.

This may explain some of the mysterious nnmaster crashes which I have 
not been able to explain before (thanks to Remi Saccoman for finding
this bug).  A fix will be included in patch 10 to be released in September.


-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Re: Installing nn on Microport System V/AT 2.4
#846
Author: Kim F. Storm
Date: Fri, 31 Aug 1990 19:05
24 lines
1516 bytes
johnl@n3dmc.svr.md.us (John Limpert) writes:

>I'm having problems getting the software running and any help would be
>appreciated.  Everything compiles OK but nnmaster dies when it is
>started.

I answered:

>There is a problem with some versions of "realloc" which do not clear
>newly allocated memory.  This is in accordance with the documentation,
>but I didn't think about it before.

But that wasn't the case here - it turns out that on a 286, nn
can only handle about 650 news groups, because the array holding
the per-group information exceeds the 64k segment limit.

I have worked out a patch which will fix this problem.
If you are running nn on a 286 based system, and are close to the
650 group limit, you should watch out for patch #10 which will
contain the necessary fixes.

-- 
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