From nobody Thu Apr 25 06:56:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1568252797; cv=none; d=zoho.com; s=zohoarc; b=Ljx8drqa3v9f2fIORZaP1Lc/QW141w+LHx6mVQbnOY/4fxELkhb2w1DtHQwiLekxST4VyoxlVb77XdPR03pdWrL9b98plowhDYJAMDjYP832Z6snTBputQZtcY7LMES5OBcidz9db3cNvfTNN905NIqXcGe5cVOpWJYTIamnwnE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568252797; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=Zzl04Vd9zHsHLHJs4jP+KZkCyk8j9LKlAWE19wc8npY=; b=VYsjCxVwlbGWMknVNt7pexwy0kFXC1wNUnsc4A4BDLQ1zCAuoVb2cQNaEUxtILlOT1PELDrGcLk4dE76x0CrfToGOhErO5uKksV8gjSsOeRSf7yYIz3ym1O9D87ZCogr0eWx7HZxEPdfwPYlvlCc66jgjRnlpwX5CEBeFkl6xec= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1568252797867376.1875896673522; Wed, 11 Sep 2019 18:46:37 -0700 (PDT) Received: from localhost ([::1]:57570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8EBw-0001dk-CX for importer@patchew.org; Wed, 11 Sep 2019 21:46:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44859) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8EAG-00012Q-V7 for qemu-devel@nongnu.org; Wed, 11 Sep 2019 21:44:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i8EAD-0007pS-My for qemu-devel@nongnu.org; Wed, 11 Sep 2019 21:44:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41818) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i8EAD-0007p4-Ho for qemu-devel@nongnu.org; Wed, 11 Sep 2019 21:44:49 -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 mx1.redhat.com (Postfix) with ESMTPS id 4BD7C308213F; Thu, 12 Sep 2019 01:44:48 +0000 (UTC) Received: from probe.bos.redhat.com (dhcp-17-203.bos.redhat.com [10.18.17.203]) by smtp.corp.redhat.com (Postfix) with ESMTP id 002F210018FF; Thu, 12 Sep 2019 01:44:42 +0000 (UTC) From: John Snow To: qemu-devel@nongnu.org Date: Wed, 11 Sep 2019 21:44:42 -0400 Message-Id: <20190912014442.5757-1-jsnow@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 12 Sep 2019 01:44:48 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] docker: add sanitizers back to clang build X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Fedora23 is but a distant twinkle. The sanitizer works again, and even if not, we have --enable-sanitizers now. --- The problem is that I do see some ASAN warnings: TEST check-qtest-aarch64: tests/device-introspect-test Direct leak of 2272 byte(s) in 48 object(s) allocated from: #0 0x55aea5598b4e in calloc (/tmp/qemu-test/build/aarch64-softmmu/qemu-= system-aarch64+0x19a9b4e) #1 0x7f783ff11ce0 in g_malloc0 (/lib64/libglib-2.0.so.0+0x55ce0) Direct leak of 864 byte(s) in 18 object(s) allocated from: #0 0x55aea5598b4e in calloc (/tmp/qemu-test/build/aarch64-softmmu/qemu-= system-aarch64+0x19a9b4e) #1 0x7f783ff11ce0 in g_malloc0 (/lib64/libglib-2.0.so.0+0x55ce0) #2 0x55aea712b379 in object_initialize_with_type /tmp/qemu-test/src/qom= /object.c:467:5 I'd run it again, but it took eight years to get to that point, it's late and I'm tired. Signed-off-by: John Snow --- tests/docker/test-clang | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/docker/test-clang b/tests/docker/test-clang index 324e341cea..db9e6970b7 100755 --- a/tests/docker/test-clang +++ b/tests/docker/test-clang @@ -17,11 +17,7 @@ requires clang =20 cd "$BUILD_DIR" =20 -OPTS=3D"--cxx=3Dclang++ --cc=3Dclang --host-cc=3Dclang" -# -fsanitize=3Dundefined is broken on Fedora 23, skip it for now -# See also: https://bugzilla.redhat.com/show_bug.cgi?id=3D1263834 -#OPTS=3D"$OPTS --extra-cflags=3D-fsanitize=3Dundefined \ - #--extra-cflags=3D-fno-sanitize=3Dfloat-divide-by-zero" +OPTS=3D"--cxx=3Dclang++ --cc=3Dclang --host-cc=3Dclang --enable-sanitizers" build_qemu $OPTS check_qemu install_qemu --=20 2.21.0