🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #834

Re: Installing nn on Microport System V/AT 2.4

#834
From: 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!
Technical Details
Message-ID: <652@texas.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
References: <1047@n3dmc.svr.md.us>

Show Full Headers
Complete Article Headers
Message-ID: <652@texas.dk>
Subject: Re: Installing nn on Microport System V/AT 2.4
Date: Thu, 30 Aug 1990 15:14:59 +0000
From: storm@texas.dk (Kim F. Storm)
References: <1047@n3dmc.svr.md.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm
Newsgroups: news.software.nn
Organization: Texas Instruments, Denmark
Lines: 26
Posted: Thu Aug 30 16:14:59 1990