FTBFS with openssl 3.0.1: buffer too small

Bug #1956514 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-cryptography (Ubuntu)
Fix Released
Undecided
Andreas Hasenack

Bug Description

openssl 3.0.1 fixed a bug[1] which tripped[2] the tests of python-cryptography and made the package fail to build[3]:

lib = <module 'lib'>, ok = False
errors = [<cryptography.hazmat.bindings.openssl.binding._OpenSSLError object at 0x7f5845ec02e0>]

    def _openssl_assert(lib, ok, errors=None):
        if not ok:
            if errors is None:
                errors = _consume_errors(lib)
            errors_with_text = _errors_with_text(errors)

> raise InternalError(
                "Unknown OpenSSL error. This error is commonly encountered when "
                "another library is not cleaning up the OpenSSL error stack. If "
                "you are using cryptography with another library that uses "
                "OpenSSL try disabling it before reporting a bug. Otherwise "
                "please file an issue at https://github.com/pyca/cryptography/"
                "issues with information on how to reproduce "
                "this. ({0!r})".format(errors_with_text),
                errors_with_text,
            )
E cryptography.exceptions.InternalError: Unknown OpenSSL error. This error is commonly encountered when another library is not cleaning up the OpenSSL error stack. If you are using cryptography with another library that uses OpenSSL try disabling it before reporting a bug. Otherwise please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLErrorWithText(code=50331803, lib=6, reason=155, reason_text=b'error:0300009B:digital envelope routines::buffer too small')])

1. https://github.com/openssl/openssl/pull/16789
2. https://github.com/pyca/cryptography/pull/6403
3. https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/p/python-cryptography/20220101_131859_053a9@/log.gz

Related branches

tags: added: update-excuse update-excuses
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-cryptography - 3.4.8-1ubuntu1

---------------
python-cryptography (3.4.8-1ubuntu1) jammy; urgency=medium

  * d/p/openssl3/0007-openssl-3.0.1-ftbfs.patch: fix ftbfs with
    openssl 3.0.1 (LP: #1956514)

 -- Andreas Hasenack <email address hidden> Wed, 05 Jan 2022 18:30:32 +0000

Changed in python-cryptography (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.