From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5176CA0C47; Tue, 5 Oct 2021 14:00:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5E7C4132F; Tue, 5 Oct 2021 14:00:51 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 33DB34132D for ; Tue, 5 Oct 2021 14:00:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633435249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QKsR2hXt9gqCSwsww5/OGR7wMGkZ046n07PmRvMyLxg=; b=ZIRonZNBeNM5YrKFF3+B0GnVLGHKhr7FBSq/ii+ybThu7ibdKMglzXIXw+nLFyXf4LHqMb 66fTxPgZNwa73zDzhD9to6k6ENIP2eWKG314fzx6leFUJkF9tktBqNY2UYwHioEZwPS0dG eH+DLbi4J8FJ0eAU3SMAk2QPiDn1Zeo= 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-585-SvXkiL59MDq_qgTAtYdObg-1; Tue, 05 Oct 2021 08:00:46 -0400 X-MC-Unique: SvXkiL59MDq_qgTAtYdObg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 227F61842156; Tue, 5 Oct 2021 12:00:45 +0000 (UTC) Received: from RHTPC1VM0NT (unknown [10.22.32.186]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 852571F6; Tue, 5 Oct 2021 12:00:44 +0000 (UTC) From: Aaron Conole To: David Marchand Cc: dev@dpdk.org, zhihongx.peng@intel.com, Michael Santana References: <20210917082313.21934-1-david.marchand@redhat.com> <20211002162432.4348-1-david.marchand@redhat.com> <20211002162432.4348-4-david.marchand@redhat.com> Date: Tue, 05 Oct 2021 08:00:43 -0400 In-Reply-To: <20211002162432.4348-4-david.marchand@redhat.com> (David Marchand's message of "Sat, 2 Oct 2021 18:24:32 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Subject: Re: [dpdk-dev] [PATCH v2 3/3] ci: run unit tests with ASAN X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" David Marchand writes: > Enable ASAN for clang jobs. > This can greatly help identify leaks and buffer overflows. > This patch is more a fyi, as some unit tests stil have issues. > > Signed-off-by: David Marchand > --- I know this isn't yet ready to be merged due to failing unit tests, and I still support it :) Acked-by: Aaron Conole > .ci/linux-build.sh | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh > index 91e43a975b..a961d9b92d 100755 > --- a/.ci/linux-build.sh > +++ b/.ci/linux-build.sh > @@ -79,7 +79,14 @@ fi > > OPTS="$OPTS -Dmachine=default" > OPTS="$OPTS --default-library=$DEF_LIB" > -OPTS="$OPTS --buildtype=debugoptimized" > + > +if [ "$CC" != "${CC%%clang}" ] && [ "$RUN_TESTS" = 'true' ]; then > + # Let's run tests with ASAN > + OPTS="$OPTS -Db_sanitize=address -Db_lundef=false --buildtype=debug" > +else > + OPTS="$OPTS --buildtype=debugoptimized" > +fi > + > OPTS="$OPTS -Dcheck_includes=true" > meson build --werror $OPTS > ninja -C build