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 1f8Sm4-0005GM-7X for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Apr 2018 15:44:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8Sm3-00069n-6u for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Apr 2018 15:44:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Sm2-00069V-Ro for pgsql-bugs@lists.postgresql.org; Tue, 17 Apr 2018 15:44:03 +0000 Received: from mail-yb0-x242.google.com ([2607:f8b0:4002:c09::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f8Slu-0004jM-Ip for pgsql-bugs@lists.postgresql.org; Tue, 17 Apr 2018 15:44:01 +0000 Received: by mail-yb0-x242.google.com with SMTP id c10-v6so8705419ybn.7 for ; Tue, 17 Apr 2018 08:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gjUjyhUu3/AaOnRcQlVS4ddbW2Yq8fYcDVlK8BIUuCI=; b=jh7ET7OxyjOndbuapH+/qxouFwFFqr0TY89dBzwYxs1r9OBe5d2YVV2BOJi0F8Zpri 3SBEYVBm9GgyHVApcusghaiwH9CQDKrhRgxbult/wuxi6zSKA4QlzY+f+Fa0rbZd1rmY cea4kHTxHZLMDKZXZl7Z2TjFliIsWDOn8VZZ4nqGFibPsFHii0hMrYke9vH47vwFPbmD gw0u5OiD2ey/7WUf4KQ88kC2XqZo4YxdNptPusvUWNBp201kaShIYvjHlLl1d+mLv9eX 62vd/ZOc1i0Gqje7T5IYbwWJFUQt+Eb/p4Pfd+BZw3FLL/9v6y8iyMWp6D8E51UlTL2M jD0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gjUjyhUu3/AaOnRcQlVS4ddbW2Yq8fYcDVlK8BIUuCI=; b=TJzoK6TKSQTEtSD5M6qB8DJlqhEfuGDAOwe9rH0F5bRMSE6/FU2JgSUg3lYr/r4E7o 7HnrUCMc94iBBFO2CElIC/iv6MFYdxjFwZktTprLlF54xlL3Ar3vY+nkq+FLdi+gZS+C rlGSwcBnzoovqCQXhJZ5OuiGdfFHVT7bmuA9D/T2n7sJ+RkN52J2l8s3eYPM53LXnWoq u4O1KKOUCawniyZr8GyXQDBLx/7byZoUgJ2J1f1yqbFOFpgYgNkESZIizrhelGh5InOu aPHhE7WovsK5tvJek9SIEVJePxWLAe1X7u01Qo3s+5gFxCs8G4QOXc3VgRwdVlqde69X 9bTw== X-Gm-Message-State: ALQs6tAcvloktwzidapGdOMie9v7e0NZxjexmwownX8U3sdKVh+TXUCE E829nopisLwh7wd9hagV0A8= X-Google-Smtp-Source: AIpwx4+yEb44sk5EKIpOrA76VW4zgclnS9/Wt4dW7NuklVsnaxnRsoA2m1JH+u+5ECBlr70R+pJmdA== X-Received: by 2002:a25:248f:: with SMTP id k137-v6mr1724119ybk.423.1523979833156; Tue, 17 Apr 2018 08:43:53 -0700 (PDT) Received: from [10.55.14.86] ([142.154.219.2]) by smtp.gmail.com with ESMTPSA id c188sm3711168ywf.89.2018.04.17.08.43.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 08:43:52 -0700 (PDT) Sender: Heikki Linnakangas Subject: Re: BUG #15161: libpq - Invalid SSPI context after PQreset To: petrovanster@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form References: <152397210636.19364.8981052993657577297@wrigleys.postgresql.org> From: Heikki Linnakangas Message-ID: <148be035-0104-107d-c2bf-54bac530fde3@iki.fi> Date: Tue, 17 Apr 2018 11:43:50 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <152397210636.19364.8981052993657577297@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 17/04/18 09:35, PG Bug reporting form wrote: > PostgreSQL version: 9.3.5 > > ... > > I've tried also changing the application to run a single thread and start 10 > instances of it. In this case there is no sspi error. Thus I suspect the > libpq implementation. 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. 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. Note: 9.3 major version is reaching end of life in September, so you should start planning an upgrade to a more recent major version, too. See https://www.postgresql.org/support/versioning/. - Heikki