[Bug 1956514] Re: FTBFS with openssl 3.0.1: buffer too small

Launchpad Bug Tracker 1956514 at bugs.launchpad.net
Thu Jan 6 19:04:12 UTC 2022


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 <andreas at canonical.com>  Wed, 05 Jan 2022 18:30:32
+0000

** Changed in: python-cryptography (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-cryptography in Ubuntu.
https://bugs.launchpad.net/bugs/1956514

Title:
  FTBFS with openssl 3.0.1: buffer too small

Status in python-cryptography package in Ubuntu:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cryptography/+bug/1956514/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list