X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 8 Oct 2008 22:03:38 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Memory leak with timer Message-ID: <20081009020338.GA29476@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <48EBDDF4 DOT 20503 AT xs4all DOT nl> <20081007232949 DOT GA13962 AT ednor DOT casa DOT cgf DOT cx> <48EC02C3 DOT 9080403 AT xs4all DOT nl> <20081008020850 DOT GA28332 AT ednor DOT casa DOT cgf DOT cx> <48ED154E DOT 2040708 AT xs4all DOT nl> <48ED182C DOT 9000907 AT cygwin DOT com> <48ED20F9 DOT 8080201 AT xs4all DOT nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48ED20F9.8080201@xs4all.nl> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed, Oct 08, 2008 at 11:07:05PM +0200, Bob van Loosen wrote: >Larry Hall (Cygwin) wrote: >>Bob van Loosen wrote: >>>Christopher Faylor wrote: >>>>On Wed, Oct 08, 2008 at 02:45:55AM +0200, Bob van Loosen wrote: >>>> >>>>>Christopher Faylor wrote: >>>>>>This should be fixed in the next snapshot. If you are looking for a >>>>>>workaround, specifically set the sigev_notify_attributes to >>>>>>PTHREAD_CREATE_DETACHED. >>>>>> >>>>>Thanks, that fixed it. Shouldn't PTHREAD_CREATE_DETACHED be default? >>>>>That's what the opengroup.org site says. >>>> >>>>Maybe you need to reinvestigate the meaning of "fixed" and >>>>"workaround"? >>>From my point of view, the workaround fixed the memory leak. >> >>So if the workaround was the fix in your mind, why the follow-up >>question? I think the point that's being missed here is that there was >>a way Chris found for you to move beyond the problem even without his >>fix. But there was a problem that needed fixing so that the next >>person doesn't run into the same thing. If that makes sense to you, >>then you've gotten all you can from this thread. > >I was only curious why using a pthread_attr_t with the default >attributes makes a difference. It was a bug. The bug was fixed in the next snapshot. Second base. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/