NetBSD Problem Report #242

From gnats  Tue May  3 15:50:33 1994
Received: from post.demon.co.uk (post.demon.co.uk [158.152.1.72]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id PAA05295 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 3 May 1994 15:50:29 -0700
Message-Id: <199405032233.XAA07224@allegory>
Date: Tue, 3 May 1994 23:33:41 +0100
From: Bob Kemp <rsk@allegory.demon.co.uk>
Reply-To: rsk@allegory.demon.co.uk
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: ps loops when writing to a pipe
X-Send-Pr-Version: 3.2

>Number:         242
>Category:       bin
>Synopsis:       ps loops when writing to a pipe
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 03 16:05:01 +0000 1994
>Closed-Date:    Wed Jun 15 18:18:46 +0000 1994
>Last-Modified:  Wed Jul 02 02:55:44 +0000 1997
>Originator:     Bob Kemp
>Release:        -current 05mar94		<<< NB: OLD SYSTEM
>Organization:
Home Internet node
Robert Kemp		rsk@allegory.demon.co.uk	Phone: +44 489 581 800
>Environment:

System: NetBSD allegory 0.9a ALLEGORY#0 i386


>Description:
	FIRST NOTE that I'm using an old version of -current, so it may
	have already been fixed.  I don't have access to a recent version
	and it seems too unstable for me to upgrade at the moment.

	The symptom is that ps occasionally loops when writing to a pipe.
	It doesn't seem to manifest itself when writing to a file (say).

	The shell commands below produce about two looping "ps" commands
	per run.  Ignore the broken pipe error messages. That stuff is
	irrelevant, I just added the $f arg to show the values for which
	it failed.

>How-To-Repeat:

	#!/bin/csh -fx

	foreach f ( {1,2,3,4,5,6,7,8,9,0}{1,2,3,4,5,6,7,8,9,0} )
		ps ax | cat - | echo $f > /dev/null &
		echo $f
	end

	jobs -l
	wait


>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Wed Jun 15 11:18:46 PDT 1994 
State-Changed-Why:  
New libkvm does not go loopy. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.