From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30373 invoked by alias); 5 Mar 2014 00:32:09 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 30322 invoked by uid 48); 5 Mar 2014 00:32:05 -0000 From: "andi-bz at firstfloor dot org" To: glibc-bugs@sourceware.org Subject: [Bug nptl/16657] Lock elision breaks pthread_mutex_trylock Date: Wed, 05 Mar 2014 00:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.18 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andi-bz at firstfloor dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00024.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16657 --- Comment #3 from Andi Kleen --- The patch is wrong. Adds a race. The return value of pthread_mutex_destroy is undefined. I originally couldn't find any software that cares about this, so it was changed. If someone really cares about the return value the "right" change would be to add an abort to destroy. -- You are receiving this mail because: You are on the CC list for the bug.