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

2017-07-03 Thread Michal Novotny
On 07/03/2017 04:58 AM, Craig Ringer wrote: On 3 July 2017 at 03:12, 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 confus

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

2017-07-03 Thread Michal Novotny
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. Th

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

2017-07-02 Thread Craig Ringer
On 3 July 2017 at 03:12, 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 fu

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

2017-07-02 Thread Michal Novotný
Hi all, 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 c

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

2017-07-02 Thread Andres Freund
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

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

2017-06-29 Thread Merlin Moncure
On Thu, Jun 29, 2017 at 9:12 AM, Tom Lane wrote: > Merlin Moncure writes: >> On Thu, Jun 29, 2017 at 8:23 AM, Michal Novotny >> wrote: >>> Could you please help me based on information provided above? > >> You might want to run your code through some analysis tools (for >> example, valgrind). >

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

2017-06-29 Thread Tom Lane
Merlin Moncure writes: > On Thu, Jun 29, 2017 at 8:23 AM, Michal Novotny > wrote: >> Could you please help me based on information provided above? > You might want to run your code through some analysis tools (for > example, valgrind). Yeah, that's what I was about to suggest. pqexpbuffer.c is