Re: Valgrind Memcheck support - Mailing list pgsql-hackers

From Noah Misch
Subject Re: Valgrind Memcheck support
Date
Msg-id 20130911033203.GC225735@tornado.leadboat.com
Whole thread Raw
In response to Re: Valgrind Memcheck support  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On Fri, Sep 06, 2013 at 09:55:09PM +0100, Greg Stark wrote:
> On Sun, Jun 9, 2013 at 10:25 PM, Noah Misch <noah@leadboat.com> wrote:
> >  - Memcheck has support for detecting leaks.  I have not explored that
> > side at
> >   all, always passing --leak-check=no.  We could add support for freeing
> >   "everything" at process exit, thereby making the leak detection
> > meaningful.
> >
> 
> I think this is missing the type of leaks we actually care about. The way
> palloc works we can be virtually certain that if we did that we wouldn't
> have any leaks. All it would detect are the random one-off mallocs we know
> very well are there.

Probably so; it's not too promising.

-- 
Noah Misch
EnterpriseDB                                 http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: Pending query cancel defeats SIGQUIT
Next
From: Noah Misch
Date:
Subject: Weaker shmem interlock w/o postmaster.pid