[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Horace Stoica
Horace Stoica added the comment: Tried dnf install python38 and it works. Thank you! -- ___ Python tracker ___ ___ Python-bugs-list

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: > The reason I am building from source is that Fedora 30 provides Python 3.7.3 > and I wanted to try out the new features (like the walrus operator) that were > introduced in version 3.8. Did you try "dnf install python38"? It's available on Fedora 30. FYI I

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Horace Stoica
Horace Stoica added the comment: A big "thank you" to everyone, I installed readline-develop and rebuilt from source, and now the problem is fixed. The reason I am building from source is that Fedora 30 provides Python 3.7.3 and I wanted to try out the new features (like the walrus operator)

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: Oh right, Ammar is right, you miss a dependency. Try maybe: sudo dnf install -y dnf-plugins-core sudo dnf builddep -y python3 https://cpython-core-tutorial.readthedocs.io/en/latest/build_cpython_linux.html ... but why are you building Python from source? Fed

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: I'm able to reproduce the issue on Fedora 31, but only if the 3rd party readline module is loaded, instead of the stdlib "readline" module. The problem is that https://pypi.org/project/readline/ misuses the Python memory allocator API. The GIL must be held t

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Ammar Askar
Ammar Askar added the comment: > Installed the readline module as the arrows do not work when running Python > interactively. This is not a suggested way to fix the issue, especially given that the module you installed is marked as deprecated: https://pypi.org/project/readline/ > Built Pyth

[issue39367] readline module core dumps Python 3.8.1 when calling exit()

2020-01-17 Thread Horace Stoica
New submission from Horace Stoica : Built Python 3.8.1 from source on Fedora 30: kernel: 5.1.8-300.fc30.x86_64 Python 3.8.1 (default, Jan 15 2020, 08:49:34) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux Installed the readline module as the arrows do not work when running Python interactive