From owner-freebsd-stable@FreeBSD.ORG Sun Apr 2 20:27:38 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 89A5E16A41F for ; Sun, 2 Apr 2006 20:27:38 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A7AB43D46 for ; Sun, 2 Apr 2006 20:27:38 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 0D1D61A3C1E; Sun, 2 Apr 2006 13:27:38 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 2815051243; Sun, 2 Apr 2006 16:27:37 -0400 (EDT) Date: Sun, 2 Apr 2006 16:27:37 -0400 From: Kris Kennaway To: "Marc G. Fournier" Message-ID: <20060402202736.GA58611@xor.obsecurity.org> References: <20060402144704.S947@ganymede.hub.org> <20060402191519.GA56599@xor.obsecurity.org> <20060402162612.N947@ganymede.hub.org> <20060402193808.GA57127@xor.obsecurity.org> <20060402165234.Y947@ganymede.hub.org> <20060402195657.GA57843@xor.obsecurity.org> <20060402172021.B947@ganymede.hub.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20060402172021.B947@ganymede.hub.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org, Kris Kennaway Subject: Re: [FreeBSD 6] semctl broken compared to 4-STABLE ... 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: Sun, 02 Apr 2006 20:27:38 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 02, 2006 at 05:24:10PM -0300, Marc G. Fournier wrote: > On Sun, 2 Apr 2006, Kris Kennaway wrote: >=20 > >>Right, but why are they doing it *consistently* in FreeBSD 6.x, when th= ey > >>never did it in FreeBSD 4.x? I have postmaster processes running on the > >>FreeBSD box as far back as November 27th, 2005 ... and have *never* > >>experienced this problem ... so it isn't PostgreSQL that has changed, > >>something in FreeBSD has changed :( > > > >You'll need to do some debugging to find out which of the two causes > >of EINVAL are true here (or some undocumented cause). >=20 > 'k, right now, the checks in PostgreSQL are just seeing if the result of= =20 > semctl < 0 ... i see from the man page what 'two values' of EINVAL you ar= e=20 > referring to ... but, if they both return the same ERRNO, how do I=20 > determine which of the two is the cause of the problem? :( Evaluate context: what other semaphore operations have been performed previously? Kris --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEMDO4Wry0BWjoQKURAhQLAKDrBWJxI99BDXxQUVvxlaGt7b+zYQCgv2Ak eOUlSTOyV9FXbrfdwaTcrKs= =gKMT -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--