+23
−11
+20
−0
src/test/e2e/pthread_key_reuse_test.cpp
0 → 100644
+96
−0
+12
−1
Loading
pthread_key_create() reused the slot of a deleted key and every thread
still saw the value it had set for the old one. createrepo_c calls
xmlCleanupParser() and then goes on using libxml2: the re-initialization
got the same key and with it the main thread's freed state, so --update
wrote an unindented repomd.xml and crashed freeing that state again in
exit().
Each value now records the key's seq; get and the key destructors ignore
it when that differs, as in glibc.
e2e_pthread_key_reuse tests main, worker threads and pthread_exit().
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>