X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A26BE2C.3050403@gmail.com> Date: Wed, 03 Jun 2009 19:17:16 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [1.7] pthread_mutex_lock/pthread_mutex_unlock strange blocking problem References: <9bfd07db0906020711p328add96h4314d412b817048c AT mail DOT gmail DOT com> In-Reply-To: <9bfd07db0906020711p328add96h4314d412b817048c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Thomas Stalder wrote: > Hello, > > Sometimes pthread_mutex_lock ou pthread_mutex_unlock block. Thank you very much for the simple testcases. I have located an invalid racy optimisation in cygwin's internal lock handling that leads to a deadlock owing to unmatched lock acquire/releases, and posted a patch combining that with the fix for the previous deadlock at: http://cygwin.com/ml/cygwin-patches/2009-q2/msg00068.html (As before, I could send you a DLL with the fix compiled in off-list for testing if you like.) cheers, DaveK -- 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/