From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24816 invoked by alias); 29 Oct 2006 20:10:46 -0000 Received: (qmail 24808 invoked by uid 22791); 29 Oct 2006 20:10:45 -0000 X-Spam-Check-By: sourceware.org Received: from smtpd1.aruba.it (HELO smtp3.aruba.it) (62.149.128.206) by sourceware.org (qpsmtpd/0.31) with SMTP; Sun, 29 Oct 2006 20:10:42 +0000 Received: (qmail 11446 invoked by uid 89); 29 Oct 2006 20:10:38 -0000 Received: by simscan 1.1.0 ppid: 11248, pid: 11419, t: 1.5997s scanners: clamav: 0.88.4/m:40/d:1722 Received: from unknown (HELO ?192.168.2.2?) (catrauser/catrasoftware.it@87.4.229.193) by smtp3.aruba.it with SMTP; 29 Oct 2006 20:10:36 -0000 Message-ID: <454518D0.3080106@catrasoftware.it> Date: Sun, 29 Oct 2006 20:10:00 -0000 From: Giuliano Catrambone User-Agent: Thunderbird 1.5.0.5 (X11/20060808) MIME-Version: 1.0 To: Stephen Croall CC: pthreads-win32@sources.redhat.com Subject: Re: Memory leak with detached threads References: <5D819E730A717F47BC9B256CCE55297001C410D6@NA-PA-VBE02.na.tibco.com> In-Reply-To: <5D819E730A717F47BC9B256CCE55297001C410D6@NA-PA-VBE02.na.tibco.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: smtp3.aruba.it 1.6.2 0/1000/N X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2006/txt/msg00057.txt.bz2 Hi Stephen, the initial version of the code was using pthread_detach() and I had the same issue, a leak about 4KB every 20 iterations. Do you have some other ideas? Thanks giu Stephen Croall wrote: > DOH! > > Just realised that you are calling pthread_attr_setdetachstate(). You > could change to calling pthread_detach() to see if the memory leak still > happens. We use this call a lot in our code and have no problems with > leaks. > > Steve. > > > -- ----------------------------------------------------------------- Giuliano Catrambone Director, Professional Services Open source projects: http://sourceforge.net/projects/catralibraries/ http://sourceforge.net/projects/openstreaming/ CatraSoftware: Home page: http://www.catrasoftware.it Streaming page: http://www.catrasoftware.it/Streaming/CatraStreamingPlatform.htm Mobile +39.393.8816655 Fixed: +39.02.90377228 Skype: Catrambone Giuliano msn: giulianocatrambone@hotmail.com Jabber: giuliano.catrambone@Jabber.org Yahoo: giuliano.catrambone -----------------------------------------------------------------