[{"id":38876,"web_url":"https://patchwork.libcamera.org/comment/38876/","msgid":"<f3a6434d-897b-4bba-bd23-f22b2c3b785e@ideasonboard.com>","date":"2026-05-12T15:51:54","subject":"Re: [libcamera-ci] [PATCH 2/3] Disable ASan and debugstl in release\n\tbuilds","submitter":{"id":216,"url":"https://patchwork.libcamera.org/api/people/216/","name":"Barnabás Pőcze","email":"barnabas.pocze@ideasonboard.com"},"content":"2026. 05. 12. 16:45 keltezéssel, Laurent Pinchart írta:\n> The compilation of release builds, ASan and debugstl is known to cause\n> lots of positives with various versions of gcc. One of them is already\n> worked around by disabling ASan for gcc 12 release builds. More will be\n> triggered by release builds using newer gcc versions.\n> \n> While some of the false positives can be worked around in libcamera,\n> others with gcc 14 and gcc 15 would require more intrusive changes.\n> Disabling either ASan or debugstl is enough to avoid the false\n> positives.\n> \n> Given that distributions are not expected to enable ASan or debugstl in\n> their packages, it is important to test release compilation without\n> those options as that will be the main use case. If we later find value\n> in having release builds with either ASan or debugstl in CI, new jobs\n> will be added.\n> \n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n> ---\n\nLooks ok to me.\n\nReviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n\n>   gitlab-ci.yml | 6 +++---\n>   1 file changed, 3 insertions(+), 3 deletions(-)\n> \n> diff --git a/gitlab-ci.yml b/gitlab-ci.yml\n> index 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:","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 082CEBDCBD\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 12 May 2026 15:52:01 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id F32A56301E;\n\tTue, 12 May 2026 17:52:00 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AF63E6271A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 12 May 2026 17:51:59 +0200 (CEST)","from [192.168.33.39] (185.182.215.166.nat.pool.zt.hu\n\t[185.182.215.166])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id ACA40C59;\n\tTue, 12 May 2026 17:51:51 +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=\"HIXKd+4Z\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1778601111;\n\tbh=2qoaBy17niuyPqdL1QfytJOi7Xh/YigGFhiq1WrkgBI=;\n\th=Date:Subject:To:References:From:In-Reply-To:From;\n\tb=HIXKd+4Zjq4Yh3p9MlNY9VU1omdbnGmf2nCbQS87YxtUU/T2XsPflAJ+OtR1TFg0b\n\t8TOyXsZOzm7fhf1TG0DyrBUGQZpv3JBdMJvNO5PM8vfihXPyGWSEGlPvAoLxg8HSWk\n\tzWMBvDjKZMhhZUXxflsbHIxGAJusmkQJLwIfF4Sg=","Message-ID":"<f3a6434d-897b-4bba-bd23-f22b2c3b785e@ideasonboard.com>","Date":"Tue, 12 May 2026 17:51:54 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [libcamera-ci] [PATCH 2/3] Disable ASan and debugstl in release\n\tbuilds","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org","References":"<20260512144520.171290-1-laurent.pinchart@ideasonboard.com>\n\t<20260512144520.171290-3-laurent.pinchart@ideasonboard.com>","From":"=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>","Content-Language":"en-US, hu-HU","In-Reply-To":"<20260512144520.171290-3-laurent.pinchart@ideasonboard.com>","Content-Type":"text/plain; charset=UTF-8; format=flowed","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>"}}]