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

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: [BUGS] [HACKERS] Segmentation fault in libpq
Дата
Msg-id CAMsr+YF9jdu4TpX9F9WcwYqWSvp+4t20nwJNkOgqMfVVQ7TdsQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] [HACKERS] Segmentation fault in libpq  (Andres Freund <andres@anarazel.de>)
Ответы Re: [BUGS] [HACKERS] Segmentation fault in libpq  (Michal Novotny <michal.novotny@greycortex.com>)
Список pgsql-hackers
On 3 July 2017 at 03:12, Andres Freund <andres@anarazel.de> wrote:
> 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.

Yep, huge help.

BTW, on Windows, the free tool DrMemory (now 64-bit too, yay) or
commercial Purify work great.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: [HACKERS] Multi column range partition table
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] "SELECT *" vs hidden columns and logical column order