Re: [BUGS] [HACKERS] Segmentation fault in libpq - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: [BUGS] [HACKERS] Segmentation fault in libpq
Date
Msg-id CAHyXU0yjj49MzD5Sei3g4ihL_gzVDxFhJt2Qs9NfgYkaJEw4hA@mail.gmail.com
Whole thread Raw
In response to Re: [BUGS] [HACKERS] Segmentation fault in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [BUGS] [HACKERS] Segmentation fault in libpq  (Michal Novotný <michal.novotny@greycortex.com>)
List pgsql-hackers
On Thu, Jun 29, 2017 at 9:12 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Merlin Moncure <mmoncure@gmail.com> writes:
>> On Thu, Jun 29, 2017 at 8:23 AM, Michal Novotny
>> <michal.novotny@greycortex.com> 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).
>
> valgrind is not a perfect tool for finding that kind of problem,
> especially if you can't reproduce the crash reliably; but at least
> valgrind is readily available and easy to use, so you might as
> well start there and see if it finds anything.  If you have access
> to any sort of static analysis tool (eg, Coverity), that might be
> more likely to help.  Or you could fall back on manual code
> auditing, if the program isn't very big.

clang static analyzer is another good tool to check out

https://clang-analyzer.llvm.org/

merlin



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] [HACKERS] Segmentation fault in libpq
Next
From: Adrien Nayrat
Date:
Subject: Re: [HACKERS] Dumping database creation options and ACLs