From owner-freebsd-hackers Tue Apr 9 1:41:51 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 1055B37B41C for ; Tue, 9 Apr 2002 01:41:48 -0700 (PDT) Received: from pool0072.cvx40-bradley.dialup.earthlink.net ([216.244.42.72] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16urCC-0000Eq-00; Tue, 09 Apr 2002 01:41:44 -0700 Message-ID: <3CB2A92E.CFABF7C9@mindspring.com> Date: Tue, 09 Apr 2002 01:41:18 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cc: callum.gibson@db.com, hackers@freebsd.org Subject: Re: ipcrm/shmctl failure References: <20020409163218.T36127-100000@starbug.ugh.net.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrew wrote: > On Tue, 9 Apr 2002 callum.gibson@db.com wrote: > > I replied privately to Terry, but I perhaps should have mentioned also > > that some of these segments were days old and they were definitely not > > in use by any process. I logout at the end of every day. > > Have you tried ipcs -p? I believe this will give incorrect information, as it's pretty obvious that any bug here has to be in the Linux ABI treatment of the _exit() resource tracking cleanup of the segments when a proce (or "Linux thread") exits. The information "-p" gives is the last access. However, if what has happened is that all the programs have been stopped, and the reference count was not decremented by the Linux ABI code, then the last reference you will see is the already exited X server. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message