NetBSD Problem Report #448
From gnats Wed Aug 31 00:18:16 1994
Received: from scrooge.ee.swin.oz.au (scrooge.ee.swin.oz.au [136.186.4.20]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id AAA08304 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 31 Aug 1994 00:18:11 -0700
Message-Id: <199408310720.RAA24753@scrooge.ee.swin.oz.au>
Date: Wed, 31 Aug 1994 17:20:15 +1000 (EST)
From: Douglas Thomas Crosher <dtc@scrooge.ee.swin.oz.au>
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: shm problem
>Number: 448
>Category: kern
>Synopsis: Share memory problem, shmctl(shmid,IPC_RMID,0) does not decrease shm_nused
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 31 00:20:05 +0000 1994
>Closed-Date: Mon Sep 05 02:22:57 +0000 1994
>Last-Modified:
>Originator: Douglas Thomas Crosher
>Release:
>Organization:
" Swinburne University of technology"
>Environment:
NetBSD1.0Beta 20 Aug 1994
>Description:
shmctl(shmid,IP_RMID,0) does not decrease the number of shared
memory identifiers in use. The value of shm_nused just keeps
increasing until it reaches the default kernal limit of 32.
>How-To-Repeat:
Run a program that used shared memory (CLSIP) more then 32 times, or
use the following program:
-=-=-=-=-
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
main ()
{
int shmid, i;
for ( i=0; i<35; i++ )
{
if ((shmid = shmget(IPC_PRIVATE,0x10000,0400)) < 0)
{
perror("shmget");
exit(1);
}
shmctl(shmid,IPC_RMID,0);
}
}
-=-=-=-=-
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Sun Sep 4 19:22:57 PDT 1994
State-Changed-Why:
Fixed.
>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.