{"id":26740,"url":"https://patchwork.libcamera.org/api/patches/26740/?format=json","web_url":"https://patchwork.libcamera.org/patch/26740/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260512144520.171290-3-laurent.pinchart@ideasonboard.com>","date":"2026-05-12T14:45:19","name":"[libcamera-ci,2/3] Disable ASan and debugstl in release builds","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"eefaa66822d59b55de3f1785f86482491247c2c5","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/26740/mbox/","series":[{"id":5939,"url":"https://patchwork.libcamera.org/api/series/5939/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5939","date":"2026-05-12T14:45:17","name":"Move release builds to Debian 13","version":1,"mbox":"https://patchwork.libcamera.org/series/5939/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/26740/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/26740/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 1968EC32F7\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 12 May 2026 14:45:29 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 849EE63025;\n\tTue, 12 May 2026 16:45:27 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 92F356271A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 12 May 2026 16:45:24 +0200 (CEST)","from killaraus.ideasonboard.com\n\t(2001-14ba-70f3-e800--a06.rev.dnainternet.fi\n\t[IPv6:2001:14ba:70f3:e800::a06])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id ACB3656D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 12 May 2026 16:45:16 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"bjHLNuNz\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1778597116;\n\tbh=m+vH1k5+fRRc6yDcGrvwMmwObFEPuIUxzowyQuThYV4=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=bjHLNuNznKZFTbMP1ShBH6kMC5tqP11epdzIucWuZM7U45HoRKhQw64Cbu0FIa+34\n\t9ZHV7t+c4IqZd8veq9Hn7L7ohP8fqU3rl3m5y1rYirdVcBYmmVdjJbMenUEQ50Wb5S\n\temXeEFL28cLcTk/sZDBsyGuWyZMP6oTp06itaA1Y=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[libcamera-ci] [PATCH 2/3] Disable ASan and debugstl in release\n\tbuilds","Date":"Tue, 12 May 2026 17:45:19 +0300","Message-ID":"<20260512144520.171290-3-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260512144520.171290-1-laurent.pinchart@ideasonboard.com>","References":"<20260512144520.171290-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"The compilation of release builds, ASan and debugstl is known to cause\nlots of positives with various versions of gcc. One of them is already\nworked around by disabling ASan for gcc 12 release builds. More will be\ntriggered by release builds using newer gcc versions.\n\nWhile some of the false positives can be worked around in libcamera,\nothers with gcc 14 and gcc 15 would require more intrusive changes.\nDisabling either ASan or debugstl is enough to avoid the false\npositives.\n\nGiven that distributions are not expected to enable ASan or debugstl in\ntheir packages, it is important to test release compilation without\nthose options as that will be the main use case. If we later find value\nin having release builds with either ASan or debugstl in CI, new jobs\nwill be added.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n gitlab-ci.yml | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)","diff":"diff --git a/gitlab-ci.yml b/gitlab-ci.yml\nindex e5b3925e49d5..f9496fcdc80c 100644\n--- a/gitlab-ci.yml\n+++ b/gitlab-ci.yml\n@@ -186,12 +186,10 @@ build-full:debian:12:\n         BUILD_TYPE: release\n         CC: gcc-12\n         CXX: g++-12\n-        # gcc 12.2.0 has a bug that triggers a false positive warning with ASan\n-        # in release builds (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105562).\n-        # Disable the address sanitizer for now.\n         MESON_OPTIONS: >-\n           ${MESON_ALL_OPTIONS}\n           -D b_sanitize=none\n+          -D cpp_debugstl=false\n       - ARCH: amd64\n         CC: clang\n         CXX: clang++\n@@ -206,6 +204,8 @@ build-full:debian:12:\n         MESON_OPTIONS: >-\n           ${MESON_ALL_OPTIONS}\n           ${MESON_CLANG_LIBCPP_OPTIONS}\n+          -D b_sanitize=none\n+          -D cpp_debugstl=false\n           -D qcam=disabled\n \n build-full:debian:13:\n","prefixes":["libcamera-ci","2/3"]}