Return-Path: Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: (qmail 8664 invoked from network); 26 Jun 2008 21:39:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 21:39:27 -0000 Received: (qmail 20755 invoked by uid 500); 26 Jun 2008 21:39:28 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 20731 invoked by uid 500); 26 Jun 2008 21:39:28 -0000 Mailing-List: contact bugs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apr.apache.org Delivered-To: mailing list bugs@apr.apache.org Received: (qmail 20720 invoked by uid 99); 26 Jun 2008 21:39:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 14:39:28 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 21:38:47 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id A4968234C150; Thu, 26 Jun 2008 14:39:06 -0700 (PDT) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: DO NOT REPLY [Bug 45291] New: apr_thread_t is leaking X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: APR X-Bugzilla-Component: APR X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joe.Mudd@sas.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@apr.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 26 Jun 2008 14:39:06 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45291 Summary: apr_thread_t is leaking Product: APR Version: HEAD Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: APR AssignedTo: bugs@apr.apache.org ReportedBy: Joe.Mudd@sas.com Created an attachment (id=22184) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22184) Proposed updates to 1.3 copy of win32/thread.c I was trying to locate memory leaks while running an application on Windows and found that the apr_thread_t allocated w/in apr_thread_create() is never freed. This leak is noticable when the process has lots of transient threads. In my case the transient threads are managed by the thread pooling support in apr_thread_pool.c. In a test copy I updated apr_thread_create() to allocate the apr_thread_t out of the pool created by apr_thread_create(). apr_thread_exit() and apr_thread_join() had to be updated as well. I will attach a diff of the changes. The updates assume that the thread creator will call either apr_thread_detach() followed by apr_thread_exit() or apr_thread_join() to clean up the thread. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org For additional commands, e-mail: bugs-help@apr.apache.org