Re: Valgrind Memcheck support

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: Valgrind Memcheck support
Дата
Msg-id 20130911033203.GC225735@tornado.leadboat.com
обсуждение исходный текст
Ответ на Re: Valgrind Memcheck support  (Greg Stark <stark@mit.edu>)
Список 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 по дате отправления:

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: Pending query cancel defeats SIGQUIT
Следующее
От: Noah Misch
Дата:
Сообщение: Weaker shmem interlock w/o postmaster.pid