pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Sudheer H R <sudheer.hr@tekenlight.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Memory leakage in libpq valgrind test
Date: Wed, 1 Mar 2023 15:59:36 +0900
Message-ID: <Y/732LWdZEEN8KRd@paquier.xyz> (raw)
In-Reply-To: <1327895.1677653030@sss.pgh.pa.us>
References: <D0C58678-5E88-40E7-8611-510F89367F69@tekenlight.com>
	<1327895.1677653030@sss.pgh.pa.us>

On Wed, Mar 01, 2023 at 01:43:50AM -0500, Tom Lane wrote:
> So ... why do you think this is our bug, and not a Kerberos bug?
> The leak seems to be buried quite far in libgssapi_krb5.so.

Yeah, libpq calls gss_acquire_cred().  So, assuming that the leak is
localized within one of the resources allocated by this call, there is
nothing in the kerberos docs that point to a routine to free it:
https://web.mit.edu/kerberos/krb5-latest/doc/appdev/gssapi.html or
gssapi.rst in its code tree.

I may be missing something, of course.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (4+ messages)  latest in thread

Message-ID: <Y/732LWdZEEN8KRd@paquier.xyz>
Permalink:  ../Y%2F732LWdZEEN8KRd@paquier.xyz/
Also on:    postgresql.org/message-id/Y/732LWdZEEN8KRd@paquier.xyz

 · 

reply

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: michael@paquier.xyz, tgl@sss.pgh.pa.us, sudheer.hr@tekenlight.com
  Subject: Re: Memory leakage in libpq valgrind test
  In-Reply-To: <Y/732LWdZEEN8KRd@paquier.xyz>
  References: <D0C58678-5E88-40E7-8611-510F89367F69@tekenlight.com> <1327895.1677653030@sss.pgh.pa.us> <Y/732LWdZEEN8KRd@paquier.xyz>

* 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