mailing list of musl libc
 help / color / mirror / code / Atom feed
* pthread cancel cleanup and pthread_mutex_lock
@ 2018-05-29 23:54 Patrick Oppenlander
  2018-05-30  0:06 ` Patrick Oppenlander
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Oppenlander @ 2018-05-29 23:54 UTC (permalink / raw)
  To: musl

I've recently been running some of the open posix testsuite tests from
the linux test project.

One particular test has been giving me headaches:
https://github.com/linux-test-project/ltp/blob/master/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/1-2.c

There are a couple of different tests in there but the most
interesting one is the deadlock test which does the following:

Thread A:          Thread B:
pthread_create
                   pthread_cleanup_push(...)
                   pthread_mutex_lock(M)
                   pthread_setcanceltype(ASYNC)
                   pthread_setcancelstate(ENABLE)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-30  1:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-29 23:54 pthread cancel cleanup and pthread_mutex_lock Patrick Oppenlander
2018-05-30  0:06 ` Patrick Oppenlander
2018-05-30  0:50   ` Rich Felker
2018-05-30  1:36     ` Patrick Oppenlander

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).