🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #2168

bsd arc being ported to SYSV

#2168
From: johna
Date: Thu, 29 Jan 1987 20:19
28 lines
1776 bytes
Is there anybody else out there trying to port arc (for bsd), as
posted in net.sources recently, to any SYSV machine?  I'm trying
to get it running on an HP9000 and as a result, I have learned a
lot about vaxen running 4.2.

In a few places, the code would realloc((char *)NULL, sizeof(something)),
and in one place the code was trying to free a pointer variable that
was on the stack (which caused a core dump on the very next malloc).

My disk is half full of core images :-).  I've modified enough of
the code so that the program will compress the files, but when I
unarc them, I wind up with files about 3 times larger than the
originals (when I did this with an object file and re-linked it,
I wound up with an executable file that looked like it still worked).

Is this common among vax programs?  Can you dereference null pointers
and free memory that was not malloced with wild abandon?  Or is our
HP just too fussy?

If anybody has managed to port arc to SYSV, could you please send
me email?

   Thanks.

   paths:  ...!ubc-vision!van-bc!molihp!johna
	   ...!ubc-vision!molihp!johna
   (I think)
Technical Details
Message-ID: <401@molihp.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!alberta!ubc-vision!van-bc!molihp!johna

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!alberta!ubc-vision!van-bc!molihp!johna
From: johna@molihp.UUCP
Newsgroups: comp.sources.d
Subject: bsd arc being ported to SYSV
Message-ID: <401@molihp.UUCP>
Date: Thu, 29-Jan-87 15:19:06 EST
Article-I.D.: molihp.401
Posted: Thu Jan 29 15:19:06 1987
Date-Received: Sat, 31-Jan-87 16:23:43 EST
Reply-To: johna@molihp.UUCP (John M Altstadt)
Organization: Moli Energy Ltd., Burnaby, BC, CANADA
Lines: 28
Keywords: null pointers, free(local variables), etc.
Summary: is there anyone else out there stupid enough to try this besides me?