From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by sourceware.org (Postfix) with ESMTPS id 091013870C31 for ; Tue, 9 Apr 2024 23:23:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 091013870C31 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 091013870C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::b31 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712705018; cv=none; b=e+oAeCluwcONf2XjEHxhixxslNPZKVGbIShn+zuNg2s1ruUvLAw4GJ6znWHZSVqTJuROYddNBaxcCiZf8348Hq/Kk0XwT6ras44aQ1dSnoq26XdD3SLpfQDthEiYzCYRouHbAtt+wGOXshPhG5f3ci+R432RIYx8sDPPAge0hUw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712705018; c=relaxed/simple; bh=so+WAdhzciaTSBsovO4UIuWjzMp9AXxXPaKI0sxQzss=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=o/eqO1DNrK/vlo752u8zinDC6ZGIsuEzjJ01pwGcFR8BZBHKbN1PkJfth1raNp+0msDEBdjG/pch+Nq98AahXkNIwDMaH4xy7M85hgaq/ydsKvm+6vvP3bYs05wp7kkBDqjnN1HQbQ35E69BhEnZ6RAcZeU6uD4mX4KVz2lupw0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-dcbef31a9dbso4037609276.1 for ; Tue, 09 Apr 2024 16:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712705016; x=1713309816; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=22OKb5+rDS4s0AmGmaRCLWW8tF3wJg63JaUyF2qBzWM=; b=UT1UDMXuplH8EqCoaqP9ngY0qNqLB6dY2jqYwquPzcvXfs0o7GqrY0tGL40bBB4Tve zuBBXMIFvLbmenNpcrDLXCC/R/L9U4347RWBgd/v+I+euzjcmnJutJvNU3mzGQ4w1Uih EzCHXn/6nyAXZnyjscbRcnqb6kBFaeDUihjDL6bvfDQ5b/0+Ppzu5kRKMHgdzQD7udWt iPKochQNB+q30GJlxp1LD8YIo+kqiXJoIsWIiG8Tti3w89DZ/uZwC8p7V+CFnQ+BZIHt lN/PsjkgGCWIJgzZ5fDdduxiD5Dl53f9W4LZHfl2kn2HauBDSzJg1Xvkt7AKb7l0jKMO pYHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712705016; x=1713309816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=22OKb5+rDS4s0AmGmaRCLWW8tF3wJg63JaUyF2qBzWM=; b=MB7dTiF4PvOioA4Dy1QXZTRZ3hyVTfoKuSfiTTcNy0xDkSXwXSIjz7BUdBfThtNQn0 LUiVLwF834KV8kedl03iwjkCf19pdU/eIcntF290HjEkssg6HE2rtCnEPvI6eVkKsDMQ 39or6rcOSx+58sQL81khMfK2MYcvUakWtZCZzkufbJf8le1zwFFd+P19jH4wrh3M2/+L y0xFUC1DXVF5leX3ysdHj5Hi9zc9ov0MP4fYyexNmXKCb+EAxSdDlOmrwgPkKLIX5y1L 9eZIv7cChRHOkWvJ2o3SKkLKy8lTB0zCsfU50ojf3azpJ2i1n5fDf/m7lUPV98UPkuJL IVMA== X-Gm-Message-State: AOJu0YzuIXgpFGn+LaAo3FHCIptC6+welaPuQzozrwWw2RRb9R0dmu5r 3bmpRJTyf3h4k0LA8Xb6X7ZqPcCbTjkB0vQZ+A6Gsk++Q5t7ltMei3qkxi8PdLEcc1s+D8SHb/q emrBrUaAjVWwyzG75UrBQVv94BG8= X-Google-Smtp-Source: AGHT+IGlXtqvZBZPrG2LbfT3Id8i42nhN9hWhznbfiZZua3tXcXRYbM7XCJ45b7ibAVloDHMms3s0qofQdtz7de55Lo= X-Received: by 2002:a25:ad81:0:b0:dcd:128:ff3b with SMTP id z1-20020a25ad81000000b00dcd0128ff3bmr1390204ybi.38.1712705016367; Tue, 09 Apr 2024 16:23:36 -0700 (PDT) MIME-Version: 1.0 References: <20240409142435.1708867-1-hjl.tools@gmail.com> <87le5mw2v0.fsf@gentoo.org> In-Reply-To: <87le5mw2v0.fsf@gentoo.org> From: "H.J. Lu" Date: Tue, 9 Apr 2024 16:23:00 -0700 Message-ID: Subject: Re: [PATCH 0/2] mmap: Avoid the sanitizer configure check failure To: Sam James Cc: binutils@sourceware.org, amodra@gmail.com, gcc-patches@gcc.gnu.org, Paul Eggert Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3013.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Apr 9, 2024 at 4:08=E2=80=AFPM Sam James wrote: > > "H.J. Lu" writes: > > > When -fsanitize=3Daddress,undefined is used to build, the mmap configur= e > > check failed with > > I think Paul fixed this in autoconf commit > 09b6e78d1592ce10fdc975025d699ee41444aa3f, so we should add a comment > about that so we can clean this up in future. Sure . That was in 2016. > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > =3D=3D231796=3D=3DERROR: LeakSanitizer: detected memory leaks > > > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > > #0 0x7cdd3d0defdf in __interceptor_malloc ../../../../src/libsaniti= zer/asan/asan_malloc_linux.cpp:69 > > #1 0x5750c7f6d72b in main /home/alan/build/gas-san/all/bfd/conftest= .c:239 > > > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > > #0 0x7cdd3d0defdf in __interceptor_malloc ../../../../src/libsaniti= zer/asan/asan_malloc_linux.cpp:69 > > #1 0x5750c7f6d2e1 in main /home/alan/build/gas-san/all/bfd/conftest= .c:190 > > > > SUMMARY: AddressSanitizer: 8192 byte(s) leaked in 2 allocation(s). > > > > Define GCC_AC_FUNC_MMAP with export ASAN_OPTIONS=3Ddetect_leaks=3D0 to = avoid > > the sanitizer configure check failure. > > > > H.J. Lu (2): > > mmap: Avoid the sanitizer configure check failure > > mmap: Avoid the sanitizer configure check failure > > > > bfd/Makefile.in | 2 +- > > bfd/aclocal.m4 | 1 + > > bfd/configure | 5 +++++ > > bfd/configure.ac | 2 +- > > binutils/Makefile.in | 2 +- > > binutils/aclocal.m4 | 1 + > > binutils/configure | 5 +++++ > > binutils/configure.ac | 2 +- > > config/mmap.m4 | 12 ++++++++++++ > > config/no-executables.m4 | 4 ++-- > > ld/Makefile.in | 2 +- > > ld/aclocal.m4 | 1 + > > ld/configure | 5 +++++ > > ld/configure.ac | 2 +- > > libctf/Makefile.in | 2 +- > > libctf/aclocal.m4 | 1 + > > libctf/configure | 5 +++++ > > libctf/configure.ac | 2 +- > > libiberty/Makefile.in | 1 + > > libiberty/acinclude.m4 | 2 +- > > libiberty/aclocal.m4 | 1 + > > libiberty/configure | 5 +++++ > > libsframe/Makefile.in | 1 + > > libsframe/aclocal.m4 | 1 + > > libsframe/configure | 5 +++++ > > libsframe/configure.ac | 2 +- > > zlib/Makefile.in | 2 +- > > zlib/acinclude.m4 | 1 + > > zlib/configure | 7 ------- > > 29 files changed, 64 insertions(+), 20 deletions(-) --=20 H.J.