pthread_mutex_lock leaking memory?
Ross Johnson
rpj@ise.canberra.edu.au
Sat Aug 30 02:35:00 GMT 2003
I don't see how pthread_setcanceltype() is called through a mutex lock
on a PTHREAD_MUTEX_INITIALIZER mutex. Also, once the mutex is first
locked, the mutex is then like any other mutex initialised through
pthread_mutex_init().
Can you send a short code fragment that demonstrates the leak? Also,
some information on how you're running the library if it's unusual
(static linked etc).
BTW, I see that Rational (now IBM) lists pthreads-win32 amongst it's
third party components for the following products:
Rational Test Manager, Rational Quality Architect, Rational Robot,
Rational TestSuite
See
http://www.rational.com/docs/v2003/unix_solutions/html/legal_information.html?SMSESSION=NO
Ross
phuong nguyen wrote:
>Hi
>
>I'm using 5-10-03 snapshot of pthread-win32 with MSVC 6.0 SP5. It seems
>that when I init a mutex with PTHREAD_MUTEX_INITIALIZER, it would leaks
>44 bytes of memory when ever I do a lock on the mutex. Any one else
>encounter the same problem? Rational Purify trace the leak back to
>pthread_setcanceltype.
>
>Phuong
>
>
More information about the Pthreads-win32
mailing list