NetBSD Problem Report #158
From gnats Mon Mar 7 21:12:07 1994
Received: from miller.cs.uwm.edu (miller.cs.uwm.edu [129.89.35.13]) by sun-lamp.cs.berkeley.edu (8.6.5/8.6.5) with ESMTP id VAA15599 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 7 Mar 1994 21:12:06 -0800
Message-Id: <199403080512.XAA00614@miller.cs.uwm.edu>
Date: Mon, 7 Mar 1994 23:12:07 -0600
From: James Jegers <jimj@miller.cs.uwm.edu>
Reply-To: jimj@miller.cs.uwm.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: ps hang
X-Send-Pr-Version: 3.2
>Number: 158
>Category: bin
>Synopsis: ps hang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 07 21:20:02 +0000 1994
>Closed-Date: Fri Sep 16 22:30:30 +0000 1994
>Last-Modified: Sun Mar 03 17:52:39 +0000 2013
>Originator: James Jegers
>Release:
>Organization:
" "
>Environment:
System: NetBSD enigma.cs.uwm.edu 0.9a ENIGMA#0 i386
>Description:
If a user changes has argv[], ps locks up.
PS. I'm not really sure if this is a bug, or just an annomoly
>How-To-Repeat:
run the below program, and then run ps xa
#include <stdio.h>
#include <signal.h>
void domore(int);
int max;
char **gargv;
main(int argc, char *argv[])
{
int i;
max = 50000;
gargv = argv;
signal(SIGBUS, domore);
for (i=0; i < max; i++)
gargv[0][i] = 'd';
printf("found at %d\n", max);
sleep(10);
}
void
domore(int sig)
{
int i;
max--;
for (i=0; i < max; i++)
gargv[0][i] = 'd';
}
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Fri Sep 16 15:30:30 PDT 1994
State-Changed-Why:
This has been fixed for some time.
>Unformatted:
(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.