Package: libreadline6 Version: 6.3-1 Severity: important Tags: upstream patch
Hi, when I use ipython I get very often sefaults in libreadline, while searching on internet I've found a thread in the ml http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00034.html I've applied the proposed patch and looks like it works I'm attaching a unified diff of the patch Regards -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libreadline6 depends on: ii libc6 2.18-4 ii libtinfo5 5.9+20140118-1 ii multiarch-support 2.18-4 ii readline-common 6.3-1 libreadline6 recommends no packages. libreadline6 suggests no packages. -- no debconf information
--- readline6-6.3/readline.c.orig 2013-10-28 19:58:06.000000000 +0100 +++ readline6-6.3/readline.c 2014-03-13 19:44:39.696997473 +0100 @@ -744,7 +744,8 @@ r = _rl_subseq_result (r, cxt->oldmap, cxt->okey, (cxt->flags & KSEQ_SUBSEQ)); RL_CHECK_SIGNALS (); - if (r == 0) /* success! */ + /* We only treat values < 0 specially to simulate recursion. */ + if (r >= 0 || (r == -1 && (cxt->flags & KSEQ_SUBSEQ) == 0)) /* success! or failure! */ { _rl_keyseq_chain_dispose (); RL_UNSETSTATE (RL_STATE_MULTIKEY);