[New-bugs-announce] [issue39367] readline module core dumps Python 3.8.1 when calling exit()

Horace Stoica report at bugs.python.org
Fri Jan 17 06:17:46 EST 2020

New submission from Horace Stoica <fhstoica at gmail.com>:

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 interactively.

~/local/bin/pip3.8 install readline
Collecting readline
  Using cached https://files.pythonhosted.org/packages/f4/01/2cf081af8d880b44939a5f1b446551a7f8d59eae414277fd0c303757ff1b/readline-

However, after installing readline Python core-dumps on Crtl+D or exit():

>>> exit()
munmap_chunk(): invalid pointer
Aborted (core dumped)

I uninstalled the readline module and now it no longer core dumps.

components: Extension Modules
messages: 360170
nosy: fhstoica
priority: normal
severity: normal
status: open
title: readline module core dumps Python 3.8.1 when calling exit()
type: crash
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list