From: | Michal Novotny <michal(dot)novotny(at)greycortex(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Merlin Moncure <mmoncure(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [BUGS] Segmentation fault in libpq |
Date: | 2017-07-03 07:33:31 |
Message-ID: | cfa95e37-84c9-3372-290f-f71c4539346c@greycortex.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On 07/02/2017 09:12 PM, Andres Freund 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.
>
> - Andres
Well, I've tried but I was unable to locate the issue so I had to
investigate the code our little further and finally I've been able to
find the issue.
Thanks again,
Michal
--
Michal Novotny
System Development Lead
michal(dot)novotny(at)greycortex(dot)com
GREYCORTEX s.r.o.
Purkynova 127, 61200 Brno
Czech Republic
www.greycortex.com
From | Date | Subject | |
---|---|---|---|
Next Message | Michal Novotny | 2017-07-03 07:36:15 | Re: [BUGS] Segmentation fault in libpq |
Previous Message | Craig Ringer | 2017-07-03 02:58:53 | Re: [HACKERS] Segmentation fault in libpq |
From | Date | Subject | |
---|---|---|---|
Next Message | Michal Novotny | 2017-07-03 07:36:15 | Re: [BUGS] Segmentation fault in libpq |
Previous Message | Amit Kapila | 2017-07-03 06:28:26 | Re: Proposal : For Auto-Prewarm. |