Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#416970: reverse-menu-complete crashes



On Wed, Jun 06, 2007 at 05:46:32PM +0200, Vincent Lefevre wrote:
> This is quite simple in fact:
> 
> vin:~> zsh -f
> vin% bindkey '\e\t' reverse-menu-complete
> vin% aaa
> 
> At this time, I type Esc-Tab.
> 
> vin% aaazsh: segmentation fault (core dumped)  zsh -f
> vin:~[139]>

Now that I can reproduce.

Program received signal SIGSEGV, Segmentation fault.
0xb7b02c95 in reverse_menu (dummy=0xb7b36fc4, dummy2=0x0) at ../../../Src/Zle/compresult.c:1231
1231    ../../../Src/Zle/compresult.c: No such file or directory.
        in ../../../Src/Zle/compresult.c
(gdb) bt full
#0  0xb7b02c95 in reverse_menu (dummy=0xb7b36fc4, dummy2=0x0) at ../../../Src/Zle/compresult.c:1231
No locals.
#1  0xb7b2b93e in reversemenucomplete (args=0xb7b3725c) at ../../../Src/Zle/zle_tricky.c:357
No locals.
#2  0xb7b195e4 in execzlefunc (func=0xb7b34978, args=0xb7b3725c, set_bindk=0)
    at ../../../Src/Zle/zle_main.c:1261
        ret = <value optimized out>
        w = (Widget) 0xb7b36884
        save_bindk = (Thingy) 0xb7b34978
#3  0xb7b19b8a in zlecore () at ../../../Src/Zle/zle_main.c:1019
No locals.
#4  0xb7b1a1b7 in zleread (lp=0x80d5594, rp=0x0, flags=3, context=0) at ../../../Src/Zle/zle_main.c:1174
        s = <value optimized out>
        old_errno = 0
        initthingy = (Thingy) 0x0
#5  0x0807d586 in ingetc () at ../../Src/input.c:278
        flags = 0
        lastc = <value optimized out>
#6  0x08078dc7 in ihgetc () at ../../Src/hist.c:240
        c = <value optimized out>
#7  0x0808451e in gettok () at ../../Src/lex.c:630
        c = -1208868200
        d = 0
        peekfd = -1
        peek = <value optimized out>
#8  0x08084d4a in yylex () at ../../Src/lex.c:345
No locals.
#9  0x0809cc39 in parse_event () at ../../Src/parse.c:451
No locals.
#10 0x0807bfaa in loop (toplevel=1, justonce=0) at ../../Src/init.c:128
        prog = (Eprog) 0xb7f22298
#11 0x0807cc94 in zsh_main (argc=2, argv=0xbfc3d104) at ../../Src/init.c:1347
        arg0 = <value optimized out>
        t = <value optimized out>
        t0 = <value optimized out>
#12 0x08054822 in main (argc=1474660693, argv=0xce85356) at ../../Src/main.c:93
No locals.



Messages sorted by: Reverse Date, Date, Thread, Author