glibc/sysdeps
Stafford Horne 9874ca536b pthread/tst-cancel28: Fix barrier re-init race condition
When running this test on the OpenRISC port I am working on this test
fails with a timeout.  The test passes when being straced or debugged.
Looking at the code there seems to be a race condition in that:

  1 main thread: calls xpthread_cancel
  2 sub thread : receives cancel signal
  3 sub thread : cleanup routine waits on barrier
  4 main thread: re-inits barrier
  5 main thread: waits on barrier

After getting to 5 the main thread and sub thread wait forever as the 2
barriers are no longer the same.

Removing the barrier re-init seems to fix this issue.  Also, the barrier
does not need to be reinitialized as that is done by default.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2021-09-28 10:47:08 -03:00
..
aarch64 aarch64: Disable A64FX memcpy/memmove BTI unconditionally 2021-09-24 13:26:59 +01:00
alpha elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
arc elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
arm elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
csky elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
generic Disable symbol hack in libc_nonshared.a 2021-09-27 07:46:25 -07:00
gnu Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
hppa elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
htl htl: Reimplement GSCOPE 2021-09-16 01:04:17 +02:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 i386: Port elf_machine_{load_address,dynamic} from x86-64 2021-09-24 09:36:32 -07:00
ia64 Add narrowing fma functions 2021-09-22 21:25:31 +00:00
ieee754 powerpc64le: Avoid conflicting types for f64xfmaf128 when IFUNC is not used 2021-09-23 19:29:54 -03:00
m68k elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
mach misc: Add __get_nprocs_sched 2021-09-27 09:13:06 -03:00
microblaze elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
mips ld.so: Replace DL_RO_DYN_SECTION with dl_relocate_ld [BZ #28340] 2021-09-22 11:12:43 -07:00
nios2 elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
nptl nptl: Fix type of pthread_mutexattr_getrobust_np, pthread_mutexattr_setrobust_np (bug 28036) 2021-09-21 07:13:05 +02:00
posix posix: Remove spawni.c 2021-09-27 12:44:25 -03:00
powerpc powerpc: Delete unneeded ELF_MACHINE_BEFORE_RTLD_RELOC 2021-09-27 10:12:50 -07:00
pthread pthread/tst-cancel28: Fix barrier re-init race condition 2021-09-28 10:47:08 -03:00
riscv Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s390 elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
sh elf: Remove THREAD_GSCOPE_IN_TCB 2021-09-16 01:04:20 +02:00
sparc Add narrowing fma functions 2021-09-22 21:25:31 +00:00
unix linux: Revert the use of sched_getaffinity on get_nproc (BZ #28310) 2021-09-27 09:18:43 -03:00
wordsize-32 Disable symbol hack in libc_nonshared.a 2021-09-27 07:46:25 -07:00
wordsize-64 Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
x86 Fix sysdeps/x86/fpu/s_ffma.c for 32-bit FMA processor case 2021-09-24 17:59:22 +00:00
x86_64 Add narrowing fma functions 2021-09-22 21:25:31 +00:00