From owner-freebsd-hackers Mon Apr 8 16: 0: 0 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from imr1.aus.deuba.com (bagheera.aus.deuba.com [203.0.62.7]) by hub.freebsd.org (Postfix) with ESMTP id 272BA37B419 for ; Mon, 8 Apr 2002 15:59:42 -0700 (PDT) Received: from imr1.aus.deuba.com by imr1.aus.deuba.com id g38MxdFm028189; Tue, 9 Apr 2002 08:59:39 +1000 (EST) Received: from merton.aus.deuba.com by imr1.aus.deuba.com id g38MxcU8028186; Tue, 9 Apr 2002 08:59:38 +1000 (EST) Received: (qmail 2070 invoked by uid 107); 8 Apr 2002 22:59:38 -0000 Message-ID: <20020408225938.2069.qmail@merton.aus.deuba.com> From: callum.gibson@db.com Subject: ipcrm/shmctl failure To: hackers@freebsd.org Date: Tue, 9 Apr 2002 08:59:38 +1000 (EST) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 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 Hi, I'm running FreeBSD 4.5-RELEASE on 2 machines. Yesterday one of them ran out of shared memory segments (used by wine, X11 and mozilla). Fine, clean them up. However although I could list them with ipcs, the vast majority could not be removed, even as root with ipcrm failing with "Invalid argument". I also have a program which implements ipcrm (en masse) with shmctl(2) and it fails similarly (EINVAL). In short I could only clear these by rebooting. My other machine has been up only 13 hours and already there are a number of shared memory segments I can't get rid of. The only other thing that could be relevant is that I do use the linux mozilla so perhaps it has something to do with creation of the shm under linux emulation? (I did try running a linux ipcrm binary just in case - same error.) This may be a red herring because as far as I can tell the nonremovable ones this morning were created by X (I only ran a few xterms, xclock, xload). Also the manpage mentions a file-based implementation. Where are the files kept? With this in mind, the only other thing I might mention is that I have an mfs /tmp (on both machines). I can't see any previous mention of this on questions, hackers or current nor in the PR database. Has anyone else seen this? It should be easy to repeat I would have thought as I'm not doing anything unusual. C Callum Gibson callum.gibson@db.com Global Markets IT, Deutsche Bank, Australia 61 2 9258 1620 ### The opinions in this message are mine and not Deutsche's ### To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message