From nobody Sun Sep 3 02:00:01 2023 X-Original-To: freebsd-arm@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 4RdZjJ5S5mz4rX0D for ; Sun, 3 Sep 2023 02:00:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-55.consmr.mail.gq1.yahoo.com (sonic316-55.consmr.mail.gq1.yahoo.com [98.137.69.31]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RdZjH04hVz3Mf3 for ; Sun, 3 Sep 2023 02:00:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=cskGKiuZ; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1693706416; bh=GOgupRw7AgIfgN+zq1LXbnX6xDtFnrvAuD+M7RdhOeQ=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=cskGKiuZHcRO5NCtogQsgMaMwWksaio5mYO8Xpc9m9J0onlT4lq6hOtO4aj9krjjqFo7AKc9HN3nPI3QxZngw8jnVDnRiork0HEH/fsZS21us7rnSIK9TYTE6q1UCs13EScbWXB9MfbSMwdaGIrfvFSeDpCzj+YrsiT0VTM7sed17TYnLiB4Is+QZ5/OgpYIvNzn4NXK7wj20lyL3q3lXl6mu93vfyuj1uY8RAX7tEb2VWFNBQmcPSeiNh+ZWiWi7oxkj2RYUaxwcKwfVeXcmt2o4o9HYRBuUpfszVrqM6ys49Nw1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B2L6hmqF3x.1pyr9TdOvhIcLF6vBny8fP_yt621ABD uiZbn6Jzwu5WXEGRx6Sg_L6JVvinGvs7ZGlCbbXnqmAlsVvOzdV0CvPae00cRiq5T.C9MzLtkBtE GsQMAxBPIAYShsEQInaL_WRNiby_2pnNH8K_THc.cyL5kVwMYNQ9QsVJjuip6wdwOvx41FOKBUAR eMa1oDA.BuR3BXP4DB5dD7oqHzzkki5xpVoCQ5hAndwR.Wvvov.PNPaV.zQrsYH2iny7ZJTGSGwP XQAoUevB3ITosH.e3Rvrkx5QFCessgVRudbd5Q3tLtkaYp2Jspl1GweWArFh7YgnefHiChNP7hK7 nWGSHVT.LpAyEKjN_LGKgqLbpOFa0C4iyUbisCyCRmsHiwNZvRWjrFJB5L5TvZivja8BSF83w83F ikNTjXwt2FfOrUHcaXankRedoNlSH9dFiY5mzaF5O.9dI..m3sKm0BR.fMGPdlvwQ1OrfnBi5HxC cdKoqwG582YG_qIme9WTCibI51gc5.xOXXF7A4TZL0MBSPKefcHSSoc.rbaWcII2H6kfDc.B.h8v n5uAR79yP.L1QiZ_1md4FjswAOfVNLqIpT3RR3xMa_2BVmWtCfRMZO525hQ7gwFsyITa_dpEpu6C rTrTebYshJGKINLDwEEnduFXGW8PBOBdYDAVnFopz_HvKN3_r3S7kC2fubp6iKLBqKtBpiGsQHJU - X-Sonic-MF: X-Sonic-ID: e5821fcf-7d69-44a2-9ace-8f9fdf70182d Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Sun, 3 Sep 2023 02:00:16 +0000 Received: by hermes--production-gq1-6b7c87dcf5-rj56s (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID dd6a013517d11c7245095b72928ac780; Sun, 03 Sep 2023 02:00:11 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: [Bug 273506] main [so: 15] aarch64 kyua python use fails with: . . . and dlerror is reporting "/usr/lib/ossl-modules/legacy.so: Undefined symbol \"MD4_Update\"", '\000' [crude patch] Date: Sat, 2 Sep 2023 19:00:01 -0700 References: <721EBF15-6905-437E-9B23-A4E3D1129658@yahoo.com> To: freebsd-arm , Current FreeBSD In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: - X-Spamd-Result: default: False [-1.98 / 15.00]; LONG_SUBJ(1.52)[202]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.31:from]; BLOCKLISTDE_FAIL(0.00)[98.137.69.31:server fail]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.31:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RdZjH04hVz3Mf3 On Sep 2, 2023, at 09:37, Mark Millard wrote: > On Sep 2, 2023, at 00:35, Mark Millard wrote: >=20 >> For: >>=20 >>> Date: Sat, 02 Sep 2023 00:58:29 UTC=20 >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273506 >>>=20 >>> Bug ID: 273506 >>> Summary: main [so: 15] aarch64 kyua python use fails with: >>> "RuntimeError: OpenSSL 3.0's legacy provider failed to >>> load" >>> Product: Base System >>> Version: CURRENT >>> Hardware: Any >>> OS: Any >>> Status: New >>> Severity: Affects Only Me >>> Priority: --- >>> Component: arm >>> Assignee: freebsd-arm@FreeBSD.org >>> Reporter: marklmi26-fbsd@yahoo.com >>=20 >> Turns out that internally dlerror is reporting: >>=20 >> "/usr/lib/ossl-modules/legacy.so: Undefined symbol \"MD4_Update\"", = '\000' >>=20 >> (as shown via a gdb session printing the string). >>=20 >> See: >>=20 >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273506#c3 >>=20 >> where I finally got to that information. >=20 > amd64 did not have: >=20 > devel/py-pytest-twisted > devel/py-twisted > net/py-dpkt > security/nist-kat > security/openvpn >=20 > installed and so was not doing the same sequence of dlopen > calls. >=20 > After adding those, the amd64 run fails like aarch64: It then starts = to try > to use .../cryptography/hazmat/bindings/_rust.abi3.so leads to the = problem. >=20 > [Detaching after fork from child process 98729] >=20 > Breakpoint 1.1, dlopen (name=3Dname@entry=3D0x803239710 "libc.so.7", = mode=3D2) at /usr/main-src/libexec/rtld-elf/rtld.c:3662 > 3662 return (rtld_dlopen(name, -1, mode)); > (gdb) c > Continuing. >=20 > Breakpoint 1.1, dlopen (name=3Dname@entry=3D0x8032c80d0 = "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust= .abi3.so", mode=3D2) at /usr/main-src/libexec/rtld-elf/rtld.c:3662 > 3662 return (rtld_dlopen(name, -1, mode)); > (gdb) c > Continuing. >=20 > Breakpoint 1.1, dlopen (name=3Dname@entry=3D0x8032c7440 = "/usr/local/lib/python3.9/site-packages/_cffi_backend.cpython-39.so", = mode=3D2) at /usr/main-src/libexec/rtld-elf/rtld.c:3662 > 3662 return (rtld_dlopen(name, -1, mode)); > (gdb) c > Continuing. >=20 > Breakpoint 1.1, dlopen (name=3Dname@entry=3D0x80219d080 = "/usr/lib/ossl-modules/legacy.so", mode=3D2) at = /usr/main-src/libexec/rtld-elf/rtld.c:3662 > 3662 return (rtld_dlopen(name, -1, mode)); > (gdb) c > Continuing. > INTERNALERROR> Traceback (most recent call last): > . . . >=20 > This appears to be tied to devel/py-twisted and/or = devel/py-pytest-twisted > but like anything leading to loading > .../cryptography/hazmat/bindings/_rust.abi3.so is going to get the > problem. >=20 The following crude patch leads to kyua's python use working for examples/test_examples.py with devel/py-pytest-twisted and devel/py-twisted and the like installed. The below might not end up with leading whitespace preserved: # git -C /usr/main-src/ diff crypto/openssl/crypto/init.c diff --git a/crypto/openssl/crypto/init.c b/crypto/openssl/crypto/init.c index cacf637c89f8..77f693fcfa05 100644 --- a/crypto/openssl/crypto/init.c +++ b/crypto/openssl/crypto/init.c @@ -159,7 +159,7 @@ = DEFINE_RUN_ONCE_STATIC(ossl_init_load_crypto_nodelete) if (!err_shelve_state(&err)) return 0; =20 - dso =3D DSO_dsobyaddr(&base_inited, = DSO_FLAG_NO_UNLOAD_ON_FREE); + dso =3D DSO_dsobyaddr(&base_inited, = DSO_FLAG_NO_UNLOAD_ON_FREE|DSO_FLAG_GLOBAL_SYMBOLS); /* * In case of No!, it is uncertain our exit()-handlers can = still be * called. After dlclose() the whole library might have been = unloaded (A variant of the above note is also in my separate bugzilla.) For reference: # /usr/bin/kyua test -k /usr/tests/Kyuafile examples/test_examples.py examples/test_examples.py:TestExampleSimple::test_get_properties -> = skipped: comment me to run the test [0.582s] examples/test_examples.py:TestExampleSimple::test_one -> skipped: = comment me to run the test [0.589s] examples/test_examples.py:TestExampleSimple::test_parametrize[AF_INET6] = -> skipped: comment me to run the test [0.582s] examples/test_examples.py:TestExampleSimple::test_parametrize[AF_INET] = -> skipped: comment me to run the test [0.595s] examples/test_examples.py:TestExampleSimple::test_parametrize[FAMILY_39] = -> skipped: comment me to run the test [0.589s] examples/test_examples.py:TestExampleSimple::test_syscall_failure -> = skipped: comment me to run the test [0.590s] examples/test_examples.py:TestExampleSimple::test_two -> skipped: = Required file '/path/file1' not found [0.001s] examples/test_examples.py:TestExampleSimple::test_with_cleanup -> passed = [0.583s] examples/test_examples.py:TestExampleSimplest::test_one -> skipped: = comment me to run the test [0.583s] examples/test_examples.py:TestVnetDual1::test_ifstat -> skipped: comment = me to run the test [0.593s] examples/test_examples.py:TestVnetSimple::test_ping -> skipped: comment = me to run the test [0.589s] examples/test_examples.py:TestVnetSimple::test_topology -> skipped: = comment me to run the test [0.588s] Results file id is usr_tests.20230903-014520-255324 Results saved to = /usr/home/root/.kyua/store/results.usr_tests.20230903-014520-255324.db 12/12 passed (0 failed) =3D=3D=3D Mark Millard marklmi at yahoo.com