From nobody Fri Jan 14 10:32:36 2022 X-Original-To: freebsd-current@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 CB9F4195A3D1 for ; Fri, 14 Jan 2022 10:32:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-19.consmr.mail.gq1.yahoo.com (sonic305-19.consmr.mail.gq1.yahoo.com [98.137.64.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JZyL8045Fz4ZtT for ; Fri, 14 Jan 2022 10:32:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642156360; bh=9vZAHGTP/a6yTN8ovxvPl4t4jIrni+c4U/yEpT3g9gA=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=qlDDMvqlGY2EI3QjzjmRHXXuhNGaluvnDEvCIcNEYo+VGWL0iEmdun1Pbk1NuOaS+0pDvMD0f0VhDF4eW0502RM5ejZtVL8M9oHWfAPRHg5ysoUQT5/b9pjDX2TvwVByxltzzYNBLUCQyEFpo+ZmzXJOIyDNqvqTxQccHioHjB6EkUa5gFbRS62kX2JaM9gxpK1ZbvQujgeSczplCHItA1hZBz6ebZOxNFpxs33kdCDlIiHAQl5KC96CmRAyk08UiuMfH17WwXInt/jG+BbbyvMPmjwz3Q3x7eiSr2C5CFnjJYEcHaWHLU0x8JrPp8f9SGrhCcjpYDAqj39K1luGkA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642156360; bh=PgGo/uPjAfuq49VbZLRf2wcoNCcUsM1nFRy9+cCHwb5=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=PcxIxug6Mz96J6EbZLye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3qr0GfnCm3A NGsJU7Dg6_GGaVxwosAmUZViJuQhh57Cv82aPoKxG4IkDcaSEY6xTBR6YJol76zuKeSriiN5Spp. FQivoqxjcuE3pxEAKN.rlhLfksBjFD7q5JE7hL9shfZSgJX6JkVdouyu4bdjGX8KY.PGGX7PP7BO SsxUPWsTSPRAFBtHghxmY4KeEVqNaMcN8j5.zM7JfaiL3k9dFIcZy1irgbSUecKUH50oo6Mb_J_C Iz3vj1s7hjxOXDD2g5oHV2LQD8kGR2LVdoK4ng4F3ljG3cVPSGSvAxkXPNqR0psxQGY1jqn5JVEg 24zbzQf.V54Hy155yWhjtf98nJpluLOhItqTUQw1iFkx0u59AnPyZg5YrJomrl_YJTZng2aXEZJM bYZ1mwKd.VtcznFfUOZX5lNae1Nb5TM1ctxPiCcwF3_KoEqr5D6wLLOTHD6MroUObEsMU8Sb0ONX 6FuMswed3PmbIuCf1hrXWi0H04wZ1Ai6_N08vPv80W4CGHYlRExDLp_Gcqzb7Frn2baGRHGFPbdQ - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Fri, 14 Jan 2022 10:32:40 +0000 Received: by kubenode527.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID dfbeb349e2898331d57fbe153f93d493; Fri, 14 Jan 2022 10:32:38 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: ASAN&UBSAN world in chroot tree, ports built previously, variable results finding /usr/local/lib/*.so* files Message-Id: <92820E0F-7733-463D-9383-EBFD0C285E05@yahoo.com> Date: Fri, 14 Jan 2022 02:32:36 -0800 To: freebsd-current X-Mailer: Apple Mail (2.3654.120.0.1.13) References: <92820E0F-7733-463D-9383-EBFD0C285E05.ref@yahoo.com> X-Rspamd-Queue-Id: 4JZyL8045Fz4ZtT X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=qlDDMvql; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.82 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.82:from]; MLMMJ_DEST(0.00)[freebsd-current]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.82:from]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Note: like the /usr/local/lib/*.so* files, the wget and git were built previously to the existence of the ASAN&UBSAN world. chrooted into the world I built with ASAN and UBSAN: # ldd `which wget` /usr/local/bin/wget: libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x800edc000) libunistring.so.2 =3D> /usr/local/lib/libunistring.so.2 = (0x80182b000) libidn2.so.0 =3D> /usr/local/lib/libidn2.so.0 (0x801b76000) libssl.so.111 =3D> /usr/lib/libssl.so.111 (0x80229d000) libcrypto.so.111 =3D> /lib/libcrypto.so.111 (0x803a00000) libdl.so.1 =3D> /usr/lib/libdl.so.1 (0x8034ed000) libz.so.6 =3D> /lib/libz.so.6 (0x80585d000) libc.so.7 =3D> /lib/libc.so.7 (0x806e00000) libthr.so.3 =3D> /lib/libthr.so.3 (0x8063fc000) # ldd `which git` /usr/local/bin/git: libpcre2-8.so.0 =3D> not found (0) libz.so.6 =3D> /lib/libz.so.6 (0x801bc5000) libintl.so.8 =3D> not found (0) libthr.so.3 =3D> /lib/libthr.so.3 (0x8009ab000) libc.so.7 =3D> /lib/libc.so.7 (0x804000000) Note the differing results for finding libintl.so.8 . The ldd and which runs get no ASAN reports and no UBSAN reports. SIDE NOTE I will note that attempting to use the wget results in: # wget ld-elf.so.1: /usr/lib/libssl.so.111: Undefined symbol = "__asan_option_detect_stack_use_after_return" END SIDE NOTE Instead chrooted into my normal world built for chrooting into main (no ASAN/UBSAN involvement): % ldd `which wget` /usr/local/bin/wget: libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x8022a3000) libunistring.so.2 =3D> /usr/local/lib/libunistring.so.2 = (0x801c69000) libidn2.so.0 =3D> /usr/local/lib/libidn2.so.0 (0x803227000) libssl.so.111 =3D> /usr/lib/libssl.so.111 (0x80372d000) libcrypto.so.111 =3D> /lib/libcrypto.so.111 (0x803a37000) libdl.so.1 =3D> /usr/lib/libdl.so.1 (0x805668000) libz.so.6 =3D> /lib/libz.so.6 (0x804618000) libc.so.7 =3D> /lib/libc.so.7 (0x806aca000) libthr.so.3 =3D> /lib/libthr.so.3 (0x80468a000) % ldd `which git` /usr/local/bin/git: libpcre2-8.so.0 =3D> /usr/local/lib/libpcre2-8.so.0 = (0x801b2d000) libz.so.6 =3D> /lib/libz.so.6 (0x801324000) libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x801fe8000) libthr.so.3 =3D> /lib/libthr.so.3 (0x802ed9000) libc.so.7 =3D> /lib/libc.so.7 (0x803d98000) Note that both libintl.so.8 and libintl.so.8 were found, as expected. (wget and git both run just fine as well.) It is the same /usr/local/ file system, used from the two contexts (mounted into the chroot trees). It appears that lots of ports from that /usr/local/ tree get "Shared object not found" messages for one or more /usr/local/lib/*.so* files (matching up with ldd reports of not found). =3D=3D=3D Mark Millard marklmi at yahoo.com