Google Open-Sources GWPSan As A New Sanitizer Framework

Written by Michael Larabel in Programming on 11 June 2024 at 06:25 AM EDT. 3 Comments
Google is known for their many contributions to open-source compilers and particular many different sanitizer efforts over the years. Their newest project they have made open-source in this area is GWPSan as a sampling-based sanitizer framework.

GWPSan is described by the project's README as:
"GWPSan is a framework for low-overhead sampling-based dynamic binary instrumentation, designed for implementing various bug detectors (also called "sanitizers") suitable for production uses. GWPSan does not modify the executed code, but instead performs dynamic analysis from signal handlers."

This sampling-based sanitizer framework is separate from GWP-ASan as a lower-overhead alternative to LLVM's AddressSanitizer (ASAN). GWPSan does depend upon the Bazel build system, supports various tunable flags with otherwise off by default behavior, and is under an Apache license.

GWPSan currently provides tools for a use-after-return detector (UAR), data race detector (TSan), and use of uninitialized memory detector (LMSan).

GWPSan on GitHub

Those wishing to learn more about Google's GWPSan sanitizer framework can learn more via the GitHub repository.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week