BUG #11127: Memory leak in libpq

From: nick(at)vyalceva(dot)net
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #11127: Memory leak in libpq
Date: 2014-08-05 14:46:52
Message-ID: 20140805144652.2707.31328@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 11127
Logged by: Nikolay
Email address: nick(at)vyalceva(dot)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)

Browse pgsql-bugs by date

  From Date Subject
Next Message pjduplooy 2014-08-05 15:12:06 Re: BUG #11039: installation fails when trying to install C++ redistributable
Previous Message Sandeep Thakkar 2014-08-05 07:30:35 Re: Re: BUG #11039: installation fails when trying to install C++ redistributable