Your message dated Sat, 14 Feb 2026 22:50:06 +0000
with message-id <[email protected]>
and subject line Bug#1126257: fixed in m2crypto 0.46.2-3
has caused the Debian Bug report #1126257,
regarding OSError: [Errno 22] Invalid argument in set_socket_read_timeout on 
32-bit architectures with 64-bit time_t
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1126257: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126257
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: m2crypto
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]

When running the test suite on 32-bit architectures that use 64-bit time_t 
(e.g., modern armhf/i386 for Y2038 compliance), test_server_simple_timeouts 
fails with OSError: [Errno 22] Invalid argument.

Steps to Reproduce

Run autopkgtest or pytest on a 32-bit system with a 64-bit time_t kernel. Run 
tests/test_ssl.py::MiscSSLClientTestCase::test_server_simple_timeouts.

Actual Result (logs -> 
https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-resolute/resolute/armhf/m/m2crypto/20260113_215730_4a505@/log.gz)

E       OSError: [Errno 22] Invalid argument
/usr/lib/python3/dist-packages/M2Crypto/SSL/Connection.py:689: OSError
The M2Crypto.SSL.timeout.timeout.pack() method uses struct.pack("ll", ...) when 
m2.time_t_bits() == 64.

On standard 64-bit systems (x86_64), l is 8 bytes. ll = 16 bytes. (Correct)

On 32-bit systems, l is 4 bytes. ll = 8 bytes. (Incorrect)

The kernel expects a 16-byte struct timeval (two 64-bit integers) because of 
the Y2038-compliant 64-bit time_t. Passing an 8-byte structure causes 
setsockopt to reject the call with EINVAL.

Proposed Fix: Change the packing format from "ll" to "qq" (long long). This 
forces 8-byte integers on all platforms, ensuring the structure is always 16 
bytes when time_t is 64-bit.



-- System Information:
Debian Release: forky/sid
  APT prefers questing-updates
  APT policy: (500, 'questing-updates'), (500, 'questing-security'), (500, 
'questing'), (100, 'questing-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 6.17.0-8-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--- End Message ---
--- Begin Message ---
Source: m2crypto
Source-Version: 0.46.2-3
Done: Bastian Germann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
m2crypto, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <[email protected]> (supplier of updated m2crypto package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 14 Feb 2026 23:28:14 +0100
Source: m2crypto
Architecture: source
Version: 0.46.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Bastian Germann <[email protected]>
Closes: 1126257
Changes:
 m2crypto (0.46.2-3) unstable; urgency=medium
 .
   * Team upload
   * correct struct packing on 32-bit with _TIME_BITS=64 (Closes: #1126257)
Checksums-Sha1:
 5ffc5d5339a8b9c7b9e7dfed6d83aeaebf7eb369 2198 m2crypto_0.46.2-3.dsc
 2839b86f19d63ec807d328cf50d8674a86c60418 60624 m2crypto_0.46.2-3.debian.tar.xz
 97c8e8951f508c6dbf55091f7e2ec210e73f03b6 7338 
m2crypto_0.46.2-3_source.buildinfo
Checksums-Sha256:
 570f1423020a84e5a6ccd7527aa39c26efb4c1ecdf9d0b83dafed90f2ddae5cb 2198 
m2crypto_0.46.2-3.dsc
 cb143022678da17e934bd1e79a568f4daf5ba66def847c01758acb7f126ee6fc 60624 
m2crypto_0.46.2-3.debian.tar.xz
 a4ac48d94494d299dd412e7224401182063da8030f1ce45a80a6f09e1001b7ec 7338 
m2crypto_0.46.2-3_source.buildinfo
Files:
 d0dc35923fa48dc00823ed28bd4d28e0 2198 python optional m2crypto_0.46.2-3.dsc
 5537548870ec75ab40e688ba82a98516 60624 python optional 
m2crypto_0.46.2-3.debian.tar.xz
 2f338e31028fe7b6333111b074e57cd1 7338 python optional 
m2crypto_0.46.2-3_source.buildinfo

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

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmmQ9yoQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFAORDADy5LloONOEAcxyTSTy85nDCdg4o39VMYYZ
1KxrYBfRao3bvGZ7/SJki3KKDn6eY16x1HIzmzjlCC/sHmsANXN3Ii9h7QrOaUNW
yidsy3JmkOFuGdXwg8Tv+Hq7+TqfL/Py+j6FT8VN174tc7CI2bgLn9fda7OyGJBS
EVdxlTWi5vFhPukpD/B2wBDks+g3wFoK+UcYZoXn5dt/WASH5vLldiOK8QLUkx7S
5fna2ELk2Cs1/2zzLA/NCafH+UNNnbqFViDZvbyFD8I/THMZ+OvKHAuHM4V9DfJi
LPtqg+WmcQLGw+pfFkZGV2ii+YPQ8bSIPi87/1ic0o6JbInL12x3exG2GlTy2t6z
53dBQ9f3HVT176O2t/3N8jMqsvPXSFBzFaOxlJh5dcwtqgbruMPXK0Dbe7CN5raH
zbytk7NYHRJD+AA26bciBG1ZGXEMG8QaeaTCfgfNqORmI7hqHCBQAj2NrYolf05M
cxSVv6B4PcK/8gGelhZ/dEKWn8PDKHw=
=ywBk
-----END PGP SIGNATURE-----

Attachment: pgp9_hLH6iEOe.pgp
Description: PGP signature


--- End Message ---

Reply via email to