Red Hat Bugzilla – Bug 1300513
readline slow to accept new characters when pasting input
Last modified: 2017-08-01 16:33:43 EDT
Created attachment 1116776 [details] Makefile + slow-readline.c to demonstrate slow readline behavior Description of problem: when using readline to read lines in an application, the behavior is exceedingly slow when pasting text using the mouse Version-Release number of selected component (if applicable): 6.2 How reproducible: compile the small program attached, run it, type in some lines followed by newlines, use Ctrl-p to recuperate past lines (this should be fast), then type a long line and <newline>, then cut-and-paste that line using the mouse (this should be slow). Steps to Reproduce: 0. cd /tmp && tar jxf slow-readline.tar.bz2 && cd slow-readline 1. make 2. ./slow-readline 3. follow instructions in preceding paragraph Actual results: - fast with Ctrl-p - slow with mouse pasting Expected results: - fast with Ctrl-p and with mouse pasting (as in bash, for example) Additional info:
One possible solution could be to check/apply the following patch: ftp://ftp.gnu.org/gnu/readline/readline-6.2-patches/readline62-003
The problem is still there with the latest RH7.2 updates. uname -a Linux XXXX 3.10.0-327.28.2.el7.x86_64 #1 SMP Mon Jun 27 14:48:28 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux rpm -qa|grep readline readline-devel-6.2-9.el7.x86_64 readline-6.2-9.el7.x86_64 readline-6.2-9.el7.i686
Created attachment 1246267 [details] readline62-003
Patch in comment 4 fixes the issue in RHEL
Verified, OLD FAIL the insertion was slow, the text appeared slowly - letter by letter. NEW PASS the insertion was fast, whole line just appear at once.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1943