[PATCH 00/11] Add initial support for --enable-ubsan

Florian Weimer fweimer@redhat.com
Mon Aug 4 13:52:52 GMT 2025


* Adhemerval Zanella:

> This patchset is preliminary and incomplete to enable glibc to be built
> with Undefined Behavior Sanitizer (UBSAN) [1]. UBSAN uses compiler
> instrumentation that triggers internal callbacks when undefined behavior
> happens at runtime.

I previously objected to these changes.  But now I think it's okay if we
can enable this kind of usage even if it means adding some limited
workarounds for GCC bugs (assuming that proper GCC bugs, with
preprocessed sources as appropriate, have been filed for these bugs, and
they are referenced in source code comments).

Thanks,
Florian



More information about the Libc-alpha mailing list