This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_mutex_lock leaking memory?


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]