Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150301025954.GA8801@brightrain.aerifal.cx>
Date: Sat, 28 Feb 2015 21:59:54 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: libc-test: regression test for __timedwait ECANCELED omission

Attached is a regression test in the libc-test framework for the bug
fixed in commit 76ca7a5446a8aec2b671a401d5e1878c4704754e:

    fix failure of internal futex __timedwait to report ECANCELED
    
    as part of abstracting the futex wait, this function suppresses all
    futex error values which callers should not see using a whitelist
    approach. when the masked cancellation mode was added, the new
    ECANCELED error was not whitelisted. this omission caused the new
    pthread_cond_wait code using masked cancellation to exhibit a spurious
    wake (rather than acting on cancellation) when the request arrived
    after blocking on the cond var.

Rich

View attachment "pthread_cond_wait-cancel_ignored.c" of type "text/plain" (1246 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.