Bug #1331

[PATCH] libthread_xu: fix problem with umtx errno override

Added by alexh over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:alexh% Done:


Target version:-


Simon Schubert found a bug today which causes an undesired value in
errno in a threaded context if a umtx syscall also returns an error.

This is the new fix:


readdir2.c Magnifier (1.16 KB) alexh, 04/23/2009 12:40 PM


#1 Updated by alexh over 6 years ago

Attached is a test case. Before the fix, when using an argument of 100 or so and
trying a few times, one will see one or more "thread tester error: Device busy".
This Device Busy comes from umtx and not readdir.
After applying the patch that error doesn't occur anymore.

Also available in: Atom PDF