Bug #1331

[PATCH] libthread_xu: fix problem with umtx errno override

Added by alexh about 5 years ago. Updated almost 5 years ago.

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

0%

Category:-
Target version:-

Description

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:

http://gitweb.dragonflybsd.org/~alexh/dragonfly.git/commit/ac9d39b6181ccc289f198a8e80fae624aa7d3b2a

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

History

#1 Updated by alexh almost 5 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