From: nick@vyalceva.net
To: pgsql-bugs@postgresql.org
Subject: BUG #11127: Memory leak in libpq
Date: Tue, 05 Aug 2014 14:46:52 +0000
Message-ID: <20140805144652.2707.31328@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: nick@vyalceva.net
Subject: Re: BUG #11127: Memory leak in libpq
In-Reply-To: <20140805144652.2707.31328@wrigleys.postgresql.org>
References: <20140805144652.2707.31328@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox