Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926700 - dev-python/cryptography-42.0.5 fails tests on 32-bit: OverflowError: Python int too large to convert to C ssize_t
Summary: dev-python/cryptography-42.0.5 fails tests on 32-bit: OverflowError: Python i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 925119 925173
  Show dependency tree
 
Reported: 2024-03-10 17:37 UTC by matoro
Modified: 2024-07-12 02:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_926700.txt,992.96 KB, text/plain)
2024-03-10 17:38 UTC, matoro
Details
build.log and emerge --info (arm) (file_926700.txt,992.64 KB, text/plain)
2024-04-03 00:26 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-03-10 17:37:26 UTC
FAILED tests/hazmat/primitives/test_aead.py::TestChaCha20Poly1305::test_data_too_large - OverflowError: Python int too large to convert to C ssize_t
FAILED tests/hazmat/primitives/test_aead.py::TestAESCCM::test_data_too_large - OverflowError: Python int too large to convert to C ssize_t
FAILED tests/hazmat/primitives/test_aead.py::TestAESGCM::test_data_too_large - OverflowError: Python int too large to convert to C ssize_t
FAILED tests/hazmat/primitives/test_aead.py::TestAESOCB3::test_data_too_large - OverflowError: Python int too large to convert to C ssize_t
FAILED tests/hazmat/primitives/test_aead.py::TestAESSIV::test_data_too_large - OverflowError: Python int too large to convert to C ssize_t
================================================ 5 failed, 3023 passed, 193 skipped in 32.05s =================================================

Reproducible: Always
Comment 1 matoro archtester 2024-03-10 17:38:09 UTC
Created attachment 887266 [details]
build.log and emerge --info
Comment 2 matoro archtester 2024-03-10 17:41:55 UTC
Technically a regression from last stable (41.0.7)
Comment 3 matoro archtester 2024-03-10 17:50:49 UTC
Unfortunately no other version between last stable and this one builds due to atomic issue.
Comment 4 matoro archtester 2024-04-03 00:25:54 UTC
And arm, presumably 32-bit issue.
Comment 5 matoro archtester 2024-04-03 00:26:43 UTC
Created attachment 889303 [details]
build.log and emerge --info (arm)
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-03 15:16:45 UTC
Could someone file a bug upstream?
Comment 7 Larry the Git Cow gentoo-dev 2024-05-25 15:07:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b20e6746cce1f85506d047fb163f9466e7e90a19

commit b20e6746cce1f85506d047fb163f9466e7e90a19
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-05-25 15:06:21 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-05-25 15:07:47 +0000

    dev-python/cryptography: Backport 32-bit platform test fix
    
    Closes: https://bugs.gentoo.org/926700
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/cryptography/cryptography-42.0.7.ebuild |  5 ++
 .../files/cryptography-42.0.7-32bit.patch          | 64 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)
Comment 8 matoro archtester 2024-07-10 15:09:57 UTC
Still an issue on 42.0.8
Comment 9 Larry the Git Cow gentoo-dev 2024-07-12 02:37:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=089de14d376e952530a6b6e462618959190af930

commit 089de14d376e952530a6b6e462618959190af930
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-07-12 02:36:57 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-07-12 02:36:57 +0000

    dev-python/cryptography: Readd 32-bit fix to 42.0.8
    
    Closes: https://bugs.gentoo.org/926700
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/cryptography/cryptography-42.0.8.ebuild | 5 +++++
 1 file changed, 5 insertions(+)