[PATCH] Fix sporadic failure in tst-eintr1 test case
Siddhesh Poyarekar
siddhesh@redhat.com
Thu Sep 20 08:46:00 GMT 2012
Hi,
Debian has been using the attached patch to work around the race
condition within the kernel that causes sporadic failures in
tst-eintr1. A background for this can be found here:
http://sourceware.org/ml/libc-help/2012-06/msg00000.html
To summarize, the kernel calls futex_wake on the tid and wakes up the
joiner thread before it takes the underlying task off the tasklist and
hence reduces the nproc count for the user. If the machine is fast
enough, you could end up with tasks that have completed but not taken
off the list yet and the nproc limit being hit. The patch modifies the
test to write out a '!' to the output indicating that such a condition
was reached and continues the test. OK to commit?
Regards,
Siddhesh
2012-09-20 Jonathan Nieder <jrnieder@gmail.com>
* nptl/tst-eintr1.c (tf1): Tolerate EAGAIN from pthread_create.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst-eintr1.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120920/cfac3207/attachment.bin>
More information about the Libc-alpha
mailing list