[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug: pthread TLS/TSS key destructors are not always invoked
From: |
Bruno Haible |
Subject: |
bug: pthread TLS/TSS key destructors are not always invoked |
Date: |
Mon, 04 Jan 2021 09:00:36 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
This test program, that works fine on all other Unix platforms (including
glibc/Linux), fails on glibc/Hurd.
I'm using the Debian Hurd distribution from 2020-07-31, downloaded from
https://cdimage.debian.org/cdimage/ports/latest/hurd-i386/20200731/debian-sid-hurd-i386-DVD-1.iso
Libc is 'Debian GLIBC 2.31-2'.
How to reproduce:
$ gcc-10 -Wall test-pthread-tss.c -ggdb -lpthread
$ ./a.out
It prints:
Starting test_tss ... OK
Starting test_tss_dtorcheck1 ...
and then runs into the abort() in line 382.
At this point, sum=4995 and expected_sum=5050. This means that for some
of the pthread keys, the destructor was not invoked.
It's also reproducible in a Hurd distro from 2019.
Bruno
test-pthread-tss.c
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug: pthread TLS/TSS key destructors are not always invoked,
Bruno Haible <=