Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XEh1Y-0007gB-Uy for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Aug 2014 15:51:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XEh1Y-00026k-9n for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Aug 2014 15:51:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XEg16-0007F0-A6 for pgsql-bugs@postgresql.org; Tue, 05 Aug 2014 14:47:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XEg11-0007iF-NI for pgsql-bugs@postgresql.org; Tue, 05 Aug 2014 14:47:06 +0000 MIME-Version: 1.0 Subject: BUG #11127: Memory leak in libpq To: pgsql-bugs@postgresql.org From: nick@vyalceva.net Date: Tue, 05 Aug 2014 14:46:52 +0000 Message-ID: <20140805144652.2707.31328@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11127 Logged by: Nikolay Email address: nick@vyalceva.net PostgreSQL version: 9.3.5 Operating system: Linux (Ubuntu 14.04) Description: In case of using SSL authentification via certificates and MD5 authentification without SSL there is a memory leak in libpq library. My pg_hba.conf configuration: hostnossl all all 0.0.0.0/0 md5 hostssl all all 0.0.0.0/0 cert valgrind reports such errors in any application using psql (if sslmode is set to "prefer", that is by default): ==12937== 4,496 (400 direct, 4,096 indirect) bytes in 2 blocks are definitely lost in loss record 13,275 of 13,418 ==12937== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==12937== by 0x6EDA71C: PQmakeEmptyPGresult (fe-exec.c:144) ==12937== by 0x6EE3C12: pqGetErrorNotice3 (fe-protocol3.c:826) ==12937== by 0x6ED853D: PQconnectPoll (fe-connect.c:2304) ==12937== by 0x6ED8B8D: connectDBComplete (fe-connect.c:1521) ==12937== by 0x6ED9496: PQconnectdb (fe-connect.c:516) ==12937== by 0x4C6D41: ??? (in /usr/bin/pgadmin3) ==12937== by 0x4C7945: ??? (in /usr/bin/pgadmin3) ==12937== by 0x7DE7C1: ??? (in /usr/bin/pgadmin3) ==12937== by 0x76770B: ??? (in /usr/bin/pgadmin3) ==12937== by 0x767AF3: ??? (in /usr/bin/pgadmin3) ==12937== by 0x7B3781: ??? (in /usr/bin/pgadmin3) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs