UBSANOPTIONS
UBSANOPTIONS refers to the configuration string used to control the Undefined Behavior Sanitizer (UBSan) in the LLVM/Clang toolchain. UBSan is a runtime instrumenter that detects various kinds of undefined behavior in program execution. The options can be supplied to the sanitizer via an environment variable—commonly named UBSAN_OPTIONS—and, in some contexts, users refer to the option string as UBSANOPTIONS.
The configuration is expressed as a list of key=value pairs that modify how UBSan reports and handles
Common practical use cases include enabling stack traces on errors to aid debugging and deciding whether the
UBSan_OPTIONS is most commonly used when building or running code compiled with -fsanitize=undefined. It provides a
See also: Undefined Behavior Sanitizer (UBSan), Clang/LLVM sanitizers, -fsanitize=undefined, runtime diagnostics.