glibc pthread_cond_timedwait deadlock
Issue
-
We are investigating and issue which causes sporadic but recurring hangs. It looks like a
pthread_cond_timedwaitdeadlock in glibc. There are various reports on the Internet that this function has been or is buggy. The small program to reproduce the problem produces the same stack traces that we observe in our hanging process. This is mentioned on the glibc bug tracker and Launchpad: - Ubuntu glibc bug 1899800 - Runtime deadlock: pthread_cond_signal failed to wake up pthread_cond_wait due to a bug in undoing stealing
Environment
- Red Hat Enterprise Linux 8
glibc- Multi-threaded code using Linux POSIX threads (aka pthreads)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.