From owner-freebsd-questions Fri Jan 5 12:35:45 2001 From owner-freebsd-questions@FreeBSD.ORG Fri Jan 5 12:35:42 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 694B837B400 for ; Fri, 5 Jan 2001 12:35:42 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f05KZbW15388; Fri, 5 Jan 2001 12:35:37 -0800 (PST) Date: Fri, 5 Jan 2001 12:35:37 -0800 From: Alfred Perlstein To: void Cc: questions@FreeBSD.ORG Subject: Re: semsys(2) and undeletable semaphores Message-ID: <20010105123537.J15744@fw.wintelcom.net> References: <20010105183035.A23040@firedrake.org> <20010105104911.E15744@fw.wintelcom.net> <20010105195910.A27037@firedrake.org> <20010105121550.G15744@fw.wintelcom.net> <20010105202051.A27501@firedrake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010105202051.A27501@firedrake.org>; from float@firedrake.org on Fri, Jan 05, 2001 at 08:20:51PM +0000 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * void [010105 12:20] wrote: > On Fri, Jan 05, 2001 at 12:15:50PM -0800, Alfred Perlstein wrote: > > > > hmm, are you sure you have permission to do this? > > I'm root. > > > is 'username' your username? > > I tried su'ing to him, too. > > > What's the output of 'sysctl -a | grep sem'? > > # sysctl -a | grep sem > kern.ipc.semmap: 31 > kern.ipc.semmni: 200 > kern.ipc.semmns: 600 > kern.ipc.semmnu: 31 > kern.ipc.semmsl: 150 > kern.ipc.semopm: 101 > kern.ipc.semume: 11 > kern.ipc.semusz: 100 > kern.ipc.semvmx: 32767 > kern.ipc.semaem: 16384 > p1003_1b.semaphores: 0 > p1003_1b.sem_nsems_max: 0 > p1003_1b.sem_value_max: 0 > > Here's another data point: the user just informed me that he's been > deleting the shared memory segments in which the semaphores live > *before* deleting the semaphores. Could this be the root of the > problem? It seems like a silly thing to do, but at the same time, > it probably shouldn't result in undeleteable semaphores. semaphores don't live in userspace, my guess is that maybe the app that has allocated them is still living somewhere and hasn't detached from them. can you see if he can check his processes and kill them off? -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message