Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trustme failed on 32 bit linux #3505

Closed
asvetlov opened this issue Jan 8, 2019 · 4 comments
Closed

trustme failed on 32 bit linux #3505

asvetlov opened this issue Jan 8, 2019 · 4 comments

Comments

@asvetlov
Copy link
Member

asvetlov commented Jan 8, 2019

It prevents from publishing binary linux wheels: https://api.travis-ci.com/v3/job/168850920/log.txt

==================================== ERRORS ====================================
__________________ ERROR at setup of test_ssl_client[pyloop] ___________________

    @pytest.fixture
    def tls_certificate_authority():
>       return trustme.CA()

io/tests/conftest.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
opt/_internal/cpython-3.5.6/lib/python3.5/site-packages/trustme/__init__.py:212: in __init__
    backend=default_backend(),
opt/_internal/cpython-3.5.6/lib/python3.5/site-packages/cryptography/x509/base.py:595: in sign
    return backend.create_x509_certificate(self, private_key, algorithm)
opt/_internal/cpython-3.5.6/lib/python3.5/site-packages/cryptography/hazmat/backends/openssl/backend.py:804: in create_x509_certificate
    self._lib.X509_get_notAfter(x509_cert), builder._not_valid_after
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cryptography.hazmat.backends.openssl.backend.Backend object at 0xf6e759ec>
asn1_time = <cdata 'struct asn1_string_st *' 0x90f5ab0>
time = datetime.datetime(3000, 1, 1, 0, 0)

    def _set_asn1_time(self, asn1_time, time):
        timestamp = calendar.timegm(time.timetuple())
>       res = self._lib.ASN1_TIME_set(asn1_time, timestamp)
E       OverflowError: integer 32503680000 does not fit '32-bit int'

opt/_internal/cpython-3.5.6/lib/python3.5/site-packages/cryptography/hazmat/backends/openssl/backend.py:840: OverflowError

The simplest workaround can be skipping SSL tests on 32-bit linux box.

@webknjaz what do you think?

@aio-libs-bot
Copy link

GitMate.io thinks possibly related issues are #3458 (Beta release is failed on Python 3.7 bot for Linux), #2148 (Failed tests), #2280 (Test fails on ppc64le), #2920 (AIOHttp failing after some requests), and #2717 ([docs] unittest example fails).

@webknjaz
Copy link
Member

webknjaz commented Jan 8, 2019

Oh.. Well, we should xfail it under 32-bit I guess. I'm not sure whether we can fix it in cryptography.

P.S. Now that we have Actions available I can actually run manylinux1 verification builds.

@asvetlov
Copy link
Member Author

SSL tests are disabled on linux32 now

@lock
Copy link

lock bot commented Jan 14, 2020

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Jan 14, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants