[compiler-rt] [rtsan] Support legacy pthread_cond variables (PR #152947)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 09:44:52 PDT 2025


cjappl wrote:

> I have created #154268 to simplify the tsan `pthread_cond_t` interceptors.
> 
> https://maskray.me/blog/2023-01-08-all-about-sanitizer-interceptors
> 
> > Before glibc 2.36, dlsym(RTLD_NEXT, name) returned the address of the oldest version definition of name in libc.so.6. And we got to use the old semantics. This is usually benign but not ideal (see [google/sanitizers#1371](https://github.com/google/sanitizers/issues/1371) for a regexec issue). I fixed glibc 2.36 ([BZ #14932](https://sourceware.org/bugzilla/show_bug.cgi?id=14932)) so that dlsym(RTLD_NEXT, name) returns the default version definition now.
> 
> https://maskray.me/blog/2022-05-29-glibc
> 
> > Take x86_64 as an example. sysdeps/unix/sysv/linux/x86_64/64/shlib-versions says that x86_64's earliest symbol is at GLIBC_2.2.5. $build/abi-versions.h contains:

Thanks @MaskRay ! After that's merged, I'll update to follow that pattern.

https://github.com/llvm/llvm-project/pull/152947


More information about the llvm-commits mailing list