Re: [BUGS] [HACKERS] Segmentation fault in libpq

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [BUGS] [HACKERS] Segmentation fault in libpq
Дата
Msg-id 20170702191222.uk4hokc2iumzeenh@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [BUGS] [HACKERS] Segmentation fault in libpq  (Michal Novotný <michal.novotny@greycortex.com>)
Ответы Re: [BUGS] [HACKERS] Segmentation fault in libpq  (Craig Ringer <craig@2ndquadrant.com>)
Re: [BUGS] [HACKERS] Segmentation fault in libpq  (Michal Novotny <michal.novotny@greycortex.com>)
Список pgsql-bugs
Hi,

On 2017-07-02 20:58:52 +0200, Michal Novotný wrote:
> thank you all for your advice. I've been investigating this a little more
> and finally it turned out it's not a bug in libpq although I got confused
> by going deep as several libpq functions. The bug was really on our side
> after trying to use connection pointer after calling PQfinish(). The code
> is pretty complex so it took some time to investigate however I would like
> to apologize for "blaming" libpq instead of our code.

Usually using a tool like valgrind is quite helpful to find issues like
that, because it'll show you the call-stack accessing the memory and
*also* the call-stack that lead to the memory being freed.

- Andres



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

Предыдущее
От: Michal Novotný
Дата:
Сообщение: Re: [BUGS] [HACKERS] Segmentation fault in libpq
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14727: Inicial running of Postgres.