Skip to content
  • Laurent Pinchart's avatar
    Enable ASan wherever possible · e0712aa6
    Laurent Pinchart authored
    
    
    The address sanitizer (ASan) reports issues at both build time and
    runtime. Enabling it in CI helps catching more issues.
    
    Ideally we would enable ASan for all builds. However, a bug in gcc 12
    affects the Debian bookworm build in release mode, so ASan can't be
    enabled unconditionally. To maximize test coverage, enable it in
    MESON_ALL_OPTIONS and in the test-unit build, and disable it explicitly
    where it causes issues.
    
    When build with clang, the ASan runtime needs to be separately installed
    for the default clang versions shipped by Debian Bookworm and Trixie.
    
    The former is a dependency of the clang package, by the latter isn't. It
    needs to be manually added to the Bookworm and Trixie containers as
    their default clang versions rely on libclang-rt-dev.
    
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
    Reviewed-by: default avatarKieran Bingham <kieran.bingham@ideasonboard.com>
    e0712aa6
Loading Validating GitLab CI configuration… Learn more
Loading