[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#788999: pthread_mutex_trylock on x86 with lock elision is broken



control: fixed -1 glibc/2.21-0experimental0

On 2015-06-16 15:51, Brian Silverman wrote:
> Package: libc6
> Version: 2.19-18
> Severity: important
> 
> The released version of glibc in jessie incorrectly returns a failure
> from pthread_mutex_destroy when pthread_mutex_trylock is used on my
> machine (which is amd64). It might only happen on hardware with lock
> elision support. The upstream patch at
> https://sourceware.org/ml/libc-alpha/2014-12/msg00228.html fixes the
> problem.
> 
> The sysdeps/unix/sysv/linux/x86/force-elision.h file in the patch is
> named nptl/sysdeps/unix/sysv/linux/x86/force-elision.h in Debian's
> version and the sysdeps/unix/sysv/linux/s390/force-elision.h file
> doesn't exist.

I have just committed a fix to our SVN in the stable branch. If accepted
by the Debian stable release manager, we plan to have it in the next
stable point release.

Given this bug is fixed in the experimental branch, I am marking it as
fixed for this version.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: