From nobody Sun Feb 12 22:24:56 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFMV319ZMz3pGvh for ; Sun, 12 Feb 2023 22:24:59 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFMV26ddDz4Y9v for ; Sun, 12 Feb 2023 22:24:58 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-qv1-xf2c.google.com with SMTP id di14so3099322qvb.12 for ; Sun, 12 Feb 2023 14:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=evYaWfe2/4QDxWqf3EGi4TuI8yTDDsQtNpKeNVQbSxE=; b=hA4A9tB0oMpNX3LpWl/+HTGLV9Iev1MAclPC2iZy5oN7YbH8+k2gWrVGNCr/mbY72+ 0KlJDonSfxLQQdYfNd9mrI5FWEx3eq9eDCi2qzzOoAh95mLOA1pL6abX/OpdOuGevqMD 5V45fM5sQsIaXjlJ5XUFedhelHTqMHyc/rdVXgLXB/RK2FowO1rlv7YcHWrdqzf9fc/U jlmNQ+VAXf0xycujS9Rny/18nbMkPBhwHj+oOHsGe8Wow7/Ocknx9c/oblq3gg7x/DDS kfhl2HwHiUOzXfBWSjUrdmt65EW6pUcu/QkiymBrlrqhT5YEtmkOKJviF7VebPGjRq8Y dEdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=evYaWfe2/4QDxWqf3EGi4TuI8yTDDsQtNpKeNVQbSxE=; b=wrkJLZ2H3LxiLWIxbq+5bgFyVPDBJNajbvKe+TRFO2BZHszqM2SfxGolofu/79y6V4 ERwISjPkaDqEnE3dZw4ugywy7b/6LPERZcGHHBhph68pzM2Hst2oOVeJLJFm7ZLlr4y/ XAZEYHQhp1Q42VycALUMZyBIDfi7Q9uDoaiVNi2BD7GmmItRO3+TFFd+FXlHSIpmmP5C 0uboBT80BZh97sQKCP8qBAr2dLt5VZqoVFvF4w+7h1Q8QAlBRklTmOHZc/FOaE52nss1 ANM3osROWWsOlASbhPazKu90LUwZ2kCjohwYqhBkF5I0i0ki03j/MUwTuaK5uZetEpKy YLxg== X-Gm-Message-State: AO0yUKXttUE+92d0IjJgjUFI/BFV5GNH3TkQxGKIodZFN4/v2V/do8Zo XxghANDm8H8EC5DTY6xV32BN6A== X-Google-Smtp-Source: AK7set/NlRRT2thu22oo1zA85LODxArfXyOLPCIJv44Nxf+iu712blTDY5trjsAXAlyn/3unBCtQ/A== X-Received: by 2002:a05:6214:230e:b0:53c:f76f:2e3c with SMTP id gc14-20020a056214230e00b0053cf76f2e3cmr44042190qvb.46.1676240697892; Sun, 12 Feb 2023 14:24:57 -0800 (PST) Received: from mutt-hbsd (pool-100-16-219-215.bltmmd.fios.verizon.net. [100.16.219.215]) by smtp.gmail.com with ESMTPSA id fu48-20020a05622a5db000b003b63a734434sm8028038qtb.52.2023.02.12.14.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 14:24:57 -0800 (PST) Date: Sun, 12 Feb 2023 17:24:56 -0500 From: Shawn Webb To: Mark Millard Cc: FreeBSD Hackers , David Chisnall Subject: Re: CFT: snmalloc as libc malloc Message-ID: <20230212222456.2vcvgf6v45na7jb2@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 14.0-CURRENT-HBSD FreeBSD 14.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <20230212210904.nzxfwtzsjf2tu6ky@mutt-hbsd> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zj3c7escvk6siqap" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4PFMV26ddDz4Y9v X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --zj3c7escvk6siqap Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 12, 2023 at 01:48:59PM -0800, Mark Millard wrote: > On Feb 12, 2023, at 13:09, Shawn Webb wrote: >=20 > > . . . > > That does not include the extra text that would be generated > > by having added the -v requested to that shown command line. > > That tet would likely have been before the text that you did > > include. > >=20 > > Did you add the -v option? Was there extra text? >=20 > Good catch. I missed reading that. Here's the new output: > http://ix.io/4nSy >=20 > Hmm. Scanning that list . . . >=20 > #include "..." search starts here: > #include <...> search starts here: > /data/src/hardenedbsd/lib/libc/include > /data/src/hardenedbsd/include >=20 > The above likely includes a non-C++: stddef.h > That likely overrides any: . . ./include/c++/v1/stddef.h > that is required for things to work for the > nullptr_t issue. (See prior E-mail from when > I noticed that I'd missed the include/c++/v1/stddef.h > involved.) >=20 > /data/src/hardenedbsd/lib/libc/amd64 > /data/src/hardenedbsd/contrib/gdtoa > /data/src/hardenedbsd/contrib/libc-vis > /usr/obj/data/src/hardenedbsd/amd64.amd64/lib/libc > /data/src/hardenedbsd/lib/libc/resolv > /data/src/hardenedbsd/lib/libmd > /data/src/hardenedbsd/lib/libc/locale > /data/src/hardenedbsd/lib/libc/rpc > /data/src/hardenedbsd/lib/libutil > /data/src/hardenedbsd/lib/msun/amd64 > /data/src/hardenedbsd/lib/msun/x86 > /data/src/hardenedbsd/contrib/snmalloc/src/snmalloc > /usr/obj/data/src/hardenedbsd/amd64.amd64/tmp/usr/include/c++/v1 >=20 > The above looks to be the first/only chance to pick > up a C++ based file header (that may in turn look > for a C based one as well). >=20 > /usr/lib/clang/15.0.7/include > /usr/obj/data/src/hardenedbsd/amd64.amd64/tmp/usr/include > /data/src/hardenedbsd/lib/msun/src > End of search list. >=20 > The ordering does not look anything like correct > to me relative to C++ headers, some of which in > turn may include the C variants from the environment. >=20 > It is not so clear to me what the relationship is > to the source_location file issue. Also: find /data/src/hardenedbsd -iname '*source_location*' ^ that returns zero results. Are we ("we" being both FreeBSD and HardenedBSD) completely missing a header file somewhere? Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --zj3c7escvk6siqap Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmPpZzIACgkQ/y5nonf4 4fpmgA//UHRDMqZEhyc5EKTdOdsHpr8MFMHHURLGbjCDwa0V8Lukx3UdUxSThCIl 0efR1dq/CWtDv1JL3eZWEYEO1FWOdczKXjFl/IEHihb4XnoLlwN28S1nCgTE2ofH 1Ky1AGwTQjpOWxQDDp1wCmueGu9hyvzmw+OsLmygFGpqpkAdTKL+l1xJvOe4UPZY 7hHXSRWVzsVFXWWN5lZPGmKnlSq/EDTKfgqxRIFJSuLkrpyNgcWM/JuY1LGMuFCr x/ZfOGeSpJ94DINTDJl90ex2lfK9AxDGMdEGmwcRz5PLC5qgo418bac1lc0o/Ebh yRwaUFsaF5olE+Z0x0NnMfQRwtx5KCzRWoinmzi1lHqZhU4pOzjkw5Oj2b+/HOT1 B0IVh+Hdwd/LbsDOUPGWeV/2OFXe/Kwl//nFQKrZ0feykxIGLqSUfvSbPMkb54kl NDdwBG5Rg3/i/yyGH/hwNFfYxVExa0My5K1tvGzCLCqO9VVzOJ9CRUWytCtKXiRx mFvNhILqTvkpe7qYRdCw2NqMv8242c9n7rUktYEkptbyj4fNwHVl6g9VQjg5FvZi k7VaQ4QPuBzjwvaIH+5g14t93APkKJF9ogC7HM1UwZFTgtIMKDOkTFcYcQK/ersD qK3bkc9rF5u8K/oxkPhIwa1MlG9T7ni4Bd7HPBfyb00L6dBD74w= =ksva -----END PGP SIGNATURE----- --zj3c7escvk6siqap--