Summary: | sys-apps/portage-2.3.16 with dev-python/pygcrypt-1.0.0 - constant runtime crashes: raise errors.GcryptException(ffi.string(lib.gcry_strerror(error)), error) pygcrypt.errors.GcryptException: (b'Cannot allocate memory', 16810070) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Helmut Jarausch <jarausch> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mgorny, toralf |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 637452 |
Description
Helmut Jarausch
2017-04-15 09:11:18 UTC
Do the tests pass if you build dev-python/pygcrypt-1.0.0 with FEATURES=test enabled? Upstream is already working on this. It's a regression in pygcrypt 1.0.0. *** Bug 639948 has been marked as a duplicate of this bug. *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=6076f4217dc463340547984b4f88551deec0cc55 commit 6076f4217dc463340547984b4f88551deec0cc55 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2017-12-05 16:33:32 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2017-12-05 17:36:46 +0000 [checksum] Disable pygcrypt backend due to breakage Closes: https://bugs.gentoo.org/615620 Reviewed-by: Brian Dolbec <dolsen@gentoo.org> pym/portage/checksum.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=992cf6e5ecbc8de428792fe27bb821d04e03097c commit 992cf6e5ecbc8de428792fe27bb821d04e03097c Author: Sam James <sam@gentoo.org> AuthorDate: 2023-03-21 02:29:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-21 02:30:24 +0000 NEWS: update for checksum cleanups Bug: https://bugs.gentoo.org/597736 Bug: https://bugs.gentoo.org/615620 Bug: https://bugs.gentoo.org/885909 Bug: https://bugs.gentoo.org/888884 Signed-off-by: Sam James <sam@gentoo.org> NEWS | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) https://gitweb.gentoo.org/proj/portage.git/commit/?id=d8f9c763a180b5b014b333791dd7235cbf923d31 commit d8f9c763a180b5b014b333791dd7235cbf923d31 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-03-20 03:24:39 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-21 02:30:23 +0000 checksum: drop pygcrypt support No longer in Gentoo and the codepath for this has been disabled since 2017(!) because of https://bugs.gentoo.org/615620. The last release on pypi is also from April 2017. Bug: https://bugs.gentoo.org/615620 Signed-off-by: Sam James <sam@gentoo.org> lib/portage/checksum.py | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) https://gitweb.gentoo.org/proj/portage.git/commit/?id=377a31434ae51b6e6465ba48b5132eb200a8cf40 commit 377a31434ae51b6e6465ba48b5132eb200a8cf40 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-03-20 03:16:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-21 02:30:23 +0000 checksum: drop STREEBOG{256,512} & pygost support For STREEBOG{256,512}, we had three options that we "supported": 1. using pygost; pygost is unpackaged in Gentoo and appears to, as of March 2023, been yanked from pypi too. Hence not only can we test it on the distribution where we do our development (Gentoo), but we also can't acquire it for CI easily either. 2. using pygcrypt; No longer in Gentoo and the codepath for this has been disabled since 2017(!) because of https://bugs.gentoo.org/615620. 3. a slow fallback implementation. This is not something we can rely on anyway, but this is especially wrong given the issues we've had recently with WHIRLPOOL. See https://bugs.gentoo.org/885909. As for whether we should support STREEBOG at all: - Per above, we don't have a decent implementation for it available. - We're not testing it very well. - Jugging obscure hash algorithms has become a pain because some of them have ended up being marked "legacy" or removed from OpenSSL by default. - I don't think we should have hash algorithms supported just for the sake of it. We're not in the business of supporting every single hash algorithm that a library with Python bindings out there provides. Bug: https://bugs.gentoo.org/597736 Bug: https://bugs.gentoo.org/615620 Bug: https://bugs.gentoo.org/885909 Bug: https://bugs.gentoo.org/888884 Signed-off-by: Sam James <sam@gentoo.org> lib/portage/checksum.py | 25 +------------------------ lib/portage/tests/util/test_checksum.py | 26 -------------------------- tox.ini | 1 - 3 files changed, 1 insertion(+), 51 deletions(-) |