[issue29854] Segfault when readline history is more then 2 * history size

Nir Soffer report at bugs.python.org
Sun May 21 08:50:06 EDT 2017


Nir Soffer added the comment:

This issue does not exist on OS X 10.11.6 (latest my old mac can install).

I tested using .editrc file:

$ cat ~/.editrc
history size 5

With history file with 10 items that crashes on Linux using GNU readline.

This settings is ignored, adding items to the history file without truncating it to 5 items.

I tested also truncating the size using readline.set_history_size(). It works correctly, but this means every application need to implement its own readline configuration, instead of reusing the system readline configuration.

So this bug is relevant only to GNU readline, need to skip this test when using libedit.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29854>
_______________________________________


More information about the Python-bugs-list mailing list