X-Spam-Check-By: sourceware.org Date: Thu, 16 Mar 2006 18:11:39 +0100 From: Samuel Thibault To: cygwin AT cygwin DOT com Subject: Re: pthread_create leaves valid mutex pointers on the stack Message-ID: <20060316171139.GM4280@implementation.labri.fr> Mail-Followup-To: cygwin AT cygwin DOT com References: <17433 DOT 39495 DOT 950903 DOT 287320 AT metro-north DOT cs DOT columbia DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <17433.39495.950903.287320@metro-north.cs.columbia.edu> User-Agent: Mutt/1.5.11 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 Hi, Jonathan Lennox, le Thu 16 Mar 2006 12:03:03 -0500, a écrit : Content-Description: message body text > In general, the idea of verifying objects on their init functions seems > dubious to me -- how can you tell initialized objects from random stack or > heap garbage? Posix says: Attempting to initialize an already initialized mutex results in undefined behavior. But the behavior you desribe is weird indeed :) Regards, Samuel -- 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/