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

Bug#551903: libc6-i686 pthread_cond_wait fails to reacquire mutex upon cancellation



On Mon, Oct 26, 2009 at 06:47:45PM +0200, Rémi Denis-Courmont wrote:
> Le lundi 26 octobre 2009 10:10:45 Aurelien Jarno, vous avez écrit :
> > > I'm running on a single core SMT (P4/HT namely), so instruction cycle
> > > timing might be very different from what an UP or non-SMT SMP gets :( In
> > > any case, the fact that is only occurs with libc6-i686 hints at incorrect
> > > use of atomic ops, I guess...
> > 
> > Problems related to atomic ops often comes, or at least are triggered
> > by, gcc changes. I have rebuilt eglibc 2.10.1-2 using gcc-4.3 instead of
> > gcc-4.4. The packages are available on http://temp.aurel32.net/eglibc/
> > Could you please tell me if you have the same problem with them?
> 
> Good catch. I could not reproduce the problem with 2.10.1-2+gcc4.3, neither 
> with the test case nor with VLC media player.
> 

Thanks for the test. It's the solution I'll use if I can't find the real
problem. Looking at the recent upstream commits, the problem may be
fixed by this commit:

http://repo.or.cz/w/glibc.git?a=commit;h=e73e694e38b7b222eec3ec5897eb507d88bb8928

As I can't reproduce the problem here, if I build packages with this 
patch, would it be possible for you to test them?

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: