* pthread_mutex_lock leaking memory?
@ 2003-08-29 21:00 phuong nguyen
2003-08-30 2:35 ` Ross Johnson
0 siblings, 1 reply; 2+ messages in thread
From: phuong nguyen @ 2003-08-29 21:00 UTC (permalink / raw)
To: pthreads-win32
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: pthread_mutex_lock leaking memory?
2003-08-29 21:00 pthread_mutex_lock leaking memory? phuong nguyen
@ 2003-08-30 2:35 ` Ross Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Ross Johnson @ 2003-08-30 2:35 UTC (permalink / raw)
To: phuong nguyen; +Cc: pthreads-win32
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
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-30 2:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29 21:00 pthread_mutex_lock leaking memory? phuong nguyen
2003-08-30 2:35 ` Ross Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).