From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28374 invoked by alias); 29 Oct 2006 20:20:22 -0000 Received: (qmail 28365 invoked by uid 22791); 29 Oct 2006 20:20:21 -0000 X-Spam-Check-By: sourceware.org Received: from ws.tomotherapy.com (HELO EVS1.tomotherapy.com) (66.170.4.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Oct 2006 20:20:19 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Memory leak with detached threads Date: Sun, 29 Oct 2006 20:20:00 -0000 Message-ID: In-Reply-To: <45450435.5080104@catrasoftware.it> From: "Tim Theisen" To: "Giuliano Catrambone" , 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/msg00058.txt.bz2 Did you consider using the latest version? The current version is 2.7.0 (2005-06-04) http://sourceware.org/pthreads-win32/ Version 2.6.0 specifically mentions a resource leak with pthread_detach(): * pthread_detach() now reclaims remaining thread resources if called after the target thread has terminated. Previously, this routine did nothing in this case. http://sourceware.org/pthreads-win32/news.html =20 ...Tim -- Tim Theisen Lead Research Software Engineer Phone: +1 608 824 2848 TomoTherapy Incorporated Fax: +1 608 824 2996 1240 Deming Way Web: http://www.tomotherapy.com Madison, WI 53717-1954=20=20 -----Original Message----- From: pthreads-win32-owner@sourceware.org [mailto:pthreads-win32-owner@sourceware.org] On Behalf Of Giuliano Catrambone Sent: Sunday, October 29, 2006 13:43 To: pthreads-win32@sources.redhat.com Subject: Memory leak with detached threads Hi all, I found a memory leak working with detached threads. I just made a simple C code to demonstrate where I have the memory leak. Running the attached C code I saw about 4KB of memory leak every 20 iteration. I'm using pthreads-dll-2005-03-08. Could you tell me if I'm wronging something or if it is a bug? Thanks in advance giu -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------