[Bug sanitizer/123874] Incorrect interception of deprecated symbols causes crash under sanitizers
kirelagin at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 29 13:35:51 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123874
--- Comment #3 from Kirill Elagin <kirelagin at gmail dot com> ---
Actually, now that I think of it, the problem is not limited to deprecated
symbols. It can happen with any symbol that is intercepted and resides in a
shared object that is not linked to by the main executable, but is linked to by
a dlopen-ed object.
For example, sanitizers intercept `__b64_ntop` and `__b64_pton`, which are
defined in `libresolv.so`. It is conceivable that they are not available at
startup, but, later, a plugin is loaded that depends on `libresolv.so`, causing
the same kind of crash.
More information about the Gcc-bugs
mailing list