🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #199

help with fixing a shell bug? (whimper)

#199
From: Chuq Von Rospach
Date: Mon, 23 Apr 1984 03:17
21 lines
1688 bytes
I am having a h*ll of a time tracking down a problem in /bin/sh. It seems
to be endemic with 4BSD, and incorporating the appropriate changes from 
SYS V.2 don't help it either. On some occasions the shell goes into a hard
loop in the allocation routines (blok.c, routine alloc()) on a line which
says 'WHILE !busy(q = p->word) DO p->word = q->word OD'. (Yes, that is C
code, folks... well, kinda...). The allocation routines seem to assume that
sbrk return values aligned on word (possible double word) boundries, and
use the lowest bit of the address to signify whether or not the block of
memory contains anything of use. Evidently in certain circumstances it gets
confused and loops through the list forever.

Has anyone else ever seen and/or fixed this bug before? This has been
popping up on our Genix system (on the 16032 chip), and I don't know
whether or not Vaxen or PDP's are prone. Suggestions/help? 

chuq
-- 
From under the bar at Callahan's:		Chuq Von Rospach
{amd70,fortune,hplabs,menlo70}!nsc!chuqui	(408) 733-2600 x242

Never give your heart to a stranger, unless you are sure that you are dead.
Technical Details
Message-ID: <879@nsc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!harpo!ulysses!mhuxl!ihnp4!zehntel!hplabs!nsc!chuqui

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1.chuqui 4/7/84; site nsc.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!harpo!ulysses!mhuxl!ihnp4!zehntel!hplabs!nsc!chuqui
From: chuqui@nsc.UUCP (Chuq Von Rospach)
Newsgroups: net.bugs,net.unix-wizards
Subject: help with fixing a shell bug? (whimper)
Message-ID: <879@nsc.UUCP>
Date: Sun, 22-Apr-84 22:17:50 EST
Article-I.D.: nsc.879
Posted: Sun Apr 22 22:17:50 1984
Date-Received: Tue, 24-Apr-84 01:01:30 EST
Organization: National Semiconductor, Sunnyvale
Lines: 21