[New-bugs-announce] [issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

Charalampos Stratakis report at bugs.python.org
Tue Jan 23 05:22:07 EST 2018

New submission from Charalampos Stratakis <cstratak at redhat.com>:

Currently in Fedora glibc stopped providing libcrypt[0] a change which is slowly being upstreamed as well[1] in favor of the libxcrypt project[2].

This causes a segfault when importing the crypt module as python assumes that crypt.h is always available.

Providing a working patch from the libxcrypt maintainer. I'll convert the patch into a PR.

[0] https://fedoraproject.org/wiki/Changes/Replace_glibc_libcrypt_with_libxcrypt
[1] https://sourceware.org/ml/libc-alpha/2017-08/msg01257.html
[2] https://github.com/besser82/libxcrypt

files: 00290-cryptmodule-Include-crypt.h-for-declaration-of-crypt.patch
keywords: patch
messages: 310490
nosy: cstratak
priority: normal
severity: normal
status: open
title: test_crypt segfaults when using libxcrypt instead of libcrypt
Added file: https://bugs.python.org/file47402/00290-cryptmodule-Include-crypt.h-for-declaration-of-crypt.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list