Date: Tue, 9 Apr 2002 17:50:17 +1000 (EST) From: callum.gibson@db.com To: andrew@ugh.net.au Cc: tlambert2@mindspring.com, hackers@freebsd.org Subject: Re: ipcrm/shmctl failure Message-ID: <20020409075017.18102.qmail@merton.aus.deuba.com> In-Reply-To: <20020409163218.T36127-100000@starbug.ugh.net.au> from "andrew@ugh.net.au" at Apr 09, 2002 04:32:32 PM
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020409075017.18102.qmail>