proposed-migration for m2crypto 0.40.1-2build1
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
m2crypto (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Fix Committed
|
High
|
Spyros Seimenis | |||
Oracular |
Fix Released
|
High
|
Spyros Seimenis |
Bug Description
[ Impact ]
* Users of the m2crypto library on i386 face potential breakage since the timeout code in SSL doesn't account for t64 support.
* This was causing autopkgtests failures and is currently regressed in baseline.
* The proposed patch uses "long long" instead of "long" when packing time values that are used as arguments to library calls that use time_t structures but excludes i386 and i686 from this new behavior since support for t64 hasn't been added for those architectures.
[ Test Plan ]
* Test by running the test suite (or the autopkgtests) on an armhf system will cause tests to fail.
* the failed test can be run by issuing `python3 -munittest -v tests.test_
* after applying the patch, running the autopkgtest suite both in an armhf and an i386 host.
[ Where problems could occur ]
* The package features an example SSL connection client which uses the affected code. In case of further breakage caused by the patch, users of that SSL client would be affected.
[ Other Info ]
* This has been fixed in Oracular and in Debian.
[Original report]
m2crypto 0.40.1-2build1 fails tests on armhf:
423s =======
=====
423s ______________ MiscSSLClientTe
_____
423s
423s self = <tests.
timeouts>
423s
423s def test_server_
423s pid = self.start_
423s # Arbitrary value:
423s test_timeout_sec = 909
423s # Linux rounds microseconds in the timeouts up to the HZ kernel par
ameter.
423s # Windows rounds down to milliseconds.
423s # To avoid checking for rounded values, pick interval long enough
423s # so that it is a whole number of ms and HZ for any reasonable HZ v
alue.
423s test_timeout_
423s
423s try:
423s with self.assertRais
423s SSL.Context(
423s ctx = SSL.Context()
423s s = SSL.Connection(ctx)
423s
423s r = s.get_socket_
423s w = s.get_socket_
423s self.assertEqua
423s self.assertEqua
423s self.assertEqua
423s self.assertEqua
423s
423s > s.set_socket_
"timeout" means time_t regression.
Changed in m2crypto (Ubuntu): | |
assignee: | nobody → Steve Langasek (vorlon) |
tags: | added: time-t |
description: | updated |
Changed in m2crypto (Ubuntu): | |
importance: | Undecided → High |
assignee: | Steve Langasek (vorlon) → nobody |
Changed in m2crypto (Ubuntu): | |
assignee: | nobody → Spyros Seimenis (sespiros) |
description: | updated |
that seems to be fixed in 0.40.1-3 in oracular