Project

General

Profile

Bug #1331

[PATCH] libthread_xu: fix problem with umtx errno override

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


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 View (1.16 KB) alexh, 04/23/2009 12:40 PM

History

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