From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 7A9643858406 for ; Wed, 8 Dec 2021 23:50:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A9643858406 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x03.wildebeest.org [172.31.17.133]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id C15343000ED0 for ; Thu, 9 Dec 2021 00:50:44 +0100 (CET) Received: by reform (Postfix, from userid 1000) id 853A92E821A0; Thu, 9 Dec 2021 00:50:28 +0100 (CET) Date: Thu, 9 Dec 2021 00:50:28 +0100 From: Mark Wielaard To: elfutils-devel@sourceware.org Subject: Re: [PATCH] configure: Add --enable-sanitize-address Message-ID: References: <20211205013925.278617-1-mark@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211205013925.278617-1-mark@klomp.org> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2021 23:50:48 -0000 Hi, On Sun, Dec 05, 2021 at 02:39:25AM +0100, Mark Wielaard wrote: > --enable-sanitize-address makes sure that all code is compiled with > -fsanitizer=address and all tests run against libasan. > > It can be combined with --enable-sanitize-undefined, but not with > --enable-valgrind. > > In maintainer mode there is one program that causes leaks, i386_gendis, > so disable leak detection for that program. > > One testcase, test_nlist, needs special linker flags, make sure it also > uses -fsanitizer=address when using the address sanitizer. I pushed this. I'll also add --enable-sanitize-address to some of the buildbot CI workers. Cheers, Mark