Package: rlwrap
Version: 0.41-1
Severity: important

Dear Maintainer,

>   * What led up to the situation?

Attempting to use readline macros, playback crashed

>   * What exactly did you do (or not do) that was effective (or
>     ineffective)?

To reproduce the issue start up

    rlwrap cat

then issue "control+X, (" to start recording a macro.  Enter
two lines of text

    hello there
    this is a test

(they will be echoed, obviously)  Stop recording the macro
with "control+X, )".

When attempting to play back the macro with "control+X, e",
rlwrap crashes with a SIGSEGV

    $ rlwrap cat
    Before typing this line, I hit control+x followed by "("
    Before typing this line, I hit control+x followed by "("
    And am about to hit control+x followed by ")"
    And am about to hit control+x followed by ")"
    Now about to hit control+x followed by "e"
    Now about to hit control+x followed by "e"

    rlwrap: Oops, crashed (caught SIGSEGV) - this should not
    have happened!  If you need a core dump, re-configure
    with --enable-debug and rebuild
    Resetting terminal and cleaning up...
  
>   * What was the outcome of this action?

The SIGSEGV

>   * What outcome did you expect instead?

With the recorded macro, it should have retyped the first
two lines when playback was invoked.

I discovered the bug when using ed(1) but cat(1) was an
easier case to reproduce.


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
(ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked
to /bin/dash Init: systemd (via /run/systemd/system)

Versions of packages rlwrap depends on:
ii  libc6         2.19-18+deb8u1
ii  libreadline6  6.3-8+b3
ii  libtinfo5     5.9+20140913-1+b1
ii  perl          5.20.2-3+deb8u1

rlwrap recommends no packages.

rlwrap suggests no packages.

-- no debconf information

Reply via email to