Re: Probable memory leak with ECPG and AIX

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: Probable memory leak with ECPG and AIX
Дата
Msg-id 20211211065235.GL17618@telsasoft.com
обсуждение исходный текст
Ответ на Probable memory leak with ECPG and AIX  (Guillaume Lelarge <guillaume@lelarge.info>)
Ответы Re: Probable memory leak with ECPG and AIX  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-hackers
On Fri, Dec 10, 2021 at 03:40:50PM +0100, Guillaume Lelarge wrote:
> Hello,
> 
> Our customer thinks he has found a memory leak on ECPG and AIX.
> 
> The code is quite simple. It declares a cursor, opens it, and fetches the
> only line available in the table many times. After some time, the client
> crashes with a segfault error. According to him, it consumed around 256MB.
> What's weird is that it works great on Linux, but crashed on AIX. One
> coworker thought it could be the compiler. Our customer used cc, but he
> also tried with gcc, and got the same error.

A memory leak isn't the same as a segfault (although I don't know how AIX
responds to OOM).

Can you show that it's a memory leak ?  Show RAM use increasing continuously
and linearly with loop count.

How many loops does it take to crash ?

Could you obtain a backtrace ?

-- 
Justin



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Skipping logical replication transactions on subscriber side
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Probable memory leak with ECPG and AIX