Re: Segfault when unsetting READLINE_LINE inside 'bind -x'

2017-04-23 Thread Chet Ramey
On 4/23/17 12:14 PM, Eduardo Bustamante wrote: > I tried the following patch: > > dualbus@debian:~/src/gnu/bash$ git diff -- bashline.c > diff --git a/bashline.c b/bashline.c > index 129714aa..7884416a 100644 > --- a/bashline.c > +++ b/bashline.c > @@ -2545,7 +2545,7 @@ static void > maybe_make_

Re: Segfault when unsetting READLINE_LINE inside 'bind -x'

2017-04-23 Thread Eduardo Bustamante
On Sun, Apr 23, 2017 at 12:56 AM, Jaren Stangret wrote: > Hello, > > Instead of segfaulting, BASH should ensure READELINE_LINE is unset or set > and empty. I am able to reproduce this with the latest devel branch. Here's the stack trace: Program received signal SIGSEGV, Segmentation fault. 0x000

Segfault when unsetting READLINE_LINE inside 'bind -x'

2017-04-23 Thread Jaren Stangret
Hello, Instead of segfaulting, BASH should ensure READELINE_LINE is unset or set and empty. *Configuration Information:* Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64