From nobody Fri Apr 19 18:41:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620036124; cv=none; d=zohomail.com; s=zohoarc; b=ZGrjF3UYq/3qqfbJJINSWq08PdrBHC5OeJikWn6Xc/NBMC7NkEf/+8up2vZ7G3ApOWKLEDTGD9IPYRMbg9wZL/UmqNAGcGmcMT/3+69FAjfllEtdWMTDJ0s2Pb1OadFrD1QN+gYMSGPZtEYAbA3qckt08ZJbXfS7a+vhK1N8ShQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620036124; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IDGl+JKnzuaFiCrelCLnoQkMvCC1/ut7FRdM/ZnNlXs=; b=BHMFSduhIfNbF0uBoURGpzTvBFijyC00j665MKVF0ZyJgplDJYFCy/UFgRzYfn4p9RHIzyuJbssKDBzKAZSDJcZBTcN4fhNlLAYzTdbPaJTQCpBhC4ztn9xpLLZrbfLCOGRNlaWpCga2UJhg/5jYz/3ZZ4QnVGOIrQC1D5c8J9M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 162003612474369.14479619156032; Mon, 3 May 2021 03:02:04 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-322-mLZ_u98sMd-y4N2yqTwbJQ-1; Mon, 03 May 2021 06:02:01 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 24D95801106; Mon, 3 May 2021 10:01:57 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B7F131064146; Mon, 3 May 2021 10:01:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4AC591800BBE; Mon, 3 May 2021 10:01:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 143A1rAH000377 for ; Mon, 3 May 2021 06:01:53 -0400 Received: by smtp.corp.redhat.com (Postfix) id 67E455D9D5; Mon, 3 May 2021 10:01:53 +0000 (UTC) Received: from work.redhat.com (ovpn-113-16.ams2.redhat.com [10.36.113.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE91E5D9D0; Mon, 3 May 2021 10:01:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620036123; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IDGl+JKnzuaFiCrelCLnoQkMvCC1/ut7FRdM/ZnNlXs=; b=CSDCXVS1fatA7UzCG9bKGe3MogRe7+v+gFZEplNtSoUGrTga7SRdhwbWM1u0S6YKOqRGph hafFK0Uw7SYAXf6XKM0wLdwcV2wMPHX5HneKQ17kn2wmjJhIkHqxTVaG+dOmL4h86Yk5If 2mv7h96jKigVPCgv1aUZo9u1hE+/61Q= X-MC-Unique: mLZ_u98sMd-y4N2yqTwbJQ-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 1/6] meson: Allow larger stack frames when instrumenting Date: Mon, 3 May 2021 12:01:41 +0200 Message-Id: <20210503100146.14661-2-twiederh@redhat.com> In-Reply-To: <20210503100146.14661-1-twiederh@redhat.com> References: <20210503100146.14661-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" When enabling sanitizers, gcc adds some instrumentation to the code that may enlarge stack frames. Some function's stack frames are already close to the limit of 4096 and are enlarged past that threshold, e.g. virLXCProcessStart which reaches a frame size of 4624 bytes. Signed-off-by: Tim Wiederhake --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 618cbd6b1d..bbdbe4afd8 100644 --- a/meson.build +++ b/meson.build @@ -278,7 +278,8 @@ cc_flags +=3D [ '-Wformat-y2k', '-Wformat-zero-length', '-Wframe-address', - '-Wframe-larger-than=3D4096', + # sanitizer instrumentation may enlarge stack frames + '-Wframe-larger-than=3D@0@'.format(get_option('b_sanitize') in ['', 'non= e'] ? 4096 : 8192), '-Wfree-nonheap-object', '-Whsa', '-Wif-not-aligned', --=20 2.26.3 From nobody Fri Apr 19 18:41:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620036132; cv=none; d=zohomail.com; s=zohoarc; b=mXUoOTyrqZNHEEWKc70SNC+rpXtoWM1FUABCFl7oNZP15wCIUuvh3H0W5p5PQ/e8jmI0OGscrgzd2lVdWHgK4NfmLyeQ1iLNgadsHpd9OMaB5bLdtwRKco0ObFzhm8hOvREXqGVkdDWBRkSrW1bM9ai7lRCQagonVPTEP7Z/wVc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620036132; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=AogDEoSOGAE5km289lZUeQajAEvNIVeU+tBkG8nCFDw=; b=J5C9ispzLTUgV0iWzxvWtp4Lx4qh4URaKX8FuWsNQ2bkZGLxV5PIKJKLjD9KsSV2zAE0XOUjGHJFqJ92tUAq/GZ7/UaPVdtMHhfJqecIg1iNv3inQ4O0bpIUDPRW5grTTIAx1dIe1pBgKVeoGyLcgqp5TQ7dRYROisO/8vF0f6s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1620036132841422.1208112578555; Mon, 3 May 2021 03:02:12 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-262-pY7XdoSVML6hwMeptTbdcA-1; Mon, 03 May 2021 06:02:09 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BF7C7107ACE3; Mon, 3 May 2021 10:02:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 927AE5D9D0; Mon, 3 May 2021 10:02:04 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5132555346; Mon, 3 May 2021 10:02:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 143A1sF6000391 for ; Mon, 3 May 2021 06:01:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 75E115D9D5; Mon, 3 May 2021 10:01:54 +0000 (UTC) Received: from work.redhat.com (ovpn-113-16.ams2.redhat.com [10.36.113.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id BBB225D9D0; Mon, 3 May 2021 10:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620036131; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=AogDEoSOGAE5km289lZUeQajAEvNIVeU+tBkG8nCFDw=; b=L3GfNR/SPWf8b49sMCFa2HzUxUpVQ7Sk44mNDTu53QnuKld5NuIV9UsRzmLndsXU64BuxS C/VLFTpEpqdlBkvEiqt4Yz0jbS0vWUeu3ClzHSJYPWqhsMGP8H4Cet+O0CC7E4ItEVfIji I5+hjk8fbmm3erciwfoRTUeXHeCuRFg= X-MC-Unique: pY7XdoSVML6hwMeptTbdcA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 2/6] meson: Allow undefined symbols when sanitizers are enabled Date: Mon, 3 May 2021 12:01:42 +0200 Message-Id: <20210503100146.14661-3-twiederh@redhat.com> In-Reply-To: <20210503100146.14661-1-twiederh@redhat.com> References: <20210503100146.14661-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" When enabling sanitizers, clang adds some function symbols when instrumenting the code. The exact names of those functions are an implementation detail and should therefore not be added to any syms file. This patch prevents build failures due to those symbols not present in the syms file when building with sanitizers enabled. Signed-off-by: Tim Wiederhake --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index bbdbe4afd8..56c1294e7f 100644 --- a/meson.build +++ b/meson.build @@ -497,6 +497,11 @@ libvirt_no_indirect =3D cc.get_supported_link_argument= s([ '-Wl,--no-copy-dt-needed-entries', ]) =20 +if get_option('b_sanitize') not in [ '', 'none' ] + # sanitizers may add additional symbols + libvirt_no_undefined =3D [] +endif + if host_machine.system() =3D=3D 'windows' version_script_flags =3D '-Wl,' else --=20 2.26.3 From nobody Fri Apr 19 18:41:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620036187; cv=none; d=zohomail.com; s=zohoarc; b=M4QJ6gOFJHGZi0LdduPH0Y5NriMPHG9wBvxRg6ynA8BuTjk+W2xdgXKQkZ4MUfmIKA4dhNTQYbjRx1Dxr00dQBgUx6+qmaemLqE6I688+qW+4yP5259OvP9KIEetrbBjCWGKdfLOGEUd8RA/tPDgFDSj8dzANRZi8WnSrLUFYFQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620036187; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YrxewGI6Iywa1JWBk2NwTA+suWUPBp8i8bl81gVm+Jc=; b=Ql1vGqRIr9ByGFwPZ14WTsNo9YLqXROwrVlBKPXv5ZWEuKOg8ZGD7918V3QnEZ/2nRMF4S7fols2hATju6WJgcn5ISJ8s6aiQt3NIP3/Yl8MhChjYmcORn7V2Gq2smuj9o4fD2eD4tTCamDC/uOqt88akDSkDM0S08LylUcH3d8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1620036187303349.4406054244042; Mon, 3 May 2021 03:03:07 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-444-QIOkZOGyMrSUCjopO13bcA-1; Mon, 03 May 2021 06:02:12 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2D59579EC0; Mon, 3 May 2021 10:02:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0DBBB50DE6; Mon, 3 May 2021 10:02:08 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C4C921800BBE; Mon, 3 May 2021 10:02:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 143A1t6o000398 for ; Mon, 3 May 2021 06:01:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8172D5D9E2; Mon, 3 May 2021 10:01:55 +0000 (UTC) Received: from work.redhat.com (ovpn-113-16.ams2.redhat.com [10.36.113.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id C76B05D9D0; Mon, 3 May 2021 10:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620036186; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=YrxewGI6Iywa1JWBk2NwTA+suWUPBp8i8bl81gVm+Jc=; b=SWmQnNqfUkCQ61tbOs3TW2sLGjCetcK579+HZv6VImB/zfd14SO8cNRhQcx2z8JCWVsVJV mtHLcRyej0cQEwNlUC4LBF7hnU3T3fs2vllE/kL33J9FwJcFjYwlNl83j0kRy+VFngu6DI 0x2Wjr7a88H5KEGTpg88E+cleOtb/jw= X-MC-Unique: QIOkZOGyMrSUCjopO13bcA-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 3/6] tests: virfilemock: realpath: Allow non-null second parameter Date: Mon, 3 May 2021 12:01:43 +0200 Message-Id: <20210503100146.14661-4-twiederh@redhat.com> In-Reply-To: <20210503100146.14661-1-twiederh@redhat.com> References: <20210503100146.14661-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" When other preloaded libraries wrap and / or make calls to `realpath` (e.g. LLVM's AddessSanitizer), the second parameter is no longer guaranteed to be NULL. Signed-off-by: Tim Wiederhake --- build-aux/syntax-check.mk | 2 +- tests/virfilemock.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 552d639119..03b7599abc 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1740,7 +1740,7 @@ exclude_file_name_regexp--sc_libvirt_unmarked_diagnos= tics =3D \ exclude_file_name_regexp--sc_po_check =3D ^(docs/|src/rpc/gendispatch\.pl$= $|tests/commandtest.c$$) =20 exclude_file_name_regexp--sc_prohibit_PATH_MAX =3D \ - ^build-aux/syntax-check\.mk$$ + ^(build-aux/syntax-check\.mk|tests/virfilemock.c)$$ =20 exclude_file_name_regexp--sc_prohibit_access_xok =3D \ ^(src/util/virutil\.c)$$ diff --git a/tests/virfilemock.c b/tests/virfilemock.c index 7c9174bdd9..cba66feac0 100644 --- a/tests/virfilemock.c +++ b/tests/virfilemock.c @@ -24,7 +24,6 @@ #if WITH_LINUX_MAGIC_H # include #endif -#include =20 #include "virmock.h" #include "virstring.h" @@ -186,15 +185,16 @@ realpath(const char *path, char *resolved) =20 if (getenv("LIBVIRT_MTAB")) { const char *p; - char *ret; =20 - assert(resolved =3D=3D NULL); + if (!resolved) + resolved =3D g_new0(char, PATH_MAX); + if ((p =3D STRSKIP(path, "/some/symlink"))) - ret =3D g_strdup_printf("/gluster%s", p); + g_snprintf(resolved, PATH_MAX, "/gluster%s", p); else - ret =3D g_strdup(path); + g_strlcpy(resolved, path, PATH_MAX); =20 - return ret; + return resolved; } =20 return real_realpath(path, resolved); --=20 2.26.3 From nobody Fri Apr 19 18:41:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620036139; cv=none; d=zohomail.com; s=zohoarc; b=QWlKSkXXMnZlvG4sKQH4MD/goDwBrUv1WYlv/B5ddesSAKr7vGbmSZNhN/8SpmXz3MVPeNfqQn7EE/JhEHZHqQ7zGcIiWE7eYXAvMgWmFsWLnCsiSdngogTao8QHRRbHAjyijzubBeE+GwmH2q8RUbnXwkjYvKZyY6uRi0HcjoE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620036139; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GeR/QAJRaNjVNZ1Ws7cajreee6c3L5l61rgaVbEU/l4=; b=iHdNbuyrp5BEaUaeXN0TAF3hT8GSiET4RMYu1RCDogFVBPvCTK8e0eVaH9Z9jxs1LzdBkdOCTvuyAXxgWgy5gjmahlebmZNmhlTgA0NzhumCuddQgXDhjLCbhpQmLmTqTkWPcBhB/52i9LiiUiN6RISByiSsRbE9idh8ESZyyN0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1620036139825946.38425653429; Mon, 3 May 2021 03:02:19 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-295-STN6mpcYOeafI_qf6wUFew-1; Mon, 03 May 2021 06:02:16 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E252A1B18BC8; Mon, 3 May 2021 10:02:10 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C3AA15D742; Mon, 3 May 2021 10:02:10 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9012A1801029; Mon, 3 May 2021 10:02:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 143A1uPQ000408 for ; Mon, 3 May 2021 06:01:56 -0400 Received: by smtp.corp.redhat.com (Postfix) id 91FBC5D9DD; Mon, 3 May 2021 10:01:56 +0000 (UTC) Received: from work.redhat.com (ovpn-113-16.ams2.redhat.com [10.36.113.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id D2B325D9D0; Mon, 3 May 2021 10:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620036138; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=GeR/QAJRaNjVNZ1Ws7cajreee6c3L5l61rgaVbEU/l4=; b=NN1qVjffeYjUtiZWx8Ct+6fDPqRJsfxYmuU5IdWHbj0+edaYVrbIXFmwqoJliCr7UL0qD/ ZHRPZ370BbPFWeqUfWrER7j7ICYkbaZzBnsPfQjRONw3Et0QYoX+oiMrOiSlNd5/u8Riv8 qvyzKeICh5B0XVMqRLMqETeQ+hEjQs4= X-MC-Unique: STN6mpcYOeafI_qf6wUFew-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 4/6] tests: openvzutilstest: Remove duplicate linking with libvirt_openvz.a Date: Mon, 3 May 2021 12:01:44 +0200 Message-Id: <20210503100146.14661-5-twiederh@redhat.com> In-Reply-To: <20210503100146.14661-1-twiederh@redhat.com> References: <20210503100146.14661-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" "openvzutilstest" links, amongst others, against "libvirt_openvz.a" and "libvirt.so". The latter also links against "libvirt_openvz.a", leading to a One-Definition-Rule violation for "openvzLocateConfFile" in "openvz_conf.c". Signed-off-by: Tim Wiederhake --- src/libvirt_openvz.syms | 2 ++ tests/meson.build | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libvirt_openvz.syms b/src/libvirt_openvz.syms index ac0ed0d23e..a1038e51a4 100644 --- a/src/libvirt_openvz.syms +++ b/src/libvirt_openvz.syms @@ -3,10 +3,12 @@ # =20 # openvz/openvz_conf.h +openvzCapsInit; openvzLocateConfFile; openvzReadConfigParam; openvzReadNetworkConf; openvzVEGetStringParam; +openvzXMLOption; =20 # Let emacs know we want case-insensitive sorting # Local Variables: diff --git a/tests/meson.build b/tests/meson.build index 9900983d0c..3c73cbe3b5 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -430,7 +430,7 @@ endif =20 if conf.has('WITH_OPENVZ') tests +=3D [ - { 'name': 'openvzutilstest', 'link_with': [ openvz_lib ] }, + { 'name': 'openvzutilstest' }, ] endif =20 --=20 2.26.3 From nobody Fri Apr 19 18:41:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620036142; cv=none; d=zohomail.com; s=zohoarc; b=fiSobFiaWBIVv70wPY9RhEEMfxbcRxbJkA5C6jf2xkpWeyZYMfQjC+Vi0EILGwWMbvDRa+XEmOHgFSj+0q8uWZaD22D6GGO5f2cFuODHe9at7S908cUmw172m2GZFyEfNOLVvBqKJPmV8N56sE88plYFznnneR0eeEpyRqiRMSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620036142; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=nsDUkKbODbu8NUqvwoaU1RuO9op+QzzBZoHLgeiTUK0=; b=QXjOwY68Vcgv4qd3OVvcyy5wCl+LVnbuOrbBAWmUWu6TxI4GRkl+ATbAAm0fCjmeRHTxPQhd4TvvEkwpzAgPxxq2EWQtWFFWsLyuskoHwuQojxhS8ZfEVFwWk4GBck1+sook87Bw3uuCcsjW8z/jzXbIs+MaosuqDQUinUfAeGo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1620036142435602.8033334778253; Mon, 3 May 2021 03:02:22 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-485--wpglQGLNCytvBztBm16CQ-1; Mon, 03 May 2021 06:02:19 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B96C79EC5; Mon, 3 May 2021 10:02:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4D4C82BFE9; Mon, 3 May 2021 10:02:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 151B5180102B; Mon, 3 May 2021 10:02:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 143A1vLq000413 for ; Mon, 3 May 2021 06:01:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id A03B45D9DD; Mon, 3 May 2021 10:01:57 +0000 (UTC) Received: from work.redhat.com (ovpn-113-16.ams2.redhat.com [10.36.113.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id E3AB25D9D0; Mon, 3 May 2021 10:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620036141; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=nsDUkKbODbu8NUqvwoaU1RuO9op+QzzBZoHLgeiTUK0=; b=PYOLzyobKUewycW/AGb485lI/MPeEMhXt+RkDIscyin5cvHkaliteJgjmB4RMOnVZzQeSr nTI9cqNy40r91LAlcyUxf3eKK/bxcFwnQYh+sj8O1JHRSV6Cxy01O9pMDOqfy020pvcPD3 YKN86OScy/hvDDfWnaAJgdIKEytQVg0= X-MC-Unique: -wpglQGLNCytvBztBm16CQ-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 5/6] virt-aa-helper: Remove duplicate linking with src/datatypes.o Date: Mon, 3 May 2021 12:01:45 +0200 Message-Id: <20210503100146.14661-6-twiederh@redhat.com> In-Reply-To: <20210503100146.14661-1-twiederh@redhat.com> References: <20210503100146.14661-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" "virt-aa-helper" links, amongst others, against "datatypes.o" and "libvirt.so". The latter links against "libvirt_driver.a" which in turn also links against "datatypes.o", leading to a One-Definition-Rule violoation for "virConnectClass" et al. in "datatypes.c". Signed-off-by: Tim Wiederhake --- src/security/meson.build | 1 - 1 file changed, 1 deletion(-) diff --git a/src/security/meson.build b/src/security/meson.build index 416fec7900..6f5e1dec1d 100644 --- a/src/security/meson.build +++ b/src/security/meson.build @@ -41,7 +41,6 @@ if conf.has('WITH_LIBVIRTD') and conf.has('WITH_APPARMOR') 'name': 'virt-aa-helper', 'sources': [ apparmor_helper_sources, - datatypes_sources, dtrace_gen_objects, ], 'include': [ --=20 2.26.3 From nobody Fri Apr 19 18:41:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1620036144; cv=none; d=zohomail.com; s=zohoarc; b=bSR1tGzSWxd9aSWN0ScY+oaKxO3G7m/166TZ0iSgO2z+taI5YPPKDCvyqffpl4zl55yMR7EQhEWF1cvmq/AEDZa2ibAVNLVj/iNpAmySWI6IWihbTwXZRqx4AajDf7I/5DhQQifhwXVnTuFDsqguJMIggsg/FP/KA/uyQBPKDTE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620036144; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=j8xKV046r8fcOn8K4KF1sAD5qKlJ8t48dzvzZVV273g=; b=b1SCyjQhRZq7fEt3JNCq+FLYf73RPHJA+fXGzeZAuULnOOUvrb0nsCJVHFWLpKRoDdgzIKcFkkSDHDYHN+N1VhHsO46pZDqvUYBEJuIG1I50b2Bun4/MoAmsk5tN7c6xLgr2UtuEz86A/RNtEE91Stj7pqKRXaZfoYGhZlkwtw8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1620036144916674.3497276414524; Mon, 3 May 2021 03:02:24 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-2-zqVP77T6OBawTXmL2ppuYw-1; Mon, 03 May 2021 06:02:20 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 148BD107ACE3; Mon, 3 May 2021 10:02:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DDC80100164A; Mon, 3 May 2021 10:02:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A95091801262; Mon, 3 May 2021 10:02:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 143A1wE3000419 for ; Mon, 3 May 2021 06:01:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id AC87E5D9DD; Mon, 3 May 2021 10:01:58 +0000 (UTC) Received: from work.redhat.com (ovpn-113-16.ams2.redhat.com [10.36.113.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id F214B5D9D0; Mon, 3 May 2021 10:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620036143; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=j8xKV046r8fcOn8K4KF1sAD5qKlJ8t48dzvzZVV273g=; b=cstMtm4y5lP4mAl7NP9tLu9EJsEF4J+RrqC2KW/GBk1CFKv/bxuEBwK6erEXm7BO4RbgsS UFkqy7KpkE1vXDiRnzY+8nVsUP3JIRdCeoum3hh50skAkClT7awz97IPHRJp/Wxr23hPN7 ytecz6w7CzVgAUWZcNVPYIjsAoAPvfI= X-MC-Unique: zqVP77T6OBawTXmL2ppuYw-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 6/6] ci: Enable address and undefined behavior sanitizers Date: Mon, 3 May 2021 12:01:46 +0200 Message-Id: <20210503100146.14661-7-twiederh@redhat.com> In-Reply-To: <20210503100146.14661-1-twiederh@redhat.com> References: <20210503100146.14661-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" meson supports the following sanitizers: "address" (e.g. out-of-bounds memory access, use-after-free, etc.), "thread" (data races), "undefined" (e.g. signed integer overflow), and "memory" (use of uninitialized memory). Note that not all sanitizers are supported by all compilers, and that more sanitizers exist. Not all sanitizers can be enabled at the same time, but "address" and "undefined" can. Both thread and memory sanitizers require an instrumented build of all dependencies, including libc. gcc and clang use different implementations of these sanitizers and have proven to find different issues. Create CI jobs for both. Signed-off-by: Tim Wiederhake --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b7df68f47..aa537e65fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,6 +71,26 @@ stages: rpmbuild --nodeps -ta build/meson-dist/libvirt-*.tar.xz; fi =20 +.sanitizer_build_job: + stage: builds + image: $CI_REGISTRY_IMAGE/ci-ubuntu-2004:latest + needs: + - x64-ubuntu-2004-container + rules: + - if: "$TEMPORARILY_DISABLED" + allow_failure: true + - when: on_success + cache: + paths: + - ccache/ + key: "$CI_JOB_NAME" + before_script: + - *script_variables + script: + - meson build --werror -Db_lundef=3Dfalse -Db_sanitize=3D"$SANITIZER" + - ninja -C build; + - ninja -C build test; + # Jobs that we delegate to Cirrus CI because they require an operating # system other than Linux. These jobs will only run if the required # setup has been performed on the GitLab account (see ci/README.rst). @@ -517,6 +537,21 @@ mingw64-fedora-rawhide: NAME: fedora-rawhide CROSS: mingw64 =20 +# Sanitizers + +sanitize-gcc: + extends: .sanitizer_build_job + variables: + ASAN_OPTIONS: verify_asan_link_order=3D0 + CC: gcc + SANITIZER: address,undefined + +sanitize-clang: + extends: .sanitizer_build_job + variables: + CC: clang + SANITIZER: address,undefined + =20 # This artifact published by this job is downloaded by libvirt.org to # be deployed to the web root: --=20 2.26.3