[PATCH] tst-cond16 fix - NPTL part

Thorsten Kukuk kukuk at suse.de
Fri May 21 11:37:11 UTC 2004


On Fri, May 21, Jakub Jelinek wrote:

> On Fri, May 21, 2004 at 08:41:39AM +0200, Thorsten Kukuk wrote:
> > On Thu, May 20, Jakub Jelinek wrote:
> > 
> > > Hi!
> > > 
> > > This is the NPTL part of the tst-cond16 fix.
> > 
> > For PPC (and some other architectures) I need the attached patch
> > for compiling. But while on ix86 the patch alone (without fixed
> > kernel) solves the problem, it does not do so on PPC.
> 
> Ok, I admit I have only tested this on i386 (4xHT) and x86_64 (UP only)
> so far.
> On PPC, is tst-cond16 the only test that fails with this patch?
> Are you using a kernel without FUTEX_CMP_REQUEUE there as well?
> Can you see with say strace if FUTEX_CMP_REQUEUE returns an error in all
> cases that it is run and that it does the FUTEX_WAKE call afterwards?

Yes, it Calls FUTEX_CMP_REQUEUE, which fails and than it calls
FUTEX WAKE:

26413 futex(0x10011bf4, 0x4 /* FUTEX_??? */, 1 <unfinished ...>
26413 <... futex resumed> )             = -1 ENOSYS (Function not implemented)
26413 futex(0x10011bf4, FUTEX_WAKE, 2147483647 <unfinished ...>
26413 <... futex resumed> )             = 2

  Thorsten
-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk at suse.de
SuSE Linux AG        Maxfeldstr. 5                 D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B





More information about the Phil-list mailing list