[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xcb
Subject:    Re: [Xcb] [RFC] [PATCH 0/4] pthread cancellation
From:       Josh Triplett <josh () joshtriplett ! org>
Date:       2010-01-08 0:13:18
Message-ID: 20100108001318.GA30309 () cloud
[Download RAW message or body]

On Thu, Jan 07, 2010 at 10:17:33PM +0200, Rémi Denis-Courmont wrote:
> Le jeudi 7 janvier 2010 21:48:53 Jamey Sharp, vous avez écrit :
> > Finally, another point Ian raised: How can we tell whether you've made
> > every call safe? Is there any good way to either test this or be
> > convinced by inspection? Massive bonus points if you add tests to
> > XCB's (rather pathetic) test suite.
> 
> AFAICT, resource leak is the most likely consequence of bug in that regard. 
> Testing those is not easy, unless you can instrument the functions doing 
> resource allocation and releasing. Namely one'd need its own malloc/free, 
> getaddrinfo/freeaddrinfo, socket/close functions to do accounting :/

Sounds like something we could potentially test with valgrind.

- Josh
_______________________________________________
Xcb mailing list
Xcb@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xcb

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic