🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
3 messages
3 total messages Started by Simon Josefsson Wed, 04 Nov 2026 08:50
Bug#1069450:
#3206
Author: Simon Josefsson
Date: Wed, 04 Nov 2026 08:50
117 lines
7127 bytes
--=-=-=
Content-Type: text/plain

Thanks for continued testing related to this problem.

As suggested by earlier discussion, this issue is delicate, and I think
what we have managed to do is to get the 'socket-wrapper' self-tests
working by modifying various compiler parameters, but this makes the
self-tests no longer test real-world application usage of
socket-wrapper, so it is merely covering up the real problem.

One "simple" solution is to drop armhf support.  That has consequences
for other packages though (they have to make socket-wrapper an optional
dependency, or arrange so it is not run on armhf).  If we could find a
way to make it easier for consumers of this package to not have to
special-case armhf, I'm for this solution.

I assume what you are seeing is the same problem discussed in this bug
report, so it feels fine to continue discuss it here.  If it is caused
by something else (not entirely impossible) then a separate bug is in
order.  But until we have confirmation one way or another, having all
armhf+32vs64bit issues in this bug report seems fine.

/Simon

Aron Xu <aron@debian.org> writes:

> Hi,
>
> I would like to add a downstream runtime example to the time64 discussion
> here. This is distinct from the original socket-wrapper build failure.
>
> The ocserv 1.6.0-2 autopkgtest on testing/armhf [1] installs:
>
>   libsocket-wrapper       1.5.2-2+b2
>   python3.14-minimal       3.14.10-1
>   libopenconnect5         9.21-5
>
> Two tests fail while setting TCP_NODELAY under LD_PRELOAD=libsocket_wrapper.so:
>
>   haproxy-auth, in the OpenConnect client:
>     Failed setsockopt(TCP_NODELAY) on TLS socket:: Operation not supported
>
>   test-gssapi-opt-pass, in Python's http.client connection setup:
>     self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
>     OSError: [Errno 95] Operation not supported
>
> The latter fails before reaching the intended GSSAPI-to-password fallback
> exchange. These are not the OIDC test privilege issues fixed in ocserv
> 1.6.0-2; those tests pass in this run.
>
> I downloaded the exact armhf package versions listed above and inspected
> their dynamic symbol tables with readelf. The results are:
>
>   libsocket_wrapper.so exports:
>     setsockopt
>     getsockopt
>
>   /usr/bin/python3.14 and libopenconnect.so.5.10.0 import:
>     __setsockopt64@GLIBC_2.34
>     __getsockopt64@GLIBC_2.34
>
> The wrapper has no exported __setsockopt64 or __getsockopt64 symbols.
> Python's _socket module is built into the inspected interpreter. This points
> to an interposition gap for time64-built applications.
>
> This seems relevant to the earlier caution in this report that passing
> socket-wrapper's own tests does not necessarily establish correctness for
> applications using it. It also appears related to upstream bug #15720 [4],
> although that report does not explicitly discuss these socket-option
> symbols.
>
> Would you prefer to track the missing time64 socket-option interception
> here, or should this be filed as a separate runtime bug?
>
> Thanks,
> Aron
>
> [1] https://ci.debian.net/data/autopkgtest/testing/armhf/o/ocserv/77442865/log.gz
> [2] https://raw.githubusercontent.com/bminor/glibc/master/socket/sys/socket.h
> [3] https://sources.debian.org/data/main/s/socket-wrapper/1.5.2-2/src/socket_wrapper.c
> [4] https://bugzilla.samba.org/show_bug.cgi?id=15720
>
>
> _______________________________________________
> Pkg-sssd-devel mailing list
> Pkg-sssd-devel@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-sssd-devel
>

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQOEBAEWCgMsFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmrq79AbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyFBxzaW1vbkBqb3NlZnNzb24ub3JnwhwmAJgzBFyS
zrQWCSsGAQQB2kcPAQEHQAiHK2SL4a8QwZCvX1fkJU5l8aNp2jmw7hrcOfGGsZTr
tCVTaW1vbiBKb3NlZnNzb24gPHNpbW9uQGpvc2Vmc3Nvbi5vcmc+iJYEExYIAD4C
GwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AWIQSx0r0Tdb7LeEz0+MTXPPY4xTwG
vgUCatfMtwUJD2HCAwAKCRDXPPY4xTwGvue9AP40ROc4bUzq1zxU43T76rWP+6jv
mKO/CaPer1S2fZMOtQEAuMKQ3X/qP75LtsbJG82TaaIkg2UM5Mw+pp0UOfPJ6Aq4
OARcks9qEgorBgEEAZdVAQUBAQdAMZUbpg1up2WOwPlQn3pPVaRMejyZnScmD7d5
TRzHehwDAQgHiH4EGBYIACYCGwwWIQSx0r0Tdb7LeEz0+MTXPPY4xTwGvgUCatfL
twUJD2HATQAKCRDXPPY4xTwGvocHAP9g1zG1w10/lhb7ksrN9T8xnHTOZNibd27d
k+X+leRCkQD+OWllYuM1N1ZA/a5Qjyv7pnq+hrxeqSg+cnm4ArlDQwa4MwRcks+B
FgkrBgEEAdpHDwEBB0DsUwiDmnlwMSNoSF+ByvW0E6TVXou9PKDa9SpZvKghioj1
BBgWCAAmAhsCFiEEsdK9E3W+y3hM9PjE1zz2OMU8Br4FAmrXy7oFCQ9hwDYAgXYg
BBkWCAAdFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAlySz4EACgkQUXIrCP5HRaKn
TAEAoB+OWrHmYCK8Cjr1DgPUH7JnhPBmR2DbhR5jPRREEugA+gOMeWmL6GOpaPfK
YLcNhzw4ZnAlxSLY1wq1eANBpiQOCRDXPPY4xTwGvjf7AP9MpnBFLDHomavCkXzR
aJEaYqYigvHl7W7qWuswi2FgTQEAg7xKIF4THHLZj4f48rwFG7VW2ts8o/SaYpJM
ogWJlwYACgkQUXIrCP5HRaLYzwEAkgkvLX5HB5lhQzy1ZZGTKjVtZdm+pNexqz8W
9tW/tN4BAIhjeT+PeBgrIptk8NHISTm6bcTH4uMzlm8WkabbLRMI
=3KeG
-----END PGP SIGNATURE-----
--=-=-=--
Bug#1069450:
#3497
Author: Aron Xu
Date: Fri, 06 Nov 2026 16:20
35 lines
3936 bytes
On Thu, Nov 5, 2026 at 2:30 AM Miao Wang <shankerwangmiao@gmail.com> wrote:
>
> Hi,
>
> I believe the root cause is that socket-wrapper tries to wrap around
> glibc symbols but fails to provide symbols for both the 32-bit time
> ABI and 64-bit time ABI as glibc does. In the code of socket-wrapper
> we can see the compatibility for LFS64 ABI has already been integrated.
> In [1] I proposed a patch series to add the compatibility to both
> time abis, and in the same time add tests for both abis, to ensure
> that the compiled library can correctly intercept calls to libc
> functions from executables in both ABIs.
>
> I have tested my patch on:
>
> - arm64 trixie, as a smoke test;
> - armhf trixie, to test on t64 ABI systems;
> - armhf bookworm, to test on t32 ABI systems with t64 support
> - armhf bullseye, to test on t32 ABI systems without t64 support
> - i386 trixie, to test on t32 ABI systems with t64 support
>
> Cheers,
>
> Miao Wang
>
> [1]: https://salsa.debian.org/shankerwangmiao/socket-wrapper/-/commits/pr-time64
>

I gave this patch a try with the reported failed version of ocserv and
the relevant test cases are passing.

Regards,
Aron
Bug#1069450:
#6423
Author: Simon Josefsson
Date: Fri, 27 Nov 2026 12:40
79 lines
5370 bytes
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi

I tried applying these to v1.5.3 and it didn't work, could you please
update the patch for v1.5.3?  I think we could upload it into Debian to
allow more experimentation, although I'd really prefer some
upstream-blessed solution here.

/Simon

Aron Xu <aron@debian.org> writes:

> On Thu, Nov 5, 2026 at 2:30=E2=80=AFAM Miao Wang <shankerwangmiao@gmail.c=
om> wrote:
>>
>> Hi,
>>
>> I believe the root cause is that socket-wrapper tries to wrap around
>> glibc symbols but fails to provide symbols for both the 32-bit time
>> ABI and 64-bit time ABI as glibc does. In the code of socket-wrapper
>> we can see the compatibility for LFS64 ABI has already been integrated.
>> In [1] I proposed a patch series to add the compatibility to both
>> time abis, and in the same time add tests for both abis, to ensure
>> that the compiled library can correctly intercept calls to libc
>> functions from executables in both ABIs.
>>
>> I have tested my patch on:
>>
>> - arm64 trixie, as a smoke test;
>> - armhf trixie, to test on t64 ABI systems;
>> - armhf bookworm, to test on t32 ABI systems with t64 support
>> - armhf bullseye, to test on t32 ABI systems without t64 support
>> - i386 trixie, to test on t32 ABI systems with t64 support
>>
>> Cheers,
>>
>> Miao Wang
>>
>> [1]:
>> https://salsa.debian.org/shankerwangmiao/socket-wrapper/-/commits/pr-tim=
e64
>>
>
> I gave this patch a try with the reported failed version of ocserv and
> the relevant test cases are passing.
>
> Regards,
> Aron

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQOEBAEWCgMsFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmsJeX8bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyFBxzaW1vbkBqb3NlZnNzb24ub3JnwhwmAJgzBFyS
zrQWCSsGAQQB2kcPAQEHQAiHK2SL4a8QwZCvX1fkJU5l8aNp2jmw7hrcOfGGsZTr
tCVTaW1vbiBKb3NlZnNzb24gPHNpbW9uQGpvc2Vmc3Nvbi5vcmc+iJYEExYIAD4C
GwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AWIQSx0r0Tdb7LeEz0+MTXPPY4xTwG
vgUCatfMtwUJD2HCAwAKCRDXPPY4xTwGvue9AP40ROc4bUzq1zxU43T76rWP+6jv
mKO/CaPer1S2fZMOtQEAuMKQ3X/qP75LtsbJG82TaaIkg2UM5Mw+pp0UOfPJ6Aq4
OARcks9qEgorBgEEAZdVAQUBAQdAMZUbpg1up2WOwPlQn3pPVaRMejyZnScmD7d5
TRzHehwDAQgHiH4EGBYIACYCGwwWIQSx0r0Tdb7LeEz0+MTXPPY4xTwGvgUCatfL
twUJD2HATQAKCRDXPPY4xTwGvocHAP9g1zG1w10/lhb7ksrN9T8xnHTOZNibd27d
k+X+leRCkQD+OWllYuM1N1ZA/a5Qjyv7pnq+hrxeqSg+cnm4ArlDQwa4MwRcks+B
FgkrBgEEAdpHDwEBB0DsUwiDmnlwMSNoSF+ByvW0E6TVXou9PKDa9SpZvKghioj1
BBgWCAAmAhsCFiEEsdK9E3W+y3hM9PjE1zz2OMU8Br4FAmrXy7oFCQ9hwDYAgXYg
BBkWCAAdFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAlySz4EACgkQUXIrCP5HRaKn
TAEAoB+OWrHmYCK8Cjr1DgPUH7JnhPBmR2DbhR5jPRREEugA+gOMeWmL6GOpaPfK
YLcNhzw4ZnAlxSLY1wq1eANBpiQOCRDXPPY4xTwGvjf7AP9MpnBFLDHomavCkXzR
aJEaYqYigvHl7W7qWuswi2FgTQEAg7xKIF4THHLZj4f48rwFG7VW2ts8o/SaYpJM
ogWJlwYACgkQUXIrCP5HRaKTjgD/WfvCh8WQTHV8uijCMLHzWdYYz4iAK/MDrGkp
iwAMtWEBAN1Yevq6zTt7QSDybBaSd6WOnD7UpspVBWP8E+a/I44I
=1St4
-----END PGP SIGNATURE-----
--=-=-=--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads