🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3361

Re: innd: ME cant malloc 8 bytes Not a typewriter

#3361
From: David Spencer
Date: Wed, 15 Feb 1995 14:36
26 lines
1863 bytes
johnh@cccd.edu (John Hanna) writes:

Owen Crowley <owen@panix.com> wrote:

> My innd server running on A/UX 3.0.2 has been going down repeatedly in the
> last 24 hours with "cant malloc" errors, mostly with the cryptic "Not a
> typewriter" message.

Ignore "Not a typewriter" messages.  errno is a blunt instrument, a
trap for the unwary.  (He said, freely mixing metaphors.)

malloc is setting errno on an error.  The software is then calling an
error-reporting routine that uses an output function that tests what
it's writing to.  That typically results in ENOTTY, which gets stored
in errno, overriding the errno from malloc.  The routine then calls
perror or strerror, and gets the bogus message.

Error-reporting routines should save errno immediately after the
error, and restore it immediately before the perror or strerror.
Those that don't are worse than useless.

If you want to find out what's really happening, you'll have to diddle
the innd error-reporting routines.
-- 
dhs spencer@panix.com
Technical Details
Message-ID: <3ht3gp$56f@panix3.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.aux.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!rsg1.er.usgs.gov!jobone!newsxfer.itd.umich.edu!zip.eecs.umich.edu!panix!not-for-mail
References: <Pine.SUN.3.91.950212131642.2814A-100000@panix2.panix.com> <johnh-1402951941470001@jhanna.remote.cccd.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3ht3gp$56f@panix3.panix.com>
Subject: Re: innd: ME cant malloc 8 bytes Not a typewriter
Date: Wed, 15 Feb 1995 14:36:09 +0000
From: spencer@panix.com (David Spencer)
References: <Pine.SUN.3.91.950212131642.2814A-100000@panix2.panix.com> <johnh-1402951941470001@jhanna.remote.cccd.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.aux.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!rsg1.er.usgs.gov!jobone!newsxfer.itd.umich.edu!zip.eecs.umich.edu!panix!not-for-mail
Newsgroups: news.software.nntp,comp.unix.aux
Organization: Project Development and Finance
Lines: 25
Distribution: inet
NNTP-Posting-Host: panix3.panix.com