From owner-freebsd-stable@FreeBSD.ORG Mon Apr 3 01:06:31 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C995816A400 for ; Mon, 3 Apr 2006 01:06:31 +0000 (UTC) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63C1B43D45 for ; Mon, 3 Apr 2006 01:06:31 +0000 (GMT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k3316Pf5026525; Sun, 2 Apr 2006 21:06:25 -0400 (EDT) To: "Marc G. Fournier" In-reply-to: <20060402213921.V947@ganymede.hub.org> References: <20060402163504.T947@ganymede.hub.org> <25422.1144016604@sss.pgh.pa.us> <25526.1144017388@sss.pgh.pa.us> <20060402213921.V947@ganymede.hub.org> Comments: In-reply-to "Marc G. Fournier" message dated "Sun, 02 Apr 2006 21:56:32 -0300" Date: Sun, 02 Apr 2006 21:06:25 -0400 Message-ID: <26524.1144026385@sss.pgh.pa.us> From: Tom Lane Cc: pgsql-hackers@postgresql.org, freebsd-stable@freebsd.org, Kris Kennaway Subject: Re: [HACKERS] semaphore usage "port based"? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 01:06:31 -0000 "Marc G. Fournier" writes: > On Sun, 2 Apr 2006, Tom Lane wrote: >> BTW, even before doing that, you should look at "ipcs -s" output to try >> to get a clue what's going on. The EINVAL failures may be because the >> second postmaster to start deletes the semaphores created by the first >> one. You could easily see this happening in before-and-after ipcs data >> if so. > You are right ... OK, could we see strace (or whatever BSD calls it) output for the second postmaster? I'd like to see exactly what results it's getting for the kernel calls it makes during IpcSemaphoreCreate. regards, tom lane