Re: Memory growth observed with C++ application consuming libpq.dll on Windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory growth observed with C++ application consuming libpq.dll on Windows
Дата
Msg-id 3964935.1722606796@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Memory growth observed with C++ application consuming libpq.dll on Windows  (Rajesh Kokkonda <rajeshk.kokkonda@gmail.com>)
Список pgsql-hackers
Rajesh Kokkonda <rajeshk.kokkonda@gmail.com> writes:
> Are you looking for a fully functional sample program or only the APIs from
> libpq library that our product uses? I am asking this because if the
> requirement is to have a sample code, then I will have to work on creating
> one on the same lines as our product.

Just for the record, the last field-reported memory leak in libpq
was found/fixed in 2020, and it occurred only when using GSSAPI
encryption.  Previous reports weren't frequent either.  So while
it may be that you've found one, it seems far more likely that the
fault is in your application.  In any case, nobody is likely to
spend time looking for a bug that may not be there unless you can
produce a self-contained test case demonstrating a leak.

If we had a test case, the first thing we'd likely do would be
to run it under Valgrind, to see if automated analysis is enough
to locate the logic fault.  So an alternative you could consider
before trying to extract a test case is to run your app under
Valgrind for yourself.  As a bonus, that has a decent shot at
locating the fault whether it's ours or yours.  I'm not sure
if Valgrind is available for Windows though --- can you easily
put the app on a different platform?

            regards, tom lane



В списке pgsql-hackers по дате отправления: