Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8cNV-0007zt-Hb for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Apr 2018 01:59:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8cNT-0005Ng-W4 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Apr 2018 01:59:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8cNT-0005NW-Ph for pgsql-bugs@lists.postgresql.org; Wed, 18 Apr 2018 01:59:19 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8cNQ-00007a-GH for pgsql-bugs@lists.postgresql.org; Wed, 18 Apr 2018 01:59:19 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D6D8721A69; Tue, 17 Apr 2018 21:59:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 17 Apr 2018 21:59:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=jiyiTxy4EQK2u3fp0j1gFzdGlS1pj/duqvSClJJdjU4=; b=lT6fF0/l g50flVtR7xrgx3wZCH+QxvMc8j7laNsyUj04L1ZGDDahih9bm5jvlVZF3GccsGl0 s2f34bsWImaGAO294YsrnvH3HSIDSkOrd7fnMA1iGCzaHy+rC0L14e1S355C+ERk i8phl7Cb38BgURD9O3v3ym2B1/mYWaAtctykLwlfw5vnONVzLHkdl5Y9GuhB4D5k 04M6AVHy70p4wnl9eT728+r+OGu/MbuL1j1zZhGG7HFyy+8LChxgrlTt57V8Ng+M TFdugN9rvvbq4o3r289+10WCoPfkIdwTyJLxNgBPtl2O5aF4mqDZzC0b0TVnIbwk KzEZB3ZKs6pLag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=jiyiTxy4EQK2u3fp0j1gFzdGlS1pj /duqvSClJJdjU4=; b=cx5SQ6yh5efRKwR21sUhDMisQ4WIn0CJOQ9aFlnHQ7+5x 51g2Nxi6xztYWMi+UakRGH8KTe/qpahd2E8eFhrl/pwvFbOaODh3CU9/Xd2YBwIb 9iQW2+nwl0Cc/qvsJxhh208NX6c/WoUmYGG6cEn9BAyTzX1mdn+QiGhcvbn2yZ6f E3p5fL924vwme3y3bmQaALNv6UxoNhBvWWwZoSKGkK1tUhJnWKesvzEDm/HQw79c wmLFNYRChGlxRnf4rIT1gYM0FErdfW1EDsaKnjYzKA0X96D7w2zMFZq5GJGhEx/d tWm/DqBmKlaqzsC/wo3VQGrRfQ4R9HWvef1SE1gsw== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 47F60E5087; Tue, 17 Apr 2018 21:59:13 -0400 (EDT) Date: Wed, 18 Apr 2018 10:59:10 +0900 From: Michael Paquier To: Heikki Linnakangas Cc: petrovanster@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form Subject: Re: BUG #15161: libpq - Invalid SSPI context after PQreset Message-ID: <20180418015910.GF18178@paquier.xyz> References: <152397210636.19364.8981052993657577297@wrigleys.postgresql.org> <148be035-0104-107d-c2bf-54bac530fde3@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+jhVVhN62yS6hEJ8" Content-Disposition: inline In-Reply-To: <148be035-0104-107d-c2bf-54bac530fde3@iki.fi> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --+jhVVhN62yS6hEJ8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 17, 2018 at 11:43:50AM -0400, Heikki Linnakangas wrote: > The issue you're describing sounds a lot like the one that was fixed > here: > https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e6c33d594a004a2c831cdff1a16276347d30f703. The commit applying to REL9_3_STABLE is f2fa0c6514 to be exact (does not really matter both are the same). > 9.3.5 is a really old version. The latest 9.3 minor release is 9.3.22. If > what you're seeing is the same bug, it has been fixed in the latest minor > version. Even if it turns out to be something different, you really need to > upgrade. Indeed. This smells like the same bug to me. The error is happening on the backend, but the frontend failed to delete properly the security context so my bet is that doing successive connection attempts and deletes with this version messes up with what's stored in libpq, which induces the backend into error. -- Michael --+jhVVhN62yS6hEJ8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlrWpm4ACgkQnvQgOdby QH0fixAAhzwHfkJZgV/W7CDytGa/R6wQnEoLpSBoY7045FncWcKwQH+2uT4HSF1S osT6mvAUsvPRC49feXpL6jQmXj6hsKGwW3yLY4vgxIrVYebO/g2snfkNqGnm22FP d/RqDbRUxkL2clI+w3OClPSJbsPOCq7Sbayaf5YqLwbJosNJjTa5rUyOXaueRnzR 7s20kBEufws1i5RIbvBQWR36kxyTfQCShTdivclElC1dtNZmg/a354hqkj61pSnp n1BS/YbOZJHpNuw7tqMgiVdk1/6s0gGQLRg/PX0GmWZz00dF/DnAX262lNhnsipo oAGwhF8JnQ9dttj9p8apXbHRpyXGWx68sUBtvdU2QIuRTvYmAIVa57a2FWzRCwtJ 4OUOcap5ytXDg+ISrnl/NDCsEeq5Y8ie+jUMzmnrLdGw+aWasDdwcCarvkCng7SH KA561BqAQIZDr8cv3fUww0dNEO/WgTEOhdZjpnjR5XHMpkUFfUqY6ZNjcE6tpkjP TYAyNWYRs/ZxDNUX7PG39cn+Fo8UYd6HHTPNcUK9I1Ff44FCevSYgsMGT6Dd4hQi I4e6M6GjnE1fUlXZKA8SIm1mYiz5N3nHWmy5eli8xbv7nCcbMvxb2Xit8VseJ8c1 mLKDCzV2eZ9L/o4jtsQxmwZ6vr30bnsMZB5pNy/QwD0htHzRrMA= =AfRQ -----END PGP SIGNATURE----- --+jhVVhN62yS6hEJ8--