This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
pthread_cond_wait hangs on pthread_cancel when mutex uses PRIO_INHERIT
- From: "Robert K. Johnson" <rj dot rkjohnson at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Wed, 9 Apr 2014 09:53:13 -0700
- Subject: pthread_cond_wait hangs on pthread_cancel when mutex uses PRIO_INHERIT
- Authentication-results: sourceware.org; auth=none
- Reply-to: RJ dot RKJohnson at gmail dot com
I have seen other entries on this problem and I am aware of the patch
titled "Fix exception table for i386 pthread_cond_wait". I have the
same problem described in these other entries where it only hangs when
PRIO_INHERIT is used with the mutex.
I am working with an embedded system that uses a Freescale P2020
processor. I am using the Gentoo Linux distribution as provided by
the SBC vendor. It uses glibc 2.15-r2 with gcc 4.6.3. I need to use
PRIO_INHERIT because the condition variable is used by several threads
of different SCHED_RR and SCHED_FIFO priorities.
I am assuming that the i386 does not apply to the Freescale P2020?
Is there a more general patch that fixes this problem for all platforms?
This problem also occurs on an x86_64 system that uses the Ubuntu
Linux distribution with glibc 2.15 and gcc 4.6.3.