https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99814
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Alex Richardson from comment #5) > Does the sanitizer runtime library include the > https://reviews.llvm.org/D96348 patch? Yes, the change was merged into GCC master some time ago. > > IMO the real issue is that dlsym() with RTLD_NEXT selects the oldest > versioned symbol. Not sure why that behaviour was chosen. > I'm sure there are lots of other sanitizer interceptors that are also > affected by https://sourceware.org/bugzilla/show_bug.cgi?id=1319. Shouldn't dlvsym return the only one symbol in this case? Can't we rely on that?