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' <repeats 449 times>

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 02 Sep 2023 16:37:18 UTC
On Sep 2, 2023, at 00:35, Mark Millard <marklmi@yahoo.com> wrote:

> For:
> 
>> Date: Sat, 02 Sep 2023 00:58:29 UTC 
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273506
>> 
>> 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
> 
> Turns out that internally dlerror is reporting:
> 
> "/usr/lib/ossl-modules/legacy.so: Undefined symbol \"MD4_Update\"", '\000' <repeats 449 times>
> 
> (as shown via a gdb session printing the string).
> 
> See:
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273506#c3
> 
> where I finally got to that information.

amd64 did not have:

devel/py-pytest-twisted
devel/py-twisted
net/py-dpkt
security/nist-kat
security/openvpn

installed and so was not doing the same sequence of dlopen
calls.

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.

[Detaching after fork from child process 98729]

Breakpoint 1.1, dlopen (name=name@entry=0x803239710 "libc.so.7", mode=2) at /usr/main-src/libexec/rtld-elf/rtld.c:3662
3662 return (rtld_dlopen(name, -1, mode));
(gdb) c
Continuing.

Breakpoint 1.1, dlopen (name=name@entry=0x8032c80d0 "/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.abi3.so", mode=2) at /usr/main-src/libexec/rtld-elf/rtld.c:3662
3662 return (rtld_dlopen(name, -1, mode));
(gdb) c
Continuing.

Breakpoint 1.1, dlopen (name=name@entry=0x8032c7440 "/usr/local/lib/python3.9/site-packages/_cffi_backend.cpython-39.so", mode=2) at /usr/main-src/libexec/rtld-elf/rtld.c:3662
3662 return (rtld_dlopen(name, -1, mode));
(gdb) c
Continuing.

Breakpoint 1.1, dlopen (name=name@entry=0x80219d080 "/usr/lib/ossl-modules/legacy.so", mode=2) 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):
. . .

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.


===
Mark Millard
marklmi at yahoo.com