From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5537 invoked by alias); 30 Aug 2003 02:35:22 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 5497 invoked from network); 30 Aug 2003 02:35:21 -0000 Received: from unknown (HELO real.ise.canberra.edu.au) (137.92.140.34) by sources.redhat.com with SMTP; 30 Aug 2003 02:35:21 -0000 Received: from ise.canberra.edu.au (special.ise.canberra.edu.au [137.92.140.39]) by real.ise.canberra.edu.au (8.11.6/8.11.6) with ESMTP id h7U2Yai19327; Sat, 30 Aug 2003 12:34:51 +1000 Message-ID: <3F500D2A.7010700@ise.canberra.edu.au> Date: Sat, 30 Aug 2003 02:35:00 -0000 From: Ross Johnson Reply-To: rpj@ise.canberra.edu.au User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: phuong nguyen CC: pthreads-win32@sources.redhat.com Subject: Re: pthread_mutex_lock leaking memory? References: <45EC781FB567314B862CEA4CC72ABF0C05974C@sj-ex-02.xambala.local> In-Reply-To: <45EC781FB567314B862CEA4CC72ABF0C05974C@sj-ex-02.xambala.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003/txt/msg00081.txt.bz2 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 > >