Re: Bug with memory leak on cert validation in libpq - Mailing list pgsql-bugs

From David Steele
Subject Re: Bug with memory leak on cert validation in libpq
Date
Msg-id 62894bf0-4bde-1d5b-75a2-20d44fc47fe6@pgmasters.net
Whole thread Raw
In response to Re: Bug with memory leak on cert validation in libpq  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Bug with memory leak on cert validation in libpq
List pgsql-bugs
On 4/21/20 12:42 AM, Michael Paquier wrote:
> On Mon, Apr 20, 2020 at 08:40:06PM +0300, Roman Peshkurov wrote:
>> The problem is incorrect usage of openssl stack "destructor". We noticed it
>> on a graphs for the few months. It looked lika an increasing line of res
>> memory usage.
> 
> And finally, this needs to be backpatched all the way down to 9.5, so
> I'll take care of it if there are no objections.

+1. We have similar code in pgBackRest and I can see the leak there as 
well when I adjust our Valgrind supressions a bit.

I also reviewed the OpenSSL code and agree this is the right fix.

Regards,
-- 
-David
david@pgmasters.net



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Backend stuck in tirigger.c:afterTriggerInvokeEvents forever
Next
From: cbw
Date:
Subject: Re: Backend stuck in tirigger.c:afterTriggerInvokeEvents forever