From owner-freebsd-hackers Tue Apr 9 0:50:32 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 CD1EE37B400 for ; Tue, 9 Apr 2002 00:50:21 -0700 (PDT) Received: from imr1.aus.deuba.com by imr1.aus.deuba.com id g397oIFm024756; Tue, 9 Apr 2002 17:50:18 +1000 (EST) Received: from merton.aus.deuba.com by imr1.aus.deuba.com id g397oHU8024753; Tue, 9 Apr 2002 17:50:17 +1000 (EST) Received: (qmail 18103 invoked by uid 107); 9 Apr 2002 07:50:17 -0000 Message-ID: <20020409075017.18102.qmail@merton.aus.deuba.com> From: callum.gibson@db.com Subject: Re: ipcrm/shmctl failure To: andrew@ugh.net.au Date: Tue, 9 Apr 2002 17:50:17 +1000 (EST) Cc: tlambert2@mindspring.com, hackers@freebsd.org In-Reply-To: <20020409163218.T36127-100000@starbug.ugh.net.au> from "andrew@ugh.net.au" at Apr 09, 2002 04:32:32 PM 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 At the risk of clogging up -hackers with this, I'm not going crazy... andrew@ugh.net.au writes: }> 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? Sure did. I can have nothing running but a login shell and still not be able to remove them. For example, this morning I started a cut down X session which runs a few xterms, an xclock and an xload. I read some mail. I exited and later started my full-blown X session for today's work. The old X server has gone but I can't remove the shm's it created. See below: % ipcs -pm Shared Memory: T ID KEY MODE OWNER GROUP CPID LPID m 25755648 0 --rwarwarwa callum fid 1285 1150 m 393217 0 --rwarwarwa callum fid 1285 1150 m 393218 0 --rwarwarwa callum fid 1285 1150 m 524291 0 --rwarwarwa callum fid 1285 1150 m 393220 0 --rwarwarwa callum fid 1285 1150 m 393221 0 --rwarwarwa callum fid 1285 1150 m 393225 0 --rwarwarwa callum fid 1285 1150 m 131082 0 --rw-r--r-- root wheel 999 1107 m 196619 0 --rw-r--r-- root wheel 999 1107 m 131086 0 --rw-r--r-- root wheel 999 1107 m 393234 0 --rw-r--r-- root wheel 1150 1521 m 655380 0 --rwarwarwa callum fid 1881 1150 m 262166 0 --rw-r--r-- root wheel 1150 1521 m 262167 0 --rw-r--r-- root wheel 1150 1521 m 196632 0 --rw-r--r-- root wheel 1150 1521 % ps -p 1150 PID TT STAT TIME COMMAND 1150 ?? S 11:27.97 /usr/X11R6/bin/XFree86 :0 -auth /home/callum/.Xauthor (my current session) % ps -p 1285 PID TT STAT TIME COMMAND 1285 p2 S 9:26.64 ./mozilla-bin (my current web browser) % ps -p 999 PID TT STAT TIME COMMAND % ps -p 1107 PID TT STAT TIME COMMAND (no matching processes, plus there are no other pids on my system in this range) Ok, 196619, 131086, and 393234 are from my old X session this morning. % ipcrm -m 131082 ipcrm: shmid(131082): : Invalid argument # ipcrm -m 131082 ipcrm: shmid(131082): : Invalid argument As it happens I just logged out of everything again to verify this so now I have more I can't remove. This is how it looks now: Shared Memory: T ID KEY MODE OWNER GROUP CPID LPID m 25755648 0 --rwarwarwa callum fid 1285 1150 m 131082 0 --rw-r--r-- root wheel 999 1107 m 196619 0 --rw-r--r-- root wheel 999 1107 m 131086 0 --rw-r--r-- root wheel 999 1107 m 393234 0 --rw-r--r-- root wheel 1150 1521 m 655380 0 --rwarwarwa callum fid 1881 1150 m 262166 0 --rw-r--r-- root wheel 1150 1521 m 262167 0 --rw-r--r-- root wheel 1150 1521 m 196632 0 --rw-r--r-- root wheel 1150 1521 All of these fail ipcrm with Invalid argument. There are no processes other than my login shell which weren't started at boot (pids <= 148). Is anyone convinced this is a bug yet? 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